コード例 #1
0
        public async Task <Option <SetupSuccessfulResult, Error> > ExecuteAsync(SetupArguments arguments)
        {
            var folderIdResult = await _cloudStorageService
                                 .GetFolderIdFromPathAsync(arguments.RootCollectionFolder);

            return(folderIdResult
                   .Map(folderId =>
            {
                _configuration.SetRootCollectionFolder(arguments.RootCollectionFolder);
                return new SetupSuccessfulResult();
            }));
        }