Table of Contents

Interface IHasOptions<TOptions>

Namespace
ToSic.Sys.Services
Assembly
ToSic.Sys.Core.dll

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

TOptions

Options 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

  1. Explicitly with a short name "MyOptions" so that the classes can have a subclass called "Options" without name conflicts.
  2. Will usually default to new/standard options of type TOptions.