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

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

Public Methods

Method Description
RedisChannelListener ( 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 ) : PubSubReceiver
ProcessMessageAsync ( string message ) : Task
ProcessMessageAsync ( string message, CancellationToken cancellationToken ) : Task

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

RedisChannelListener() public method

public RedisChannelListener ( 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