Exemple #1
0
        public async Task <IActionResult> LoadDataFromSpreadsheet()
        {
            var request = new LoadCardDataRequest();
            var reply   = await _client.LoadDataFromSpreadsheet(request, Timeouts.GLOBAL);

            if (!reply.Success)
            {
                return(StatusCode(500));
            }
            return(Ok(reply.Response));
        }
 public Task <MessageResponse <(CollectionData[], LocalCardData[])> > LoadDataFromSpreadsheet(LoadCardDataRequest request, int millisecondsTimeout = -1, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(WriteAndReply <LoadCardDataRequest, (CollectionData[], LocalCardData[])>(Queueing.Queues.GetCollectionData, request, null, millisecondsTimeout, cancellationToken));