Поделиться через


OptionConfigureExtensionMethods.TryConfigureFormatter<TOptions,TOptionFormatter> Метод

Определение

Настраивает форматировщик параметров для , TOptions если ни один из них не настроен.

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

Параметры типа

TOptions

Тип параметров.

TOptionFormatter

Тип модуля форматирования параметра.

Параметры

services
IServiceCollection

Службы.

Возвращаемое значение

Для IServiceCollectionцепочки с другими вызовами.

Применяется к