title: How to create an IOptions<T> from a custom instance of T (not via DI)
body: <p>I would like to pass a value to an <code>IOptions&lt;T&gt;</code> parameter. </p>
  
  <p>I can only find examples of using <code>IOptions&lt;T&gt;</code> with configuration, but I need to define a <strong>custom value</strong> when invoking a method.</p>