共用方式為


OptionConfigureExtensionMethods.ConfigureFormatterResolver<TOptions,TOptionFormatterResolver> 方法

定義

設定 的選項格式器解析程式 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

類型參數

TOptions

選項類型。

TOptionFormatterResolver

選項格式器解析程式類型。

參數

services
IServiceCollection

服務。

傳回

IServiceCollection 用於與其他呼叫鏈結。

適用於