public override async Task <PushDataReply> PushData(PushDataRequest request, ServerCallContext context) { _logger.LogInformation($"Received request to push data. Forwarding to implementation. {request}"); var result = await this.implementation.PushDataToStorage(request.SourceFilePath); if (_configuration["DeleteDataAfterUse"] == "true") { // Delete the file that has just been copied from the output to the permanent storage. File.Delete(request.SourceFilePath); // Delete the file that triggered the step from the input storage. File.Delete(request.DeletePath); } var reply = new PushDataReply { GeneratedMetadata = result }; return(reply); }
public async Task <PushDataReply> PushData(PushDataRequest metadata) { return(await Task.Run(() => this._client.PushData(metadata))); }