本文整理汇总了C#中ITaskManager类的典型用法代码示例。如果您正苦于以下问题:C# ITaskManager类的具体用法?C# ITaskManager怎么用?C# ITaskManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITaskManager类属于命名空间,在下文中一共展示了ITaskManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 } } });
}
示例2: TeacherTaskController
public TeacherTaskController(ITaskManager taskManager, ISubjectManager subjectManager, ITypeOfTaskManager typeOfTaskManager, IGroupManager groupManager)
{
this._taskManager = taskManager;
this._subjectManager = subjectManager;
this._typeOfTaskManager = typeOfTaskManager;
this._groupManager = groupManager;
}
示例3: AutomaticRestartEntryPoint
public AutomaticRestartEntryPoint(IServerApplicationHost appHost, ILogger logger, ITaskManager iTaskManager, ISessionManager sessionManager)
{
_appHost = appHost;
_logger = logger;
_iTaskManager = iTaskManager;
_sessionManager = sessionManager;
}
示例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);
}
示例5: AppraisalCompanyAddController
public AppraisalCompanyAddController(IAppraisalCompanySignUpService appraisalCompanySignUpService,
ITaskManager taskManager, IGeocodingValidation geocodingValidation)
{
_appraisalCompanySignUpService = ValidationUtil.CheckOnNullAndThrowIfNull(appraisalCompanySignUpService);
_taskManager = ValidationUtil.CheckOnNullAndThrowIfNull(taskManager);
_geocodingValidation = ValidationUtil.CheckOnNullAndThrowIfNull(geocodingValidation);
}
示例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();
}
});
}
示例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;
}
示例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();
}
示例9: AppraisalCompanyWizardController
public AppraisalCompanyWizardController(IAppraisalCompanyService appraisalCompanyService, IAppraiserManagement appraiserManagement, ITaskManager taskManager, IGeocodingValidation geocodingValidation)
{
_appraisalCompanyService = appraisalCompanyService;
_appraiserManagement = appraiserManagement;
_taskManager = taskManager;
_geocodingValidation = geocodingValidation;
}
示例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);
}
示例11: ProjectReloadPackage
public ProjectReloadPackage(IProjectController projectController, IWindowManager windowManager,
ICommandFactory commandFactory, ITaskManager taskManager)
{
this.projectController = projectController;
this.windowManager = windowManager;
this.commandFactory = commandFactory;
this.taskManager = taskManager;
}
示例12: AppraiserManagement
public AppraiserManagement(IUserRepository userRepository, IAppraiserUserRepository appraiserUserRepository, IReferenceManagement refManager, ITaskManager taskManager, IAscGovLicenseService ascLicenseService)
{
_userRepository = userRepository;
_appraiserUserRepository = appraiserUserRepository;
_refManager = refManager;
_taskManager = taskManager;
_ascLicenseService = ascLicenseService;
}
示例13: Notifications
public Notifications(IInstallationManager installationManager, INotificationsRepository notificationsRepo, IUserManager userManager, ILogger logger, ITaskManager taskManager)
{
_installationManager = installationManager;
_notificationsRepo = notificationsRepo;
_userManager = userManager;
_logger = logger;
_taskManager = taskManager;
}
示例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;
}
示例15: HomeController
public HomeController(IUsersManagement userManagement,
IAuthProvider authenticationProvider, IUserAccessHelper userAccessHelper, IAppraiserManagement appraiserManagement, ITaskManager taskManager)
{
_userManagement = userManagement;
_authenticationProvider = authenticationProvider;
_userAccessHelper = userAccessHelper;
_appraiserManagement = appraiserManagement;
_taskManager = taskManager;
}