コード例 #1
0
 public TodoItemTagDBController(IMapper mapper, ITodoItemTagProviderAsync provider, IDataProviderAsync <TagVo> tagProvider, IDataProviderAsync <TodoItemVo> todoItemProvider)
 {
     this.provider         = provider;
     this.mapper           = mapper;
     this.tagProvider      = tagProvider;
     this.todoItemProvider = todoItemProvider;
 }
コード例 #2
0
        public async void Schedule(IDataProviderAsync dataProvider, object inputData)
        {
            try
            {
                var result = await dataProvider.ProvideData(inputData);
                OnDataReceived(new ProviderRuntimeResult
                {
                    ProviderName = dataProvider.Name,
                    ProviderStatus = EWorkflowProviderRuntimeStatus.Success,
                    Result = result,
                });

            }
            catch (DataProviderException exc)
            {
                OnDataReceived(new ProviderRuntimeResult
                {
                    ProviderName = dataProvider.Name,
                    ProviderStatus = EWorkflowProviderRuntimeStatus.Faulted,
                    Details = exc,
                });
            }
        }
コード例 #3
0
        public async void Schedule(IDataProviderAsync dataProvider, object inputData)
        {
            try
            {
                var result = await dataProvider.ProvideData(inputData);

                OnDataReceived(new ProviderRuntimeResult
                {
                    ProviderName   = dataProvider.Name,
                    ProviderStatus = EWorkflowProviderRuntimeStatus.Success,
                    Result         = result,
                });
            }
            catch (DataProviderException exc)
            {
                OnDataReceived(new ProviderRuntimeResult
                {
                    ProviderName   = dataProvider.Name,
                    ProviderStatus = EWorkflowProviderRuntimeStatus.Faulted,
                    Details        = exc,
                });
            }
        }
コード例 #4
0
 public CategoryDBController(IMapper mapper, IDataProviderAsync <CategoryVo> provider)
 {
     this.provider = provider;
     this.mapper   = mapper;
 }
コード例 #5
0
ファイル: TodoItemDBController.cs プロジェクト: Naktis/to-do
 public TodoItemDBController(IMapper mapper, IDataProviderAsync <TodoItemVo> provider, IDataProviderAsync <CategoryVo> categoryProvider)
 {
     this.provider         = provider;
     this.mapper           = mapper;
     this.categoryProvider = categoryProvider;
 }
コード例 #6
0
ファイル: TagDBController.cs プロジェクト: Naktis/to-do
 public TagDBController(IMapper mapper, IDataProviderAsync <TagVo> provider)
 {
     this.provider = provider;
     this.mapper   = mapper;
 }