Freigeben über


OptionConfigureExtensionMethods.ConfigureFormatterResolver<TOptions,TOptionFormatterResolver> Methode

Definition

Konfiguriert einen Optionsformatiererlöser für TOptions.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureFormatterResolver<TOptions,TOptionFormatterResolver> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class where TOptionFormatterResolver : class, Orleans.IOptionFormatterResolver<TOptions>;
static member ConfigureFormatterResolver : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null and 'OptionFormatterResolver : null and 'OptionFormatterResolver :> Orleans.IOptionFormatterResolver<'Options>)
<Extension()>
Public Function ConfigureFormatterResolver(Of TOptions As Class, TOptionFormatterResolver As Class) (services As IServiceCollection) As IServiceCollection

Typparameter

TOptions

Der Optionstyp.

TOptionFormatterResolver

Der Optionsformatierer-Resolvertyp.

Parameter

services
IServiceCollection

Die Dienste.

Gibt zurück

Die IServiceCollection, für die Verkettung mit anderen Aufrufen.

Gilt für: