Esempio n. 1
0
        public async override Task MarkFilesAsUsedAsync(MarkFilesAsUsedCommand command)
        {
            this.Logger.LogInformation("[Start] {0} received.", command.GetType().Name);

            if (command != null)
            {
                this.Logger.LogInformation("[Start] Processing {0} with id = '{1}' and correlationId = '{2}'. Marking files in the upload session as in use.",
                                           command.GetType().Name, command.CommandId, command.CorrelationId);
            }

            await base.MarkFilesAsUsedAsync(command);

            if (command != null)
            {
                this.Logger.LogInformation("[Finish] Processing {0} with id = '{1}' and correlationId = '{2}'. Marking files in the upload session as in use.",
                                           command.GetType().Name, command.CommandId, command.CorrelationId);
            }

            this.Logger.LogInformation("[Finish] {0} received.", command.GetType().Name);
        }