ServiceCollectionExtensions.AddSerializer 方法

定义

添加了序列化程序支持。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSerializer (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Orleans.Serialization.ISerializerBuilder> configure = default);
static member AddSerializer : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Orleans.Serialization.ISerializerBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddSerializer (services As IServiceCollection, Optional configure As Action(Of ISerializerBuilder) = Nothing) As IServiceCollection

参数

services
IServiceCollection

服务集合。

configure
Action<ISerializerBuilder>

配置委托。

返回

服务集合。

适用于