C# Class Microsoft.AspNet.SignalR.Messaging.MessageBus

Inheritance: IMessageBus, IDisposable
Datei anzeigen Open project: SignalR/SignalR Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
MessageBus ( IDependencyResolver resolver ) : System

Publish ( Message message ) : Task

Publishes a new message to the specified event on the bus.

Protected Methods

Method Description
CreateTopic ( string key ) : Topic

Creates a topic for the specified key.

Dispose ( bool disposing ) : void
Save ( Message message ) : ulong
ScheduleEvent ( string eventKey ) : void

Private Methods

Method Description
AddEvent ( ISubscriber subscriber, string eventKey ) : void
CreateSubscription ( ISubscriber subscriber, string cursor, Func callback, int messageBufferSize, object state ) : Subscription
DestroyTopic ( string key, Topic topic ) : void
DestroyTopicCore ( string key, Topic topic ) : void
DisposeSubscription ( object state ) : void
GarbageCollectTopics ( ) : void
GetTopic ( string key ) : Topic
MessageBus ( IStringMinifier stringMinifier, ITraceManager traceManager, IPerformanceCounterManager performanceCounterManager, IConfigurationManager configurationManager, int maxTopicsWithNoSubscriptions ) : System
RemoveEvent ( ISubscriber subscriber, string eventKey ) : void
ScheduleTopic ( Topic topic ) : void
Subscribe ( ISubscriber subscriber, string cursor, Func callback, int maxMessages, object state ) : IDisposable
SubscribeTopic ( string key ) : Topic

Method Details

CreateTopic() protected method

Creates a topic for the specified key.
protected CreateTopic ( string key ) : Topic
key string The key to create the topic for.
return Topic

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

MessageBus() public method

public MessageBus ( IDependencyResolver resolver ) : System
resolver IDependencyResolver
return System

Publish() public method

Publishes a new message to the specified event on the bus.
public Publish ( Message message ) : Task
message Message The message to publish.
return Task

Save() protected method

protected Save ( Message message ) : ulong
message Message
return ulong

ScheduleEvent() protected method

protected ScheduleEvent ( string eventKey ) : void
eventKey string
return void