本文整理汇总了C#中ITaskRepository类的典型用法代码示例。如果您正苦于以下问题:C# ITaskRepository类的具体用法?C# ITaskRepository怎么用?C# ITaskRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITaskRepository类属于命名空间,在下文中一共展示了ITaskRepository类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ProjectController
public ProjectController(
IProjectView projectView,
INewProjectView newProjectView,
IProjectRepository projectRepository,
IDealRepository dealRepository,
INewProjectSupplyView newProjectSupplyView,
INewProjectHardwareView newProjectHardwareView,
IEditProjectSupplyView editProjectSupplyView,
IEditProjectHardwareView editProjectHardwareView,
INewProjectFrameView newProjectFrameView,
IEditProjectHardwareSupplyView editProjectHardwareSupplyView,
ILoadingView loadingView,
ICatalogRepository catalogRepository,
ITaskRepository taskRepository)
{
this.projectView = projectView;
this.newProjectView = newProjectView;
this.projectRepository = projectRepository;
this.dealRepository = dealRepository;
this.newProjectSupplyView = newProjectSupplyView;
this.newProjectHardwareView = newProjectHardwareView;
this.editProjectHardwareView = editProjectHardwareView;
this.editProjectSupplyView = editProjectSupplyView;
this.newProjectFrameView = newProjectFrameView;
this.editProjectHardwareSupplyView = editProjectHardwareSupplyView;
this.loadingView = loadingView;
this.catalogRepository = catalogRepository;
this.taskRepository = taskRepository;
}
开发者ID:grozeille,项目名称:chiffrage,代码行数:29,代码来源:ProjectController.cs
示例2: CharcoalStoryProvider
public CharcoalStoryProvider(string apiKey, IStoryRepository storyRepository = null, ITaskRepository taskRepository = null, IUserRepository userRepo = null)
{
m_apiKey = apiKey;
m_userRepo = userRepo ?? new UserRepository();
m_taskRepository = taskRepository ?? new TaskRepository();
m_storyRepository = storyRepository ?? new StoryRepository();
}
开发者ID:Charcoals,项目名称:Charcoal2,代码行数:7,代码来源:CharcoalStoryProvider.cs
示例3: CatalogController
public CatalogController(
ICatalogRepository repository,
ITaskRepository taskRepository,
ICatalogView catalogView,
INewCatalogView newCatalogView,
INewSupplyView newSupplyView,
INewHardwareView newHardwareView,
IEditSupplyView editSupplyView,
IEditHardwareView editHardwareView,
INewHardwareSupplyView newHardwareSupplyView,
IEditHardwareSupplyView editHardwareSupplyView,
IImportHardwareView importHardwareView,
ILoadingView loadingView)
{
this.catalogView = catalogView;
this.newCatalogView = newCatalogView;
this.newSupplyView = newSupplyView;
this.newHardwareView = newHardwareView;
this.editSupplyView = editSupplyView;
this.editHardwareView = editHardwareView;
this.newHardwareSupplyView = newHardwareSupplyView;
this.editHardwareSupplyView = editHardwareSupplyView;
this.importHardwareView = importHardwareView;
this.loadingView = loadingView;
this.repository = repository;
this.taskRepository = taskRepository;
}
开发者ID:grozeille,项目名称:chiffrage,代码行数:27,代码来源:CatalogController.cs
示例4: TaskController
public TaskController(IUnitOfWork unitOfWork, ITaskRepository taskRepository, IProjectRepository projectRepository, IDisposableCollection disposables)
: base(disposables)
{
_taskRepository = taskRepository;
_projectRepository = projectRepository;
_unitOfWork = unitOfWork;
}
开发者ID:nikaburu,项目名称:company-example,代码行数:7,代码来源:TaskController.cs
示例5: TaskBrowser
public TaskBrowser(ITaskRepository taskRepository, ISourceRepository sourceRepository, IShelvesetRepository shelvesetRepository, IBuildRepository buildRepository)
: base(taskRepository, sourceRepository, shelvesetRepository, buildRepository)
{
InitializeComponent();
taskGrid.Grid.MultiSelect = false;
this.ExecuteLater(10, () => SwitchCurrentTab(true));
}
开发者ID:olivierdagenais,项目名称:branchreview,代码行数:7,代码来源:TaskBrowser.cs
示例6: TaskModule
public TaskModule(ITaskRepository taskRepository)
: base("/tasks")
{
Get["/"] = _ => { return Response.AsJson(taskRepository.Find()); };
Get["/status/{Status}"] = param =>
{
string status = param.Status;
return Response.AsJson(taskRepository.FindByStatus(status));
};
Post["/"] = task =>
{
var newTask = this.Bind<Task>();
var t = taskRepository.Save(newTask);
return Response.AsJson(t).WithStatusCode(HttpStatusCode.Created);
};
Put["/{Id}"] = task =>
{
var updatedTask = this.Bind<Task>();
taskRepository.Update(updatedTask);
return HttpStatusCode.OK;
};
Delete["/{Id}"] = param =>
{
taskRepository.Delete(param.Id);
return HttpStatusCode.OK;
};
}
开发者ID:simoraman,项目名称:SimpleBoard,代码行数:31,代码来源:TaskModule.cs
示例7: MainViewModel
public MainViewModel(IMessageBus messageBus, ITaskRepository taskRepository)
: base(messageBus)
{
TaskRepository = taskRepository;
ResetNewTask();
}
开发者ID:brentedwards,项目名称:GettingDirtyWithWP7,代码行数:7,代码来源:MainViewModel.cs
示例8: TaskService
public TaskService(ITaskRepository taskRepository_)
{
if (taskRepository_ == null)
throw new Exception("Task Repository must be defined.");
this._taskRepository = taskRepository_;
}
开发者ID:nitya1979,项目名称:KanbanBoard,代码行数:7,代码来源:TaskService.cs
示例9: TaskController
public TaskController(ITaskRepository repository,
ICategoryRepository categoryRepositoryitory,
IAnswersRepository answersRepository)
{
this.taskRepository = repository;
this.categoryRepositoryitory = categoryRepositoryitory;
this.answersRepository = answersRepository;
}
开发者ID:RelkinIsKuosha,项目名称:MySocialNetwork2,代码行数:8,代码来源:TaskController.cs
示例10: DeviceRepository
public DeviceRepository(DbSet<DeviceModel> devices, DbSet<NetworkModel> networks, Action save, IScriptRepository scripts, ITaskRepository tasks)
{
_devices = devices;
_networks = networks;
_save = save;
_scripts = scripts;
_tasks = tasks;
}
开发者ID:Mavtak,项目名称:roomie,代码行数:8,代码来源:DeviceRepository.cs
示例11: TaskExecutionRepository
public TaskExecutionRepository(ITaskRepository taskRepository,
IExecutionTokenRepository executionTokenRepository,
IEventsRepository eventsRepository)
{
_taskRepository = taskRepository;
_executionTokenRepository = executionTokenRepository;
_eventsRepository = eventsRepository;
}
开发者ID:Vanlightly,项目名称:Taskling.NET,代码行数:8,代码来源:TaskExecutionRepository.cs
示例12: TaskLogic
public TaskLogic(ITaskRepository taskRepository, IUserTaskAssignmentRepository userTaskAssignmentRepository,
ITaskSerialize serializer, IProjectRepository projectRepository)
{
TaskRepository = taskRepository;
UserTaskAssignmentRepository = userTaskAssignmentRepository;
Serializer = serializer;
ProjectRepository = projectRepository;
}
开发者ID:bojakowsky,项目名称:TaskVlopper,代码行数:8,代码来源:TaskLogic.cs
示例13: BuildInspector
public BuildInspector(ITaskRepository taskRepository, ISourceRepository sourceRepository, IShelvesetRepository shelvesetRepository, IBuildRepository buildRepository)
: base(taskRepository, sourceRepository, shelvesetRepository, buildRepository)
{
InitializeComponent();
logViewer.InitializeDefaults();
logViewer.IsReadOnly = true;
logViewer.LongLines.EdgeMode = EdgeMode.None;
}
开发者ID:olivierdagenais,项目名称:branchreview,代码行数:8,代码来源:BuildInspector.cs
示例14: RevisionBrowser
public RevisionBrowser(ITaskRepository taskRepository, ISourceRepository sourceRepository, IShelvesetRepository shelvesetRepository, IBuildRepository buildRepository)
: base(taskRepository, sourceRepository, shelvesetRepository, buildRepository)
{
_revisionInspector = new RevisionInspector(taskRepository, sourceRepository, shelvesetRepository, buildRepository);
InitializeComponent();
activityRevisions.Grid.MultiSelect = false;
}
开发者ID:olivierdagenais,项目名称:branchreview,代码行数:8,代码来源:RevisionBrowser.cs
示例15: TaskController
public TaskController(ITaskRepository repository)
{
if (repository == null)
{
throw new ArgumentNullException("repository");
}
_repository = repository;
}
开发者ID:dannykpowell,项目名称:WebAPITest,代码行数:8,代码来源:TaskController.cs
示例16: DealController
public DealController(IDealRepository dealRepository, ITaskRepository taskRepository, IDealView dealView, INewDealView newDealView, ILoadingView loadingView)
{
this.dealView = dealView;
this.newDealView = newDealView;
this.loadingView = loadingView;
this.taskRepository = taskRepository;
this.dealRepository = dealRepository;
}
开发者ID:grozeille,项目名称:chiffrage,代码行数:8,代码来源:DealController.cs
示例17: TaskService
public TaskService(
IEventBroker eventBroker,
ITaskRepository repository,
ICatalogRepository catalogRepository)
{
this.repository = repository;
this.catalogRepository = catalogRepository;
this.eventBroker = eventBroker;
}
开发者ID:grozeille,项目名称:chiffrage,代码行数:9,代码来源:TaskService.cs
示例18: TaskFacadeService
public TaskFacadeService(ITaskService taskService, ITaskSyncService taskSyncService,
ITaskRepository taskRepository,ITaskCategoryRepository taskCategoryRepository)
{
this.taskService = taskService;
this.taskSyncService = taskSyncService;
this.taskRepository = taskRepository;
this.taskCategoryRepository = taskCategoryRepository;
}
开发者ID:ehsmohammadi,项目名称:BTE.RMS,代码行数:9,代码来源:TaskFacadeService.cs
示例19: AbstractHistoryComponent
protected AbstractHistoryComponent(ITaskRepository taskRepository, ISourceRepository sourceRepository, IShelvesetRepository shelvesetRepository, IBuildRepository buildRepository)
{
_taskRepository = taskRepository;
_sourceRepository = sourceRepository;
_shelvesetRepository = shelvesetRepository;
_buildRepository = buildRepository;
this.GotFocus += AbstractHistoryComponent_GotFocus;
}
开发者ID:olivierdagenais,项目名称:branchreview,代码行数:9,代码来源:AbstractHistoryComponent.cs
示例20: TestController
public TestController(ITaskRepository taskRepository, ICodeRepository codeRepository,
IResultRepository resultRepository, IUserRepository userRepository, IAllCodeRepository allCodeRepository)
{
_taskRepository = taskRepository;
_codeRepository = codeRepository;
_resultRepository = resultRepository;
_userRepository = userRepository;
_allCodeRepository = allCodeRepository;
}
开发者ID:LexaGal,项目名称:TestSystem,代码行数:9,代码来源:TestController.cs
注:本文中的ITaskRepository类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论