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); }
public Task <IEnumerable <string> > DispatchAsync(IDataSetRequest request) { var newRequest = new DataSetRequest { DataSet = request.DataSet, Properties = request.Properties }; return(_mediator.SendAsync(newRequest)); }