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

Common base class for scaleout message bus implementations.
Inheritance: MessageBus
Datei anzeigen Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

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 ( IStringMinifier stringMinifier, ILoggerFactory loggerFactory, IPerformanceCounterManager performanceCounterManager, IOptions optionsAccessor, IOptions scaleoutOptionsAccessor ) : 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 ( IStringMinifier stringMinifier, ILoggerFactory loggerFactory, IPerformanceCounterManager performanceCounterManager, IOptions optionsAccessor, IOptions scaleoutOptionsAccessor ) : System
stringMinifier IStringMinifier
loggerFactory ILoggerFactory
performanceCounterManager IPerformanceCounterManager
optionsAccessor IOptions
scaleoutOptionsAccessor IOptions
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