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); }
public Task CloseAsync(Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.IChangeFeedObserverContext context, Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.ChangeFeedObserverCloseReason reason) { try { return(Task.CompletedTask); } catch (Exception) { throw; } }
public Task CloseAsync(IChangeFeedObserverContext context, Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.ChangeFeedObserverCloseReason reason) { return(Task.CompletedTask); }
public Task CloseAsync(IChangeFeedObserverContext context, ChangeFeedObserverCloseReason reason) { Console.WriteLine($"CloseAsync: {context.PartitionKeyRangeId}, {context.FeedResponse}, {reason}"); return(Task.CompletedTask); // Note: requires targeting .Net 4.6+. }
public Task CloseAsync(IChangeFeedObserverContext context, ChangeFeedObserverCloseReason reason) { Trace.TraceInformation("Observer closed, {0}", context.PartitionKeyRangeId); Trace.TraceInformation("Reason for shutdown, {0}", reason); return(Task.CompletedTask); }