Exemplo n.º 1
0
        public override ChangeFeedProcessorBuilder GetChangeFeedProcessorBuilder <T>(
            string processorName,
            ChangeFeedHandler <T> onChangesDelegate)
        {
            return(this.container.GetChangeFeedProcessorBuilder(
                       processorName,
                       async(
                           ChangeFeedProcessorContext context,
                           IReadOnlyCollection <JObject> documents,
                           CancellationToken cancellationToken) =>
            {
                List <T> decryptItems = await this.DecryptChangeFeedDocumentsAsync <T>(
                    documents,
                    cancellationToken);

                // Call the original passed in delegate
                await onChangesDelegate(context, decryptItems, cancellationToken);
            }));
        }
 public override ChangeFeedProcessorBuilder GetChangeFeedProcessorBuilder <T>(
     string processorName,
     ChangeFeedHandler <T> onChangesDelegate)
 {
     throw new NotImplementedException();
 }