Compartir a través de


HybridCacheBuilderExtensions.AddSerializer Method

Definition

Overloads

AddSerializer<T,TImplementation>(IHybridCacheBuilder)

Serialize values of type T with the serializer of type TImplementation.

AddSerializer<T>(IHybridCacheBuilder, IHybridCacheSerializer<T>)

Serialize values of type T with the specified serializer from serializer.

AddSerializer<T,TImplementation>(IHybridCacheBuilder)

Source:
HybridCacheBuilderExtensions.cs

Serialize values of type T with the serializer of type TImplementation.

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

Type Parameters

T

The type to be serialized.

TImplementation

The serializer to use for this type.

Parameters

Returns

The IHybridCacheBuilder instance.

Applies to

AddSerializer<T>(IHybridCacheBuilder, IHybridCacheSerializer<T>)

Source:
HybridCacheBuilderExtensions.cs

Serialize values of type T with the specified serializer from serializer.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Hybrid::IHybridCacheBuilder ^ AddSerializer(Microsoft::Extensions::Caching::Hybrid::IHybridCacheBuilder ^ builder, Microsoft::Extensions::Caching::Hybrid::IHybridCacheSerializer<T> ^ serializer);
public static Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder AddSerializer<T> (this Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder builder, Microsoft.Extensions.Caching.Hybrid.IHybridCacheSerializer<T> serializer);
static member AddSerializer : Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder * Microsoft.Extensions.Caching.Hybrid.IHybridCacheSerializer<'T> -> Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder
<Extension()>
Public Function AddSerializer(Of T) (builder As IHybridCacheBuilder, serializer As IHybridCacheSerializer(Of T)) As IHybridCacheBuilder

Type Parameters

T

The type to be serialized.

Parameters

Returns

The IHybridCacheBuilder instance.

Applies to