C# Class Redis.WebJobs.Extensions.Listeners.RedisCacheListener

Inheritance: Redis.WebJobs.Extensions.Framework.ListenerBase
Show file Open project: JasonHaley/Redis.WebJobs.Extensions Class Usage Examples

Public Methods

Method Description
RedisCacheListener ( string channelOrKey, ITriggeredFunctionExecutor triggerExecutor, RedisConfiguration config, Microsoft.Azure.WebJobs.Host.TraceWriter trace ) : System

Protected Methods

Method Description
OnDisposing ( ) : void
OnStarting ( ) : void
OnStopping ( ) : void
StartAsyncCore ( CancellationToken cancellationToken ) : Task
StopAsyncCore ( CancellationToken cancellationToken ) : Task

Private Methods

Method Description
CreateProcessor ( string channelName ) : RedisProcessor
CreateReceiver ( RedisConfiguration config, string channelOrKey, string lastValueKeyName ) : CacheReceiver
HandleTimerEvent ( ) : Task
OnTimer ( object sender, System.Timers.ElapsedEventArgs e ) : void
ProcessMessageAsync ( string previousValue, string currentValue ) : Task
ProcessMessageAsync ( string previousValue, string currentValue, CancellationToken cancellationToken ) : Task
StartTimer ( System.TimeSpan interval ) : void

Method Details

OnDisposing() protected method

protected OnDisposing ( ) : void
return void

OnStarting() protected method

protected OnStarting ( ) : void
return void

OnStopping() protected method

protected OnStopping ( ) : void
return void

RedisCacheListener() public method

public RedisCacheListener ( string channelOrKey, ITriggeredFunctionExecutor triggerExecutor, RedisConfiguration config, Microsoft.Azure.WebJobs.Host.TraceWriter trace ) : System
channelOrKey string
triggerExecutor ITriggeredFunctionExecutor
config Redis.WebJobs.Extensions.Config.RedisConfiguration
trace Microsoft.Azure.WebJobs.Host.TraceWriter
return System

StartAsyncCore() protected method

protected StartAsyncCore ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

StopAsyncCore() protected method

protected StopAsyncCore ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task