Compartir a través de


HybridCacheBuilderExtensions.AddSerializerFactory Method

Definition

Overloads

AddSerializerFactory(IHybridCacheBuilder, IHybridCacheSerializerFactory)

Add factory as an additional serializer factory, which can provide serializers for multiple types.

AddSerializerFactory<TImplementation>(IHybridCacheBuilder)

Add a factory of type TImplementation as an additional serializer factory, which can provide serializers for multiple types.

AddSerializerFactory(IHybridCacheBuilder, IHybridCacheSerializerFactory)

Source:
HybridCacheBuilderExtensions.cs

Add factory as an additional serializer factory, which can provide serializers for multiple types.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Hybrid::IHybridCacheBuilder ^ AddSerializerFactory(Microsoft::Extensions::Caching::Hybrid::IHybridCacheBuilder ^ builder, Microsoft::Extensions::Caching::Hybrid::IHybridCacheSerializerFactory ^ factory);
public static Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder AddSerializerFactory (this Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder builder, Microsoft.Extensions.Caching.Hybrid.IHybridCacheSerializerFactory factory);
static member AddSerializerFactory : Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder * Microsoft.Extensions.Caching.Hybrid.IHybridCacheSerializerFactory -> Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder
<Extension()>
Public Function AddSerializerFactory (builder As IHybridCacheBuilder, factory As IHybridCacheSerializerFactory) As IHybridCacheBuilder

Parameters

Returns

The IHybridCacheBuilder instance.

Applies to

AddSerializerFactory<TImplementation>(IHybridCacheBuilder)

Source:
HybridCacheBuilderExtensions.cs

Add a factory of type TImplementation as an additional serializer factory, which can provide serializers for multiple types.

public:
generic <typename TImplementation>
 where TImplementation : class, Microsoft::Extensions::Caching::Hybrid::IHybridCacheSerializerFactory[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Hybrid::IHybridCacheBuilder ^ AddSerializerFactory(Microsoft::Extensions::Caching::Hybrid::IHybridCacheBuilder ^ builder);
public static Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder AddSerializerFactory<TImplementation> (this Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder builder) where TImplementation : class, Microsoft.Extensions.Caching.Hybrid.IHybridCacheSerializerFactory;
static member AddSerializerFactory : Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder -> Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder (requires 'Implementation : null and 'Implementation :> Microsoft.Extensions.Caching.Hybrid.IHybridCacheSerializerFactory)
<Extension()>
Public Function AddSerializerFactory(Of TImplementation As {Class, IHybridCacheSerializerFactory}) (builder As IHybridCacheBuilder) As IHybridCacheBuilder

Type Parameters

TImplementation

The type of the serializer factory.

Parameters

Returns

The IHybridCacheBuilder instance.

Applies to