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

Inheritance: MessageBus
Show file Open project: SignalR/SignalR

Private Properties

Property Type Description
CreateSubscription Subscription
OnReceivedCore void
SendImpl void

Public Methods

Method Description
Publish ( Message message ) : System.Threading.Tasks.Task

Protected Methods

Method Description
Close ( int streamIndex ) : void

Closes the specified queue. The index of the stream to close.

Dispose ( bool disposing ) : void
OnError ( int streamIndex, Exception exception ) : void

Closes the specified queue for sending messages making all sends fail asynchronously.

OnReceived ( int streamIndex, ulong id, ScaleoutMessage message ) : void

Invoked when a payload is received from the backplane. There should only be one active call at any time.

Open ( int streamIndex ) : void

Opens the specified queue for sending messages. The index of the stream to open.

ScaleoutMessageBus ( IDependencyResolver resolver, ScaleoutConfiguration configuration ) : System
Send ( IList messages ) : System.Threading.Tasks.Task

Sends messages to the backplane

Send ( int streamIndex, IList messages ) : System.Threading.Tasks.Task

Private Methods

Method Description
CreateSubscription ( ISubscriber subscriber, string cursor, Func callback, int messageBufferSize, object state ) : Subscription
OnReceivedCore ( int streamIndex, ulong id, ScaleoutMessage scaleoutMessage ) : void
SendImpl ( Message>.IEnumerator enumerator, TaskCompletionSource taskCompletionSource ) : void

Method Details

Close() protected method

Closes the specified queue. The index of the stream to close.
protected Close ( int streamIndex ) : void
streamIndex int
return void

Dispose() protected method

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

OnError() protected method

Closes the specified queue for sending messages making all sends fail asynchronously.
protected OnError ( int streamIndex, Exception exception ) : void
streamIndex int The index of the stream to close.
exception System.Exception The error that occurred.
return void

OnReceived() protected method

Invoked when a payload is received from the backplane. There should only be one active call at any time.
protected OnReceived ( int streamIndex, ulong id, ScaleoutMessage message ) : void
streamIndex int id of the stream.
id ulong id of the payload within that stream.
message ScaleoutMessage The scaleout message.
return void

Open() protected method

Opens the specified queue for sending messages. The index of the stream to open.
protected Open ( int streamIndex ) : void
streamIndex int
return void

Publish() public method

public Publish ( Message message ) : System.Threading.Tasks.Task
message Message
return System.Threading.Tasks.Task

ScaleoutMessageBus() protected method

protected ScaleoutMessageBus ( IDependencyResolver resolver, ScaleoutConfiguration configuration ) : System
resolver IDependencyResolver
configuration ScaleoutConfiguration
return System

Send() protected method

Sends messages to the backplane
protected Send ( IList messages ) : System.Threading.Tasks.Task
messages IList The list of messages to send
return System.Threading.Tasks.Task

Send() protected method

protected Send ( int streamIndex, IList messages ) : System.Threading.Tasks.Task
streamIndex int
messages IList
return System.Threading.Tasks.Task