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

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

Private Properties

Свойство Type Description
CreateSubscription Subscription
OnReceivedCore void
SendImpl void

Méthodes publiques

Méthode Description
Publish ( Message message ) : System.Threading.Tasks.Task

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnError() protected méthode

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.
Résultat void

OnReceived() protected méthode

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.
Résultat void

Open() protected méthode

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

Publish() public méthode

public Publish ( Message message ) : System.Threading.Tasks.Task
message Message
Résultat System.Threading.Tasks.Task

ScaleoutMessageBus() protected méthode

protected ScaleoutMessageBus ( IStringMinifier stringMinifier, ILoggerFactory loggerFactory, IPerformanceCounterManager performanceCounterManager, IOptions optionsAccessor, IOptions scaleoutOptionsAccessor ) : System
stringMinifier IStringMinifier
loggerFactory ILoggerFactory
performanceCounterManager IPerformanceCounterManager
optionsAccessor IOptions
scaleoutOptionsAccessor IOptions
Résultat System

Send() protected méthode

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

Send() protected méthode

protected Send ( int streamIndex, IList messages ) : System.Threading.Tasks.Task
streamIndex int
messages IList
Résultat System.Threading.Tasks.Task