Interface IHasOptions<TOptions>
Experimental; describes a service which has options, which must usually be set at setup.
[WorkInProgressApi("Still bound to change a bit")]
public interface IHasOptions<out TOptions> where TOptions : class
Type Parameters
TOptionsOptions used to configure this service, usually a record.
Properties
MyOptions
The options instance for this service, read-only.
TOptions MyOptions { get; }
Property Value
- TOptions
Remarks
- Explicitly with a short name "MyOptions" so that the classes can have a subclass called "Options" without name conflicts.
- Will usually default to new/standard options of type
TOptions.