コード例 #1
0
 protected virtual DateTime OnRenewLock(TrackingContext trackingContext, TimeSpan timeout)
 {
     MessageSession.RetrySessionAsyncResult retrySessionAsyncResult = new MessageSession.RetrySessionAsyncResult(this, trackingContext, MessageSession.SessionOperation.RenewSessionLock, null, this.OperationTimeout, null, null);
     retrySessionAsyncResult.RunSynchronously();
     return(retrySessionAsyncResult.LockedUntilUtcTime);
 }
コード例 #2
0
 protected virtual void OnSetState(TrackingContext trackingContext, Stream stream, TimeSpan timeout)
 {
     MessageSession.RetrySessionAsyncResult retrySessionAsyncResult = new MessageSession.RetrySessionAsyncResult(this, trackingContext, MessageSession.SessionOperation.SetState, stream, timeout, null, null);
     retrySessionAsyncResult.RunSynchronously();
 }
コード例 #3
0
 protected virtual Stream OnGetState(TrackingContext trackingContext, TimeSpan timeout)
 {
     MessageSession.RetrySessionAsyncResult retrySessionAsyncResult = new MessageSession.RetrySessionAsyncResult(this, trackingContext, MessageSession.SessionOperation.GetState, null, this.OperationTimeout, null, null);
     retrySessionAsyncResult.RunSynchronously();
     return(retrySessionAsyncResult.SessionState);
 }