Exemplo n.º 1
0
        public async Task <IEnumerable <string> > Handle(DataSetRequest message)
        {
            var container = new DataSetContainer(_dataSetResolver, message.Properties);

            container.AddRange(DataSetTypes);

            var messages = await container.Execute(container.DatasetsByType.Keys.First(t => t.FullName == message.DataSet));

            return(messages);
        }
Exemplo n.º 2
0
        public Task <IEnumerable <string> > DispatchAsync(IDataSetRequest request)
        {
            var newRequest = new DataSetRequest
            {
                DataSet    = request.DataSet,
                Properties = request.Properties
            };

            return(_mediator.SendAsync(newRequest));
        }