Compartilhar via


ServiceCollectionExtensions.AddSerializer Método

Definição

Adiciona suporte ao serializador.

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

Parâmetros

services
IServiceCollection

A coleção de serviços.

configure
Action<ISerializerBuilder>

O delegado de configuração.

Retornos

A coleção de serviços.

Aplica-se a