C# Class Microsoft.AspNet.SignalR.Redis.RedisConnection

Inheritance: IRedisConnection
ファイルを表示 Open project: SignalR/SignalR

Public Methods

Method Description
ConnectAsync ( string connectionString, TraceSource trace ) : System.Threading.Tasks.Task
Dispose ( ) : void
RestoreLatestValueForKey ( int database, string key ) : System.Threading.Tasks.Task
ScriptEvaluateAsync ( int database, string script, string key, byte messageArguments ) : System.Threading.Tasks.Task
SubscribeAsync ( string key, RedisMessage>.Action onMessage ) : System.Threading.Tasks.Task

Private Methods

Method Description
Close ( string key, bool allowCommandsToComplete = true ) : void
OnConnectionFailed ( object sender, StackExchange.Redis.ConnectionFailedEventArgs args ) : void
OnConnectionRestored ( object sender, StackExchange.Redis.ConnectionFailedEventArgs args ) : void
OnError ( object sender, StackExchange.Redis.RedisErrorEventArgs args ) : void

Method Details

ConnectAsync() public method

public ConnectAsync ( string connectionString, TraceSource trace ) : System.Threading.Tasks.Task
connectionString string
trace TraceSource
return System.Threading.Tasks.Task

Dispose() public method

public Dispose ( ) : void
return void

RestoreLatestValueForKey() public method

public RestoreLatestValueForKey ( int database, string key ) : System.Threading.Tasks.Task
database int
key string
return System.Threading.Tasks.Task

ScriptEvaluateAsync() public method

public ScriptEvaluateAsync ( int database, string script, string key, byte messageArguments ) : System.Threading.Tasks.Task
database int
script string
key string
messageArguments byte
return System.Threading.Tasks.Task

SubscribeAsync() public method

public SubscribeAsync ( string key, RedisMessage>.Action onMessage ) : System.Threading.Tasks.Task
key string
onMessage RedisMessage>.Action
return System.Threading.Tasks.Task