AzureCosmosDbRedisSubscribe Method

Subscribes to a Redis channel; mostly used to allow front-end users to receive updates from the Event Handler or the Device Receiver regarding events they need to know about.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task RedisSubscribe(
	RedisChannel channel,
	Func<string?, Task> func,
	CommandFlags commandFlags
)

Parameters

channel  RedisChannel
Redis channel to subscribe to; may be a pattern, doesn't have to be literal.
func  FuncString, Task
Method to execute when the task invokes.
commandFlags  CommandFlags
Behaviour markers used for this subscription

Return Value

Task
Task completion

Implements

IAzureCosmosDbRedisSubscribe(RedisChannel, FuncString, Task, CommandFlags)

See Also