Table of Contents

Class RedisServiceConnectorFactory

Namespace
Steeltoe.CloudFoundry.Connector.Redis
Assembly
Steeltoe.CloudFoundry.ConnectorBase.dll
public class RedisServiceConnectorFactory
Inheritance
RedisServiceConnectorFactory
Inherited Members

Constructors

RedisServiceConnectorFactory(RedisServiceInfo, RedisCacheConnectorOptions, Type, Type, MethodInfo)

Initializes a new instance of the RedisServiceConnectorFactory class. Factory for creating Redis connections with either Microsoft.Extensions.Caching.Redis or StackExchange.Redis

public RedisServiceConnectorFactory(RedisServiceInfo sinfo, RedisCacheConnectorOptions config, Type connectionType, Type optionsType, MethodInfo initalizer)

Parameters

sinfo RedisServiceInfo

Service Info

config RedisCacheConnectorOptions

Service Configuration

connectionType Type

Redis connection Type

optionsType Type

Options Type used to establish connection

initalizer MethodInfo

Method used to open connection

Properties

ConnectorType

protected Type ConnectorType { get; set; }

Property Value

Type

Initializer

protected MethodInfo Initializer { get; set; }

Property Value

MethodInfo

OptionsType

protected Type OptionsType { get; set; }

Property Value

Type

Methods

Create(IServiceProvider)

Open the Redis connection

public virtual object Create(IServiceProvider provider)

Parameters

provider IServiceProvider

IServiceProvider

Returns

object

Initialized Redis connection

GetConnectionString()

Get the connection string from Configuration sources

public string GetConnectionString()

Returns

string

Connection String