コード例 #1
0
        public async Task <Tuple <string, IImmutableList <MinersConfigModel> > > Setup()
        {
            var fileResponse = await _fileSvc.Load();

            if (fileResponse.Errors.Any())
            {
                _fileView.DisplayErrors(fileResponse.Errors);
                Environment.Exit(-1);
            }

            return(new Tuple <string, IImmutableList <MinersConfigModel> >
                       (fileResponse.AccessKey, fileResponse.MinersConfig));
        }