public void Config() { try { CodeSharp.Core.Configuration.ConfigWithEmbeddedXml(null , "application_config" , Assembly.GetExecutingAssembly() , "Taobao.Workflow.Activities.Test.ConfigFiles") .RenderProperties() .Castle(o => this.Resolve(o.Container)); //设置容器 Taobao.Activities.ActivityUtilities.Container(new Taobao.Workflow.Activities.Application.Container()); Taobao.Activities.Hosting.WorkflowInstance.IsEnableDebug = false; } catch (InvalidOperationException e) { if (!e.Message.Contains("不可重复初始化配置")) Console.WriteLine(e.Message); } this._log = DependencyResolver.Resolve<ILoggerFactory>().Create(this.GetType()); this._userService = DependencyResolver.Resolve<IUserService>(); this._processService = DependencyResolver.Resolve<IProcessService>(); this._processTypeService = DependencyResolver.Resolve<IProcessTypeService>(); this._workItemService = DependencyResolver.Resolve<IWorkItemService>(); this._timeZoneService = DependencyResolver.Resolve<ITimeZoneService>(); this._resumptionService = DependencyResolver.Resolve<ISchedulerService>(); this._scheduler = DependencyResolver.Resolve<IScheduler>(); this._sessionManager = DependencyResolver.Resolve<Castle.Facilities.NHibernateIntegration.ISessionManager>(); this._managementApi = DependencyResolver.Resolve<Taobao.Workflow.Activities.Management.ITFlowEngine>(); this._clientApi = DependencyResolver.Resolve<Taobao.Workflow.Activities.Client.ITFlowEngine>(); }
public TimeZoneController( IAuditService<TimeZone, TimeZoneAudit> auditService, ITimeZoneService timeZoneService) { this.AuditService = auditService; this.TimeZoneService = timeZoneService; }
public ProfileAppService( IAppFolders appFolders, IBinaryObjectManager binaryObjectManager, ITimeZoneService timezoneService) { _appFolders = appFolders; _binaryObjectManager = binaryObjectManager; _timeZoneService = timezoneService; }
/// <summary> /// 构造函数 /// </summary> /// <param name="multiTenancyConfig">多商户配置</param> /// <param name="ldapModuleConfig">ABP Zero Ldap模块配置</param> /// <param name="timeZoneService">时区服务</param> public TenantSettingsAppService( IMultiTenancyConfig multiTenancyConfig, IAbpZeroLdapModuleConfig ldapModuleConfig, ITimeZoneService timeZoneService) { _multiTenancyConfig = multiTenancyConfig; _ldapModuleConfig = ldapModuleConfig; _timeZoneService = timeZoneService; }
public HostSettingsAppService( IEmailSender emailSender, EditionManager editionManager, ITimeZoneService timeZoneService) { _emailSender = emailSender; _editionManager = editionManager; _timeZoneService = timeZoneService; }
public TenantSettingsAppService( IMultiTenancyConfig multiTenancyConfig, IAbpZeroLdapModuleConfig ldapModuleConfig, ITimeZoneService timeZoneService) { _multiTenancyConfig = multiTenancyConfig; _ldapModuleConfig = ldapModuleConfig; _timeZoneService = timeZoneService; }
public OrganizationService( IMasterOrganizationRepository arg0, ITimeService arg1, ITimeZoneService arg2 ) { field0 = arg0; field1 = arg1; field2 = arg2; }
public ProfileAppService( IAppFolder appFolders, ITimeZoneService timezoneService, ICacheManager cacheManager, IDataFileObjectManager dataFileObjectManager) { _appFolders = appFolders; _timeZoneService = timezoneService; _cacheManager = cacheManager; _dataFileObjectManager = dataFileObjectManager; }
public SubscribeTrigger(MicrosoftGraphOptions options, IScheduleConnectorService scheduleConnectorService, IScheduleSourceService scheduleSourceService, IScheduleDestinationService scheduleDestinationService, ISecretsService secretsService, IHttpClientFactory httpClientFactory, ITimeZoneService timeZoneService) { _options = options ?? throw new ArgumentNullException(nameof(options)); _scheduleConnectorService = scheduleConnectorService ?? throw new ArgumentNullException(nameof(scheduleConnectorService)); _scheduleSourceService = scheduleSourceService ?? throw new ArgumentNullException(nameof(scheduleSourceService)); _scheduleDestinationService = scheduleDestinationService ?? throw new ArgumentNullException(nameof(scheduleDestinationService)); _secretsService = secretsService ?? throw new ArgumentNullException(nameof(secretsService)); _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); _timeZoneService = timeZoneService ?? throw new ArgumentNullException(nameof(timeZoneService)); }
public StoryService(int projectId, string apiKey, string fileRoot) { _projectRepo = new AgileZenProjectRepository(projectId, apiKey); _storyRepo = new AgileZenStoryRepository(projectId, apiKey); _actualRepo = new StoryAnnotationRepository(projectId, fileRoot); _commentRepo = new AgileZenCommentRepository(projectId, apiKey); _cache = new StoryCache(); _snapshotRepo = new SnapshotRepository(fileRoot); _timezone = new TimeZoneService(); }
public ProfileAppService( IAppFolders appFolders, IBinaryObjectManager binaryObjectManager, ITimeZoneService timezoneService, IRepository <TenantProfile> tenantprofiles) { _appFolders = appFolders; _binaryObjectManager = binaryObjectManager; _timeZoneService = timezoneService; _TenantProfile = tenantprofiles; }
public BaseDataService(IHttpClientFactory httpClientFactory, IAuthCsroService authCsroService, IMapper mapper, IConfiguration configuration, ITimeZoneService timeZoneService = null) { HttpClientFactory = httpClientFactory; AuthCsroService = authCsroService; Mapper = mapper; Configuration = configuration; TimeZoneService = timeZoneService; }
public HostSettingsAppService( IEmailSender emailSender, EditionManager editionManager, ITimeZoneService timeZoneService, ISettingDefinitionManager settingDefinitionManager) : base(emailSender) { _editionManager = editionManager; _timeZoneService = timeZoneService; _settingDefinitionManager = settingDefinitionManager; }
public HostSettingsAppService( IEmailSender emailSender, EditionManager editionManager, ITimeZoneService timeZoneService, ICachingAppService cachingAppService) { _emailSender = emailSender; _editionManager = editionManager; _timeZoneService = timeZoneService; _cachingAppService = cachingAppService; }
public ProfileAppService( IAppFolders appFolders, IBinaryObjectManager binaryObjectManager, ITimeZoneService timezoneService, PasswordComplexityChecker passwordComplexityChecker) { _appFolders = appFolders; _binaryObjectManager = binaryObjectManager; _timeZoneService = timezoneService; _passwordComplexityChecker = passwordComplexityChecker; }
public TenantSettingsAppService( IMultiTenancyConfig multiTenancyConfig, IAbpZeroLdapModuleConfig ldapModuleConfig, ITimeZoneService timeZoneService, IBinaryObjectManager binaryObjectManager) { _multiTenancyConfig = multiTenancyConfig; _ldapModuleConfig = ldapModuleConfig; _timeZoneService = timeZoneService; _binaryObjectManager = binaryObjectManager; }
public TicketDataService(IHttpClientFactory httpClientFactory, IAuthCsroService authCsroService, IMapper mapper, IConfiguration configuration, ITimeZoneService timeZoneService) : base(httpClientFactory, authCsroService, mapper, configuration, timeZoneService) { ApiPart = "api/ticket/"; Scope = Configuration.GetValue <string>(ConstatCsro.Scopes.Scope_Api); ClientName = ConstatCsro.EndPoints.ApiEndpoint; ConvertToLocalTime = true; base.Init(); }
public HostSettingsAppService( EditionManager editionManager, IEmailSender emailSender, ITimeZoneService timeZoneService, ISettingDefinitionManager settingDefinitionManager, IHostingEnvironment env) : base(emailSender) { _editionManager = editionManager; _timeZoneService = timeZoneService; _settingDefinitionManager = settingDefinitionManager; _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName, env.IsDevelopment()); }
public TenantSettingsAppService( IAbpZeroLdapModuleConfig ldapModuleConfig, IMultiTenancyConfig multiTenancyConfig, ITimeZoneService timeZoneService, IEmailSender emailSender, IDataFileObjectManager dataFileObjectManager) : base(emailSender) { _multiTenancyConfig = multiTenancyConfig; _ldapModuleConfig = ldapModuleConfig; _timeZoneService = timeZoneService; _dataFileObjectManager = dataFileObjectManager; }
public TenantSettingsAppService( IMultiTenancyConfig multiTenancyConfig, ITimeZoneService timeZoneService, IEmailSender emailSender, IBinaryObjectManager binaryObjectManager, IPictureManager pictureManager) : base(emailSender) { _multiTenancyConfig = multiTenancyConfig; _timeZoneService = timeZoneService; _binaryObjectManager = binaryObjectManager; _pictureManager = pictureManager; }
public HostSettingsAppService( IEmailSender emailSender, EditionManager editionManager, ITimeZoneService timeZoneService, ISettingDefinitionManager settingDefinitionManager, IAppConfigurationAccessor configurationAccessor) : base(emailSender, configurationAccessor) { ExternalLoginOptionsCacheManager = NullExternalLoginOptionsCacheManager.Instance; _editionManager = editionManager; _timeZoneService = timeZoneService; _settingDefinitionManager = settingDefinitionManager; }
public TgBotProcessor(IDbService dbService, IPlayBillDataResolver playBillResolver, IFilterService filterService, ITimeZoneService timeZoneService) { _cancellationTokenSource = new CancellationTokenSource(); _dbService = dbService; _commands.Add(new StartCommand(dbService)); _commands.Add(new MonthCommand()); _commands.Add(new DaysOfWeekCommand()); _commands.Add(new PerformanceTypesCommand()); _commands.Add(new GetPerformancesCommand(playBillResolver, filterService, timeZoneService)); }
public AdoProjectHistoryDataService( IHttpClientFactory httpClientFactory, IAuthCsroService authCsroService, IMapper mapper, IConfiguration configuration, ITimeZoneService timeZoneService) : base(httpClientFactory, authCsroService, mapper, configuration, timeZoneService) { ApiPart = "api/adoproject/{adoProjectId}/adoprojectHistory"; Scope = Configuration.GetValue <string>(ConstatCsro.Scopes.Scope_Ado_Api); ClientName = ConstatCsro.EndPoints.ApiEndpointAdo; ConvertToLocalTime = true; base.Init(); }
public GoogleCalendarSyncProvider( IContextService <IPsaContext> arg0, IUserRepository arg1, IUserService arg2, ICalendarSyncService arg3, IActivityUserMemberService arg4, IActivityContactMemberService arg5, IContactRepository arg6, IActivityTypeRepository arg7, ITimeZoneService arg8, IGuidService arg9, IActivityService arg10 ) : base(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) { }
public ProfileAppService( IAppFolders appFolders, IBinaryObjectManager binaryObjectManager, ITimeZoneService timezoneService, IFriendshipManager friendshipManager, ISmsSender smsSender, ICacheManager cacheManager) { _appFolders = appFolders; _binaryObjectManager = binaryObjectManager; _timeZoneService = timezoneService; _friendshipManager = friendshipManager; _smsSender = smsSender; _cacheManager = cacheManager; }
public TenantSettingsAppService( #if FEATURE_LDAP IAbpZeroLdapModuleConfig ldapModuleConfig, #endif IMultiTenancyConfig multiTenancyConfig, ITimeZoneService timeZoneService, IEmailSender emailSender, IBinaryObjectManager binaryObjectManager) : base(emailSender) { _multiTenancyConfig = multiTenancyConfig; #if FEATURE_LDAP _ldapModuleConfig = ldapModuleConfig; #endif _timeZoneService = timeZoneService; _binaryObjectManager = binaryObjectManager; }
public TenantSettingsAppService( IAbpZeroLdapModuleConfig ldapModuleConfig, IMultiTenancyConfig multiTenancyConfig, ITimeZoneService timeZoneService, IEmailSender emailSender, IBinaryObjectManager binaryObjectManager, IAppConfigurationAccessor configurationAccessor ) : base(emailSender, configurationAccessor) { ExternalLoginOptionsCacheManager = NullExternalLoginOptionsCacheManager.Instance; _multiTenancyConfig = multiTenancyConfig; _ldapModuleConfig = ldapModuleConfig; _timeZoneService = timeZoneService; _binaryObjectManager = binaryObjectManager; }
public SubscribeTrigger(TeamOrchestratorOptions teamOrchestratorOptions, MicrosoftGraphOptions options, FeatureOptions featureOptions, IScheduleConnectorService scheduleConnectorService, IWfmDataService wfmDataService, ITeamsService teamsService, ISecretsService secretsService, IHttpClientFactory httpClientFactory, ISystemTimeService systemTimeService, ITimeZoneService timeZoneService) { _teamOrchestratorOptions = teamOrchestratorOptions ?? throw new ArgumentNullException(nameof(teamOrchestratorOptions)); _options = options ?? throw new ArgumentNullException(nameof(options)); _featureOptions = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions)); _scheduleConnectorService = scheduleConnectorService ?? throw new ArgumentNullException(nameof(scheduleConnectorService)); _wfmDataService = wfmDataService ?? throw new ArgumentNullException(nameof(wfmDataService)); _teamsService = teamsService ?? throw new ArgumentNullException(nameof(teamsService)); _secretsService = secretsService ?? throw new ArgumentNullException(nameof(secretsService)); _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); _systemTimeService = systemTimeService ?? throw new ArgumentNullException(nameof(systemTimeService)); _timeZoneService = timeZoneService ?? throw new ArgumentNullException(nameof(timeZoneService)); }
private void FillTimeZones() { ITimeZoneService service = null; try { // Create the service. service = AppService.Create <ITimeZoneService>(); service.AppManager = this.AppManager; List <Tks.Entities.TimeZone> timeZones = service.RetrieveAll(); // Filter valid time zones. IEnumerable <Tks.Entities.TimeZone> validList = from item in timeZones where item.IsActive = true select item; // Bind. this.ddlMiscActivityTimeZoneList.Items.Clear(); this.ddlMiscActivityTimeZoneList.DataTextField = "Name"; this.ddlMiscActivityTimeZoneList.DataValueField = "Id"; this.ddlMiscActivityTimeZoneList.DataSource = validList; this.ddlMiscActivityTimeZoneList.DataBind(); // Add default item. this.ddlMiscActivityTimeZoneList.Items.Insert(0, new ListItem("-- Select --", "0")); // Select first item as default. if (this.ddlMiscActivityTimeZoneList.Items.Count > 0) { this.ddlMiscActivityTimeZoneList.SelectedIndex = 0; } if (this.ddlMiscActivityTimeZoneList.Items.Count == 2) { this.ddlMiscActivityTimeZoneList.SelectedIndex = 1; } } catch { throw; } finally { if (service != null) { service.Dispose(); } } }
public UserDataService( IHttpClientFactory httpClientFactory, IAuthCsroService authCsroService, IMapper mapper, IGraphClientService graphClientService, ITimeZoneService timeZoneService, IConfiguration configuration) : base(httpClientFactory, authCsroService, mapper, configuration, timeZoneService) { ApiPart = "api/user/"; Scope = Configuration.GetValue <string>(ConstatCsro.Scopes.Scope_Auth_Api); ClientName = ConstatCsro.EndPoints.ApiEndpointAuth; ConvertToLocalTime = true; base.Init(); _graphClientService = graphClientService; }
public string GetTimeZonesByName(string name) { ITimeZoneService service = null; try { // Create search criteria. TimeZoneSearchCriteria criteria = new TimeZoneSearchCriteria(); criteria.Name = name; // Create the service. service = AppService.Create <ITimeZoneService>(); // TODO: Need to change. UserAuthentication authentication = new UserAuthentication(); service.AppManager = authentication.AppManager; // Call service method. List <Tks.Entities.TimeZone> timeZones = service.Search(criteria); var resultList = from item in timeZones where item.IsActive = true select new { Id = item.Id, Name = item.Name, ShortName = item.ShortName }; // Serialize. JavaScriptSerializer serializer = new JavaScriptSerializer(); string timeZonesJson = serializer.Serialize(resultList); // Return the value. return(timeZonesJson); } catch { throw; } finally { // Dispose. if (service != null) { service.Dispose(); } } }
public ProfileAppService( IAppFolders appFolders, IBinaryObjectManager binaryObjectManager, ITimeZoneService timezoneService, IPictureManager pictureManager, IVerificationCodeManager verificationCodeManager, IUserAccountManager userAccountManager, IAccountCache accountCache, UserManager userManager) { _appFolders = appFolders; _binaryObjectManager = binaryObjectManager; _timeZoneService = timezoneService; _pictureManager = pictureManager; _verificationCodeManager = verificationCodeManager; _userAccountManager = userAccountManager; _accountCache = accountCache; _userManager = userManager; }
public ProfileAppService( IAppFolders appFolders, IBinaryObjectManager binaryObjectManager, ITimeZoneService timezoneService, IFriendshipManager friendshipManager, GoogleTwoFactorAuthenticateService googleTwoFactorAuthenticateService, ISmsSender smsSender, ICacheManager cacheManager, ITempFileCacheManager tempFileCacheManager, IBackgroundJobManager backgroundJobManager) { _binaryObjectManager = binaryObjectManager; _timeZoneService = timezoneService; _friendshipManager = friendshipManager; _googleTwoFactorAuthenticateService = googleTwoFactorAuthenticateService; _smsSender = smsSender; _cacheManager = cacheManager; _tempFileCacheManager = tempFileCacheManager; _backgroundJobManager = backgroundJobManager; }
private void FillTimeZoneList() { ITimeZoneService service = null; try { // Create the service. service = AppService.Create <ITimeZoneService>(); service.AppManager = this.AppManager; // Call method. mTimeZones = service.RetrieveAll(); // Filter active time zones. IEnumerable <Tks.Entities.TimeZone> validTimeZones = from item in mTimeZones where item.IsActive = true select item; // Fill in control. this.ddlTimeZoneList.Items.Clear(); this.ddlTimeZoneList.DataTextField = "Name"; this.ddlTimeZoneList.DataValueField = "Id"; this.ddlTimeZoneList.DataSource = validTimeZones; this.ddlTimeZoneList.DataBind(); // Add default item. this.ddlTimeZoneList.Items.Insert(0, new ListItem("-- Select --", "0")); // Select first item as default. //if (this.ddlTimeZoneList.Items.Count > 0) this.ddlTimeZoneList.Items.FindByValue("0").Selected=true; } catch { throw; } finally { if (service != null) { service.Dispose(); } } }
public TFlowEngine(ILoggerFactory factory , IUserService userService , IAgentService agentService , IWorkItemService workItemService , IProcessService processService , IProcessTypeService processTypeService , ITimeZoneService timeZoneService , IWorkflowParser workflowParser , IMethodInvoker invoker , ISchedulerService schedulerService) { this._log = factory.Create(typeof(TFlowEngine)); this._userService = userService; this._agentService = agentService; this._workItemService = workItemService; this._processService = processService; this._processTypeService = processTypeService; this._timeZoneService = timeZoneService; this._workflowParser = workflowParser; this._invoker = invoker; this._schedulerService = schedulerService; }
public TFlowEngine(ILoggerFactory factory , IUserService userService , IAgentService agentService , IWorkItemService workItemService , IProcessService processService , IProcessTypeService processTypeService , ITimeZoneService timeZoneService , IWorkflowParser workflowParser , IMethodInvoker invoker ,ISchedulerService schedulerService) { this._log = factory.Create(typeof(TFlowEngine)); this._userService = userService; this._agentService = agentService; this._workItemService = workItemService; this._processService = processService; this._processTypeService = processTypeService; this._timeZoneService = timeZoneService; this._workflowParser = workflowParser; this._invoker = invoker; this._schedulerService = schedulerService; }
public TimingAppService(ITimeZoneService timeZoneService) { _timeZoneService = timeZoneService; }