HybridCacheBuilderExtensions.AddSerializerFactory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddSerializerFactory(IHybridCacheBuilder, IHybridCacheSerializerFactory) |
Add |
AddSerializerFactory<TImplementation>(IHybridCacheBuilder) |
Add a factory of type |
AddSerializerFactory(IHybridCacheBuilder, IHybridCacheSerializerFactory)
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
- builder
- IHybridCacheBuilder
- factory
- IHybridCacheSerializerFactory
Returns
The IHybridCacheBuilder instance.
Applies to
AddSerializerFactory<TImplementation>(IHybridCacheBuilder)
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
- builder
- IHybridCacheBuilder
Returns
The IHybridCacheBuilder instance.