本文整理汇总了C#中ITaskRepository类的典型用法代码示例。如果您正苦于以下问题:C# ITaskRepository类的具体用法?C# ITaskRepository怎么用?C# ITaskRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITaskRepository类属于命名空间,在下文中一共展示了ITaskRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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();
}
示例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;
}
示例4: TaskController
public TaskController(IUnitOfWork unitOfWork, ITaskRepository taskRepository, IProjectRepository projectRepository, IDisposableCollection disposables)
: base(disposables)
{
_taskRepository = taskRepository;
_projectRepository = projectRepository;
_unitOfWork = unitOfWork;
}
示例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));
}
示例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;
};
}
示例7: MainViewModel
public MainViewModel(IMessageBus messageBus, ITaskRepository taskRepository)
: base(messageBus)
{
TaskRepository = taskRepository;
ResetNewTask();
}
示例8: TaskService
public TaskService(ITaskRepository taskRepository_)
{
if (taskRepository_ == null)
throw new Exception("Task Repository must be defined.");
this._taskRepository = taskRepository_;
}
示例9: TaskController
public TaskController(ITaskRepository repository,
ICategoryRepository categoryRepositoryitory,
IAnswersRepository answersRepository)
{
this.taskRepository = repository;
this.categoryRepositoryitory = categoryRepositoryitory;
this.answersRepository = answersRepository;
}
示例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;
}
示例11: TaskExecutionRepository
public TaskExecutionRepository(ITaskRepository taskRepository,
IExecutionTokenRepository executionTokenRepository,
IEventsRepository eventsRepository)
{
_taskRepository = taskRepository;
_executionTokenRepository = executionTokenRepository;
_eventsRepository = eventsRepository;
}
示例12: TaskLogic
public TaskLogic(ITaskRepository taskRepository, IUserTaskAssignmentRepository userTaskAssignmentRepository,
ITaskSerialize serializer, IProjectRepository projectRepository)
{
TaskRepository = taskRepository;
UserTaskAssignmentRepository = userTaskAssignmentRepository;
Serializer = serializer;
ProjectRepository = projectRepository;
}
示例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;
}
示例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;
}
示例15: TaskController
public TaskController(ITaskRepository repository)
{
if (repository == null)
{
throw new ArgumentNullException("repository");
}
_repository = repository;
}