Example #1
0
        public async Task HandleEventData(string ServiceBusNamespace, string EventHub, string ConsumerGroupName, EventData ed)
        {
            RouteToActorWorkItem wi = await RouteToActorWorkItem.CreateAsync(
                ed,
                ed.SystemProperties[EventDataSystemPropertyNames.Publisher].ToString(),
                EventHub,
                ServiceBusNamespace);

            await this.workManager.PostWorkItemAsync(wi);
        }
        public static async Task<RouteToActorWorkItem> CreateAsync(EventData ev, string publisherName, string eventHubName, string serviceBusNS)
        {
            RouteToActorWorkItem wi = new RouteToActorWorkItem()
            {
                Body = await ev.GetBodyStream().ToBytes(),
                PublisherName = publisherName,
                EventHubName = eventHubName,
                ServiceBusNS = serviceBusNS
            };

            return wi;
        }
Example #3
0
        public static async Task <RouteToActorWorkItem> CreateAsync(EventData ev, string publisherName, string eventHubName, string serviceBusNS)
        {
            RouteToActorWorkItem wi = new RouteToActorWorkItem()
            {
                Body          = await ev.GetBodyStream().ToBytes(),
                PublisherName = publisherName,
                EventHubName  = eventHubName,
                ServiceBusNS  = serviceBusNS
            };

            return(wi);
        }