当前位置: 首页>>代码示例>>C#>>正文


C# ITaskService类代码示例

本文整理汇总了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;
 }
开发者ID:kevinswarner,项目名称:Hover_OLD,代码行数:7,代码来源:TaskController.cs

示例2: TaskListController

        public TaskListController(ITaskService taskService, IObjectMapper mapper)
        {
            this.taskService = taskService;
            this.mapper = mapper;

            AllTasks = new ObservableCollection<TaskViewModel>();
        }
开发者ID:aleksandrzak-rafal,项目名称:AdaptiveCode,代码行数:7,代码来源:TaskListController.cs

示例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>();
        }
开发者ID:jazzhuang,项目名称:cooper-ali,代码行数:31,代码来源:TestBase.cs

示例4: MeazureRunner

 public MeazureRunner(ITaskService taskService, ITimeService timeService, IInputService inputService, IProjectService projectService)
 {
     _taskService = taskService;
     _timeService = timeService;
     _inputService = inputService;
     _projectService = projectService;
 }
开发者ID:surgeforward,项目名称:nagger,代码行数:7,代码来源:MeazureRunner.cs

示例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;
 }
开发者ID:deboe2015,项目名称:crumb-crm,代码行数:25,代码来源:LeadController.cs

示例6: AccountController

 public AccountController(IUserService userService, IAuthorizationService authService, IAnswerService answerService, ITaskService taskService)
 {
     this.userService = userService;
     this.authService = authService;
     this.answerService = answerService;
     this.taskService = taskService;
 }
开发者ID:TheTypoMaster,项目名称:Task,代码行数:7,代码来源:AccountController.cs

示例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);
            }
        }
开发者ID:rusanov-vladimir,项目名称:magnus,代码行数:30,代码来源:MainWindowViewModel.cs

示例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";
        }
开发者ID:sunleepy,项目名称:cooper,代码行数:25,代码来源:TestBase.cs

示例9: HomeController

 public HomeController(IAccountService accountService, ITaskService taskService, IAreaService areaService, ITaskListService taskListService, ITagService tagService)
 {
     _accountService = accountService;
     _taskService = taskService;
     _areaService = areaService;
     _taskListService = taskListService;
     _tagService = tagService;
 }
开发者ID:kevinswarner,项目名称:Hover_OLD,代码行数:8,代码来源:HomeController.cs

示例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;
        }
开发者ID:PavelZakharenko,项目名称:TaskManager,代码行数:10,代码来源:TaskController.cs

示例11: TaskItemController

 public TaskItemController(ITaskService taskService,
     ITaskItemService taskItemService,
     ICaptureRuleService captureRuleService)
 {
     this.taskService = taskService;
     this.taskItemService = taskItemService;
     this.captureRuleService = captureRuleService;
 }
开发者ID:hsb0307,项目名称:Crawler5,代码行数:8,代码来源:TaskItemController.cs

示例12: AccountService

 public AccountService(IAccountRepository repository, ITaskListService taskListService, ITaskService taskService, IAreaService areaService, ITagService tagService)
 {
     _repository = repository;
     _taskListService = taskListService;
     _taskService = taskService;
     _areaService = areaService;
     _tagService = tagService;
 }
开发者ID:kevinswarner,项目名称:hovertasks,代码行数:8,代码来源:AccountService.cs

示例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;

        }
开发者ID:PavelZakharenko,项目名称:TaskManager,代码行数:10,代码来源:TaskMapper.cs

示例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;
 }
开发者ID:AntonDershen,项目名称:Task,代码行数:9,代码来源:TaskController.cs

示例15: MainPresenter

		public MainPresenter(
			ISettingsService settingsService, IRecentFilesService recentFilesService,
			IDataService dataService, ITaskService taskService)
		{
			this.settingsService = settingsService;
			this.recentFilesService = recentFilesService;
			this.dataService = dataService;
			this.taskService = taskService;
		}
开发者ID:aleffnull,项目名称:DataTable.Net,代码行数:9,代码来源:MainPresenter.cs


注:本文中的ITaskService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。