示例#1
0
        public Task Timeout(MyTimeout state, IMessageHandlerContext context)
        {
            Logger.InfoFormat("Timeout reached with a count of: {0}", this.Data.Count);
            this.MarkAsComplete();

            return(Task.FromResult(0));
        }
示例#2
0
 /// <summary>
 /// The timeout.
 /// </summary>
 /// <param name="state">
 /// The state.
 /// </param>
 public void Timeout(MyTimeout state)
 {
     Logger.InfoFormat("Timeout reached with a count of: {0}", this.Data.Count);
     this.MarkAsComplete();
 }