コード例 #1
0
        public Task <string> Process(int item, object context)
        {
            return(Task.Run(() =>
            {
                Logger.LogTrace($"Int2WordsProcessor.Process - starting");

                var rc = $"{item:000} - {Int2WordsService.ToWords(item)}";

                Logger.LogTrace($"Int2WordsProcessor.Process - done");

                return rc;
            }));
        }
コード例 #2
0
 public Int2WordsProcessor(Int2WordsService int2WordsService, ILogger <Int2WordsProcessor> logger)
 {
     Int2WordsService = int2WordsService;
     Logger           = logger;
 }