示例#1
0
        public Task CloseAsync(IChangeFeedObserverContext context, ChangeFeedObserverCloseReason reason)
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Observer closed, {0}", context.PartitionKeyRangeId);
            Console.WriteLine("Reason for shutdown, {0}", reason);
            Console.ForegroundColor = ConsoleColor.White;

            return(Task.CompletedTask);
        }
示例#2
0
 public Task CloseAsync(Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.IChangeFeedObserverContext context, Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.ChangeFeedObserverCloseReason reason)
 {
     try
     {
         return(Task.CompletedTask);
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#3
0
 public Task CloseAsync(IChangeFeedObserverContext context, Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.ChangeFeedObserverCloseReason reason)
 {
     return(Task.CompletedTask);
 }
示例#4
0
 public Task CloseAsync(IChangeFeedObserverContext context, ChangeFeedObserverCloseReason reason)
 {
     Console.WriteLine($"CloseAsync: {context.PartitionKeyRangeId}, {context.FeedResponse}, {reason}");
     return(Task.CompletedTask);  // Note: requires targeting .Net 4.6+.
 }
示例#5
0
 public Task CloseAsync(IChangeFeedObserverContext context, ChangeFeedObserverCloseReason reason)
 {
     Trace.TraceInformation("Observer closed, {0}", context.PartitionKeyRangeId);
     Trace.TraceInformation("Reason for shutdown, {0}", reason);
     return(Task.CompletedTask);
 }