C# 클래스 Microsoft.AspNetCore.SignalR.Messaging.ScaleoutMessageBus

Common base class for scaleout message bus implementations.
상속: MessageBus
파일 보기 프로젝트 열기: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

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