Esempio n. 1
0
        public Task <IValueProvider> BindAsync(BindingContext context)
        {
            var headers    = (Dictionary <string, string>)context.BindingData[NServiceBusTriggerBinding.BindingNames.Headers];
            var dispatcher = (IDispatchMessages)context.BindingData[NServiceBusTriggerBinding.BindingNames.Dispatcher];

            var collector = new NServiceBusCollector(headers, dispatcher);

            return(Task.FromResult <IValueProvider>(new NServiceBusCollectorValueProvider(collector)));
        }
 public NServiceBusCollectorValueProvider(NServiceBusCollector collector)
 {
     this.collector = collector;
 }