C# 클래스 StompNet.IO.StompFrameWriterWithConfirmation

A wrapper of an IStompFrameWriter (plus an IStompFrameObservable) that waits for the receipt confirmation frame before returning. If a receipt message is not received, the message is re-send in intervals of 30 seconds. The default retry interval can be changed at the constructor. This wrapper also handles the case for connect and connected frames. As the second one is the confirmation of the first one. Receipt header "~connect" is reserved. (quotation marks for clarification). Receipt headers should not be reused. It may produce unexpected results. The receipt header is assumed to already come with the frame to be written on the stream.
상속: IStompFrameWriter
파일 보기 프로젝트 열기: krlito/StompNet

공개 프로퍼티들

프로퍼티 타입 설명
DefRetryInterval System.TimeSpan

공개 메소드들

메소드 설명
Dispose ( ) : void
StompFrameWriterWithConfirmation ( IStompFrameWriter writer, IStompFrameObservable frameObservable, System.TimeSpan retryInterval = null ) : System

Constructor.

WriteAsync ( Frame frame, CancellationToken cancellationToken ) : Task

Write a frame and wait for its receipt frame before returning. This method does not add a receipt header if it is not included already. If the receipt header is not in the frame headers then it returns after sending the message.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
OnCompleted ( ) : void
OnError ( Exception error ) : void
OnNext ( Frame frame ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

StompFrameWriterWithConfirmation() 공개 메소드

Constructor.
public StompFrameWriterWithConfirmation ( IStompFrameWriter writer, IStompFrameObservable frameObservable, System.TimeSpan retryInterval = null ) : System
writer IStompFrameWriter Frame writer.
frameObservable IStompFrameObservable Frame observable to be used to receive the confirmations.
retryInterval System.TimeSpan When sending messages that requires receipt confirmation, /// this interval specifies how much time to wait before sending the frame again if /// no receipt is received.
리턴 System

WriteAsync() 공개 메소드

Write a frame and wait for its receipt frame before returning. This method does not add a receipt header if it is not included already. If the receipt header is not in the frame headers then it returns after sending the message.
public WriteAsync ( Frame frame, CancellationToken cancellationToken ) : Task
frame StompNet.Models.Frames.Frame
cancellationToken System.Threading.CancellationToken
리턴 Task

프로퍼티 상세

DefRetryInterval 공개적으로 정적으로 프로퍼티

public static TimeSpan,System DefRetryInterval
리턴 System.TimeSpan