C# Класс Microsoft.AspNetCore.SignalR.Messaging.ScaleoutMessageBus

Common base class for scaleout message bus implementations.
Наследование: MessageBus
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CreateSubscription Subscription
OnReceivedCore void
SendImpl void

Открытые методы

Метод Описание
Publish ( Message message ) : System.Threading.Tasks.Task

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Close() защищенный Метод

Closes the specified queue. The index of the stream to close.
protected Close ( int streamIndex ) : void
streamIndex int
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

OnError() защищенный Метод

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.
Результат void

OnReceived() защищенный Метод

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.
Результат void

Open() защищенный Метод

Opens the specified queue for sending messages. The index of the stream to open.
protected Open ( int streamIndex ) : void
streamIndex int
Результат void

Publish() публичный Метод

public Publish ( Message message ) : System.Threading.Tasks.Task
message Message
Результат System.Threading.Tasks.Task

ScaleoutMessageBus() защищенный Метод

protected ScaleoutMessageBus ( IStringMinifier stringMinifier, ILoggerFactory loggerFactory, IPerformanceCounterManager performanceCounterManager, IOptions optionsAccessor, IOptions scaleoutOptionsAccessor ) : System
stringMinifier IStringMinifier
loggerFactory ILoggerFactory
performanceCounterManager IPerformanceCounterManager
optionsAccessor IOptions
scaleoutOptionsAccessor IOptions
Результат System

Send() защищенный Метод

Sends messages to the backplane
protected Send ( IList messages ) : System.Threading.Tasks.Task
messages IList The list of messages to send
Результат System.Threading.Tasks.Task

Send() защищенный Метод

protected Send ( int streamIndex, IList messages ) : System.Threading.Tasks.Task
streamIndex int
messages IList
Результат System.Threading.Tasks.Task