• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ITaskManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ITaskManager的典型用法代码示例。如果您正苦于以下问题:C# ITaskManager类的具体用法?C# ITaskManager怎么用?C# ITaskManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ITaskManager类属于命名空间,在下文中一共展示了ITaskManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SetUp

		public void SetUp()
		{
			IKernel kernel = new StandardKernel();
			var refRepository = Substitute.For<IReferenceRepository>();
			refRepository.GetRoles().ReturnsForAnyArgs(new List<Role>() {
        new Role() { DisplayName = "Appraiser", Id = 1 },
        new Role() { DisplayName = "Appraisal Company Admin", Id = 2 },
        new Role() { DisplayName = "DVS Super Admin", Id = 3 },
        new Role() { DisplayName = "DVS Admin", Id = 4 },
        new Role() { DisplayName = "Company Admin and Appraiser", Id = 5 }
      });
			refRepository.GetRole(RoleType.AppraisalCompanyAdmin).Returns(new Role() { DisplayName = "Appraisal Company Admin", Id = 2 });
			refRepository.GetRole(RoleType.DvsAdmin).Returns(new Role() { DisplayName = "DVS Admin", Id = 4 });

			kernel.Bind<IReferenceRepository>().ToConstant(refRepository);
			kernel.Bind<IReferenceManagement>().To<ReferenceManagement>().InSingletonScope();
			kernel.Bind<ICacheService>().To<FakeCacheService>();
			Singletones.NinjectKernel = kernel;
			_userManager = Substitute.For<IUsersManagement>();
			_appraiserService = Substitute.For<IAppraiserUserService>();
			_companyService = Substitute.For<IAppraisalCompanyService>();
			_taskManager = Substitute.For<ITaskManager>();
			_testOrderManager = Substitute.For<ITestOrderManager>();
			//_geocodingValidation = new GeocodingZIPValidation(Substitute.For<IGeocodingDataService>());
			//_geocodingValidation.ValidateAddress(new ValidateAddressArg()).ReturnsForAnyArgs(new ValidateAddressResult { IsValid = true });
			_geocodingValidation = new FakeGeocodingZIPValidation();

			_target = new AppraiserUserAddController(_userManager, _appraiserService, _companyService, _taskManager, _testOrderManager, _geocodingValidation);
			_target.SecurityContext = Substitute.For<ISecurityContext>();
			_target.SecurityContext.CurrentUser.Returns(new User() { Id = 1, Roles = new Role[] { new Role() { Id = (int)RoleType.DvsAdmin } } });
		}
开发者ID:evkap,项目名称:DVS,代码行数:31,代码来源:AppraiserUserAddControllerTest.cs


示例2: TeacherTaskController

 public TeacherTaskController(ITaskManager taskManager, ISubjectManager subjectManager, ITypeOfTaskManager typeOfTaskManager, IGroupManager groupManager)
 {
     this._taskManager = taskManager;
     this._subjectManager = subjectManager;
     this._typeOfTaskManager = typeOfTaskManager;
     this._groupManager = groupManager;
 }
开发者ID:spenar,项目名称:hts,代码行数:7,代码来源:TeacherTaskController.cs


示例3: AutomaticRestartEntryPoint

 public AutomaticRestartEntryPoint(IServerApplicationHost appHost, ILogger logger, ITaskManager iTaskManager, ISessionManager sessionManager)
 {
     _appHost = appHost;
     _logger = logger;
     _iTaskManager = iTaskManager;
     _sessionManager = sessionManager;
 }
开发者ID:jscorrea,项目名称:MediaBrowser,代码行数:7,代码来源:AutomaticRestartEntryPoint.cs


示例4:

		public AppraiserProfileController
				(
				IAppraiserUserService appraiserUserService,
				IAscGovLicenseService ascGovLicenseService,
				IUsersManagement usersManager,
				IReferenceManagement referenceManagement,
				IDVSUserManager dvsUsersManager,
				IAppraiserManagement appraiserManager,
				IAppraiserAccessManager appraiserAccessManager,
				IHUDService hudService,
				IUserAccessHelper userAccessHelper,
				IGeocodingValidation geocodingValidation,
				ITestOrderManager testOrderManager,
				ITaskManager taskManager
				)
		{
			_appraiserUserService = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserUserService);
			_ascGovLicenseService = ValidationUtil.CheckOnNullAndThrowIfNull(ascGovLicenseService);
			_usersManager = ValidationUtil.CheckOnNullAndThrowIfNull(usersManager);
			_referenceManagement = ValidationUtil.CheckOnNullAndThrowIfNull(referenceManagement);
			_appraiserManager = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserManager);
			_dvsUsersManager = ValidationUtil.CheckOnNullAndThrowIfNull(dvsUsersManager);
			_appraiserAccessManager = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserAccessManager);
			_hudService = ValidationUtil.CheckOnNullAndThrowIfNull(hudService);
			_userAccessHelper = ValidationUtil.CheckOnNullAndThrowIfNull(userAccessHelper);
			_geocodingValidation = geocodingValidation;
			_testOrderManager = ValidationUtil.CheckOnNullAndThrowIfNull(testOrderManager);
			_taskManager = ValidationUtil.CheckOnNullAndThrowIfNull(taskManager);
		}
开发者ID:evkap,项目名称:DVS,代码行数:29,代码来源:AppraiserProfileController.cs


示例5: AppraisalCompanyAddController

		public AppraisalCompanyAddController(IAppraisalCompanySignUpService appraisalCompanySignUpService,
			ITaskManager taskManager, IGeocodingValidation geocodingValidation)
		{
			_appraisalCompanySignUpService = ValidationUtil.CheckOnNullAndThrowIfNull(appraisalCompanySignUpService);
			_taskManager = ValidationUtil.CheckOnNullAndThrowIfNull(taskManager);
			_geocodingValidation = ValidationUtil.CheckOnNullAndThrowIfNull(geocodingValidation);
		}
开发者ID:evkap,项目名称:DVS,代码行数:7,代码来源:AppraisalCompanyAddController.cs


示例6: InitializeAsync

        public void InitializeAsync(CancellationTokenSource cancellationTokenSource,
                                    ITaskManager taskManager,
                                    IHttpDownloaderContainer httpDownloaderContainer,
                                    IErrorFeedback errorFeedback,
                                    IProxySearchFeedback proxySearchFeedback,
                                    IGeoIP geoIP)
        {
            this.httpDownloaderContainer = httpDownloaderContainer;
            TaskItem taskItem = taskManager.Create(Resources.ConfigureProviderOfProxyDetails);

            taskItem.UpdateDetails(Resources.DetermineCurrentIPAddress);

            initializatinTask = httpDownloaderContainer.HttpDownloader
                                                       .GetContentOrNull(MyIPUrl, null, cancellationTokenSource)
                                                       .ContinueWith(task =>
                                                       {
                                                           try
                                                           {
                                                               if (task.Result != null)
                                                               {
                                                                   IPAddress.TryParse(task.Result.Trim(), out myIPAddress);
                                                               }
                                                           }
                                                           finally
                                                           {
                                                               taskItem.Dispose();
                                                           }
                                                       });
        }
开发者ID:rburda82,项目名称:proxysearcher,代码行数:29,代码来源:HttpProxyDetailsProvider.cs


示例7: HubManager

 public HubManager(ILogger<HubManager> logger, ITaskManager taskManager)
 {
     this.taskManager = taskManager;
     this.taskManager.AddMessageHandler(this.SendMessage);
     //this.taskManager.OnMessage = this.SendMessage;
     this.logger = logger;
 }
开发者ID:asimshah,项目名称:apollo-web,代码行数:7,代码来源:HubManager.cs


示例8: ScheduledTaskWorker

        /// <summary>
        /// Initializes a new instance of the <see cref="ScheduledTaskWorker" /> class.
        /// </summary>
        /// <param name="scheduledTask">The scheduled task.</param>
        /// <param name="applicationPaths">The application paths.</param>
        /// <param name="taskManager">The task manager.</param>
        /// <param name="jsonSerializer">The json serializer.</param>
        /// <param name="logger">The logger.</param>
        /// <exception cref="System.ArgumentNullException">
        /// scheduledTask
        /// or
        /// applicationPaths
        /// or
        /// taskManager
        /// or
        /// jsonSerializer
        /// or
        /// logger
        /// </exception>
        public ScheduledTaskWorker(IScheduledTask scheduledTask, IApplicationPaths applicationPaths, ITaskManager taskManager, IJsonSerializer jsonSerializer, ILogger logger, IFileSystem fileSystem)
        {
            if (scheduledTask == null)
            {
                throw new ArgumentNullException("scheduledTask");
            }
            if (applicationPaths == null)
            {
                throw new ArgumentNullException("applicationPaths");
            }
            if (taskManager == null)
            {
                throw new ArgumentNullException("taskManager");
            }
            if (jsonSerializer == null)
            {
                throw new ArgumentNullException("jsonSerializer");
            }
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            ScheduledTask = scheduledTask;
            ApplicationPaths = applicationPaths;
            TaskManager = taskManager;
            JsonSerializer = jsonSerializer;
            Logger = logger;
            _fileSystem = fileSystem;

            InitTriggerEvents();
        }
开发者ID:t-andre,项目名称:Emby,代码行数:51,代码来源:ScheduledTaskWorker.cs


示例9: AppraisalCompanyWizardController

		public AppraisalCompanyWizardController(IAppraisalCompanyService appraisalCompanyService, IAppraiserManagement appraiserManagement, ITaskManager taskManager, IGeocodingValidation geocodingValidation)
		{
			_appraisalCompanyService = appraisalCompanyService;
			_appraiserManagement = appraiserManagement;
			_taskManager = taskManager;
			_geocodingValidation = geocodingValidation;
		}
开发者ID:evkap,项目名称:DVS,代码行数:7,代码来源:AppraisalCompanyWizardController.cs


示例10: SetUp

 public void SetUp()
 {
     taskManager = MockRepository.GenerateStub<ITaskManager>();
     fileSystem = MockRepository.GenerateStub<IFileSystem>();
     var exceptionPolicy = MockRepository.GenerateStub<IUnhandledExceptionPolicy>();
     var eventAggregator = MockRepository.GenerateStub<IEventAggregator>();
     controller = new CopyController(taskManager, fileSystem, exceptionPolicy, eventAggregator);
 }
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:8,代码来源:CopyControllerTest.cs


示例11: ProjectReloadPackage

		public ProjectReloadPackage(IProjectController projectController, IWindowManager windowManager, 
			ICommandFactory commandFactory, ITaskManager taskManager)
		{
			this.projectController = projectController;
			this.windowManager = windowManager;
			this.commandFactory = commandFactory;
			this.taskManager = taskManager;
		}
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:8,代码来源:ProjectReloadPackage.cs


示例12: AppraiserManagement

		public AppraiserManagement(IUserRepository userRepository, IAppraiserUserRepository appraiserUserRepository, IReferenceManagement refManager, ITaskManager taskManager, IAscGovLicenseService ascLicenseService)
		{
			_userRepository = userRepository;
			_appraiserUserRepository = appraiserUserRepository;
			_refManager = refManager;
			_taskManager = taskManager;
			_ascLicenseService = ascLicenseService;
		}
开发者ID:evkap,项目名称:DVS,代码行数:8,代码来源:AppraiserManagement.cs


示例13: Notifications

 public Notifications(IInstallationManager installationManager, INotificationsRepository notificationsRepo, IUserManager userManager, ILogger logger, ITaskManager taskManager)
 {
     _installationManager = installationManager;
     _notificationsRepo = notificationsRepo;
     _userManager = userManager;
     _logger = logger;
     _taskManager = taskManager;
 }
开发者ID:Jon-theHTPC,项目名称:MediaBrowser,代码行数:8,代码来源:Notifier.cs


示例14: AvmRequestsService

		public AvmRequestsService(IConfigurationHelper configurationHelper, ICommitProvider commitProvider, IAvmRequestsRepository avmRequestsRepository, ITaskManager taskManager, IOrderManager orderManager, IDocumentService documentService)
		{
			_configurationHelper = configurationHelper;
			_commitProvider = commitProvider;
			_avmRequestsRepository = avmRequestsRepository;
			_taskManager = taskManager;
			_orderManager = orderManager;
			_documentService = documentService;
		}
开发者ID:evkap,项目名称:DVS,代码行数:9,代码来源:AvmRequestsService.cs


示例15: HomeController

		public HomeController(IUsersManagement userManagement,
			IAuthProvider authenticationProvider, IUserAccessHelper userAccessHelper, IAppraiserManagement appraiserManagement, ITaskManager taskManager)
		{
			_userManagement = userManagement;
			_authenticationProvider = authenticationProvider;
			_userAccessHelper = userAccessHelper;
			_appraiserManagement = appraiserManagement;
			_taskManager = taskManager;
		}
开发者ID:evkap,项目名称:DVS,代码行数:9,代码来源:HomeController.cs


示例16: SetUp

		public void SetUp()
		{
			projectController = MockRepository.GenerateStub<IProjectController>();
			windowManager = MockRepository.GenerateStub<IWindowManager>();
			commandFactory = MockRepository.GenerateStub<ICommandFactory>();
			taskManager = MockRepository.GenerateStub<ITaskManager>();		

			package = new ProjectReloadPackage(projectController, windowManager, commandFactory, taskManager);
		}
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:9,代码来源:ProjectReloadPackageTest.cs


示例17: AutomaticRestartEntryPoint

 public AutomaticRestartEntryPoint(IServerApplicationHost appHost, ILogger logger, ITaskManager iTaskManager, ISessionManager sessionManager, IServerConfigurationManager config, ILiveTvManager liveTvManager)
 {
     _appHost = appHost;
     _logger = logger;
     _iTaskManager = iTaskManager;
     _sessionManager = sessionManager;
     _config = config;
     _liveTvManager = liveTvManager;
 }
开发者ID:softworkz,项目名称:Emby,代码行数:9,代码来源:AutomaticRestartEntryPoint.cs


示例18: ProjectExplorerPackage

        public ProjectExplorerPackage(IWindowManager windowManager, IProjectController projectController, IReportController reportController, 
			ITaskManager taskManager, ICommandFactory commandFactory)
        {
        	this.windowManager = windowManager;
        	this.projectController = projectController;
        	this.reportController = reportController;
        	this.taskManager = taskManager;
        	this.commandFactory = commandFactory;
        }
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:9,代码来源:ProjectExplorerPackage.cs


示例19: ServerEntryPoint

        /// <summary>
        /// Initializes a new instance of the <see cref="ServerEntryPoint" /> class.
        /// </summary>
        /// <param name="taskManager">The task manager.</param>
        /// <param name="appPaths">The app paths.</param>
        /// <param name="logManager"></param>
        public ServerEntryPoint(ITaskManager taskManager, ILibraryManager libraryManager, IApplicationPaths appPaths, ILogManager logManager, ISecurityManager securityManager)
        {
            _taskManager = taskManager;
            LibraryManager = libraryManager;
            PluginSecurityManager = securityManager;
            Plugin.Logger = logManager.GetLogger(Plugin.Instance.Name);

            Instance = this;
        }
开发者ID:Inspirony,项目名称:Emby.Plugins,代码行数:15,代码来源:ServerEntryPoint.cs


示例20: WebSocketEvents

 /// <summary>
 /// Initializes a new instance of the <see cref="WebSocketEvents" /> class.
 /// </summary>
 /// <param name="serverManager">The server manager.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="userManager">The user manager.</param>
 public WebSocketEvents(IServerManager serverManager, IServerApplicationHost appHost, ILogger logger, IUserManager userManager, IInstallationManager installationManager, ITaskManager taskManager)
 {
     _serverManager = serverManager;
     _logger = logger;
     _userManager = userManager;
     _installationManager = installationManager;
     _appHost = appHost;
     _taskManager = taskManager;
 }
开发者ID:snap608,项目名称:MediaBrowser,代码行数:15,代码来源:WebSocketEvents.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ITaskRepository类代码示例发布时间:2022-05-24
下一篇:
C# ITaskItem类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap