private async void Source_Integration(object sender, Buildersoft.Andy.X.Streams.Model.Data <Models.Test.Request> e) { Thread.Sleep(new TimeSpan(0, 0, 10)); await _responseOutboundService.WriteResponse(new Models.Test.Response() { Message = e.RawData.Message, Autonumber = e.RawData.Autonumber }); }
private async void Source_Integration(object sender, Buildersoft.Andy.X.Streams.Model.Data <Command> e) { TimeSpan kohaEPranuar = DateTime.Now.TimeOfDay; Event @event = new Event() { Data = e.RawData.Data, Koha = e.RawData.Koha, KohaEPranuar = kohaEPranuar.ToString(), DiferencaNeMilisekonda = (kohaEPranuar - TimeSpan.Parse(e.RawData.Koha)).TotalMilliseconds }; await _eventOutboundService.WriteEvent(@event); }