Web/ForgeTrust.Runnable.Web.RazorWire/Streams/IRazorWireStreamHub.cs

IRazorWireStreamHub

Type

IRazorWireStreamHub

Defines the contract for a message hub that supports pub/sub operations over named channels.
Method

PublishAsync(string, string)

Publishes a string message to the specified channel.
Method

Subscribe(string)

Subscribes to a named message channel and provides a reader for incoming messages.
Method

Unsubscribe(string, ChannelReader<string>)

Unsubscribes the specified reader from the named channel so it no longer receives messages from that channel.