本文整理汇总了C#中ITaskService类的典型用法代码示例。如果您正苦于以下问题:C# ITaskService类的具体用法?C# ITaskService怎么用?C# ITaskService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITaskService类属于命名空间,在下文中一共展示了ITaskService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TaskController
public TaskController(IAccountService accountService, ITaskService taskService, ITaskListService taskListService, ITagService tagService)
{
_accountService = accountService;
_taskService = taskService;
_taskListService = taskListService;
_tagService = tagService;
}
示例2: TaskListController
public TaskListController(ITaskService taskService, IObjectMapper mapper)
{
this.taskService = taskService;
this.mapper = mapper;
AllTasks = new ObservableCollection<TaskViewModel>();
}
示例3: TestFixtureSetUp
public void TestFixtureSetUp()
{
try
{
CodeSharp.Core.Configuration.ConfigWithEmbeddedXml(null
, "application_config"
, Assembly.GetExecutingAssembly()
, "AliCooper.Model.Test.ConfigFiles")
.RenderProperties()
.Castle(o => this.Resolve(o.Container));
//初始化同步锁
DependencyResolver.Resolve<ILockHelper>().Init<Account>();
DependencyResolver.Resolve<ILockHelper>().Init<GoogleConnection>();
DependencyResolver.Resolve<ILockHelper>().Init<ArkConnection>();
}
catch (InvalidOperationException e)
{
if (!e.Message.Contains("不可重复初始化配置"))
Console.WriteLine(e.Message);
}
this._log = DependencyResolver.Resolve<ILoggerFactory>().Create(this.GetType());
this._sessionManager = DependencyResolver.Resolve<Castle.Facilities.NHibernateIntegration.ISessionManager>();
this._accountHelper = DependencyResolver.Resolve<IAccountHelper>();
this._accountService = DependencyResolver.Resolve<IAccountService>();
this._accountConnectionService = DependencyResolver.Resolve<IAccountConnectionService>();
this._taskService = DependencyResolver.Resolve<ITaskService>();
}
示例4: MeazureRunner
public MeazureRunner(ITaskService taskService, ITimeService timeService, IInputService inputService, IProjectService projectService)
{
_taskService = taskService;
_timeService = timeService;
_inputService = inputService;
_projectService = projectService;
}
示例5: LeadController
public LeadController(
ILeadService LeadService,
IContactService contactService,
IMembershipService membershipService,
IRoleService roleService,
INoteService noteService,
IActivityService activityService,
ISaleService saleService,
ITaskService taskService,
ViewDataHelper viewdataHelper,
ICampaignService campaignService,
ITagService tagService)
{
_leadService = LeadService;
_contactService = contactService;
_membershipService = membershipService;
_roleService = roleService;
_noteService = noteService;
_activityService = activityService;
_saleService = saleService;
_taskService = taskService;
_viewdataHelper = viewdataHelper;
_campaignService = campaignService;
_tagService = tagService;
}
示例6: AccountController
public AccountController(IUserService userService, IAuthorizationService authService, IAnswerService answerService, ITaskService taskService)
{
this.userService = userService;
this.authService = authService;
this.answerService = answerService;
this.taskService = taskService;
}
示例7: MainWindowViewModel
public MainWindowViewModel(IFooterNavigationViewModel footer, IContentViewModel content, ITaskService taskService)
{
_taskService = taskService;
LogOutCommand = new DelegateCommand(() =>
{
LogOut(content);
});
var task = _taskService.GetOrCreateTask(Thread.CurrentPrincipal.Identity.Name);
_taskService.PrepareWorkspaceForTask(task.Id);
if(task == null)
throw new ArgumentException("Task cannot be null");
Footer = footer;
Content = content;
footer.NavigationHappened += OnFooterNavigation;
if (task.CurrentDocument == null){
footer.GoToFirstFile.Execute().Wait();
}
else
{
var path = Footer.LoadDocumentAndReturnItsPath(task.CurrentDocument.Name);
Content.ImageVisualization.FilePath = path;
Content.Fields.TotalFieldsNumber = task.Documents.Count;
Content.Fields.TaskId = task.Id;
content.Fields.OnNavigationHappened(task, true);
}
}
示例8: TestFixtureSetUp
public void TestFixtureSetUp()
{
Configuration.ConfigWithEmbeddedXml(null, "application_config", Assembly.GetExecutingAssembly(), "Cooper.Sync.Test.ConfigFiles")
.RenderProperties()
.Castle(resolver => Resolve(resolver.Container));
//初始化同步锁
DependencyResolver.Resolve<ILockHelper>().Init<Account>();
DependencyResolver.Resolve<ILockHelper>().Init<GoogleConnection>();
_logger = DependencyResolver.Resolve<ILoggerFactory>().Create(GetType());
_sessionManager = DependencyResolver.Resolve<ISessionManager>();
_accountHelper = DependencyResolver.Resolve<IAccountHelper>();
_accountService = DependencyResolver.Resolve<IAccountService>();
_accountConnectionService = DependencyResolver.Resolve<IAccountConnectionService>();
_taskService = DependencyResolver.Resolve<ITaskService>();
_externalServiceProvider = DependencyResolver.Resolve<IExternalServiceProvider>();
_googleTokenService = DependencyResolver.Resolve<IGoogleTokenService>();
_syncProcessor = DependencyResolver.Resolve<IGoogleSyncProcesser>();
GoogleSyncSettings.ClientIdentifier = "234919028272-gsmmng06nheoih4ajp60oq8s33at1os0.apps.googleusercontent.com";
GoogleSyncSettings.ClientSecret = "jXcjxFzCQGferMI37I0GSc05";
}
示例9: HomeController
public HomeController(IAccountService accountService, ITaskService taskService, IAreaService areaService, ITaskListService taskListService, ITagService tagService)
{
_accountService = accountService;
_taskService = taskService;
_areaService = areaService;
_taskListService = taskListService;
_tagService = tagService;
}
示例10: TaskController
// GET: Task
public TaskController(IProjectService projectService, IUserService userService, ITaskService taskService, ITaskMapper taskMapper,IUserMapper userMapper)
{
this.taskMapper = taskMapper;
this.taskService = taskService;
this.userService = userService;
this.projectService = projectService;
this.userMapper = userMapper;
}
示例11: TaskItemController
public TaskItemController(ITaskService taskService,
ITaskItemService taskItemService,
ICaptureRuleService captureRuleService)
{
this.taskService = taskService;
this.taskItemService = taskItemService;
this.captureRuleService = captureRuleService;
}
示例12: AccountService
public AccountService(IAccountRepository repository, ITaskListService taskListService, ITaskService taskService, IAreaService areaService, ITagService tagService)
{
_repository = repository;
_taskListService = taskListService;
_taskService = taskService;
_areaService = areaService;
_tagService = tagService;
}
示例13: TaskMapper
//private ITaskMapper taskMapper;
public TaskMapper (ITaskService taskService, IUserService userService, IUserMapper userMapper, IProjectService projectService)
{
//this.taskMapper = taskMapper;
this.taskService = taskService;
this.projectService = projectService;
this.userService = userService;
this.userMapper = userMapper;
}
示例14: TaskController
public TaskController(ITaskService taskService, IAuthorizationService authorizationService, ITagService tagService, IPhotoService photoService, IAnswerService answerService,IUserService userService)
{
this.taskService = taskService;
this.authorizationService = authorizationService;
this.tagService = tagService;
this.photoService = photoService;
this.answerService = answerService;
this.userService = userService;
}
示例15: MainPresenter
public MainPresenter(
ISettingsService settingsService, IRecentFilesService recentFilesService,
IDataService dataService, ITaskService taskService)
{
this.settingsService = settingsService;
this.recentFilesService = recentFilesService;
this.dataService = dataService;
this.taskService = taskService;
}