public BuildPurgeRuleManager(IBuildPurgeRuleRepository buildPurgeRuleRepository, IProjectRepository projectRepository, ISystemSettings systemSettings, IDIFactory diFactory) { _buildPurgeRuleRepository = DIHelper.VerifyParameter(buildPurgeRuleRepository); _projectRepository = DIHelper.VerifyParameter(projectRepository); _systemSettings = DIHelper.VerifyParameter(systemSettings); _diFactory = DIHelper.VerifyParameter(diFactory); }
public LabelCollectionRetriever(ILabelCollectionMapper labelCollectionMapper, IContentAreasServiceAgent contentAreasServiceAgent, ISystemSettings systemSettings, ILogger logger) { _labelCollectionMapper = labelCollectionMapper; _contentAreasServiceAgent = contentAreasServiceAgent; _systemSettings = systemSettings; _logger = logger; }
public SystemSessionService( ISystemClient systemClient, ISystemSettings systemSettings) { _systemClient = systemClient; _systemId = systemSettings.SystemId; }
//public GameServer(IListener listener, ISystemSettings sysSettings, IRoomFabric RoomFabric = null, IServerEngineFabric EngineFabric = null) public GameServer(IIpEPprovider ipEpProvider, ISystemSettings sysSettings, IRoomFabric RoomFabric = null, IServerEngineFabric EngineFabric = null) { _sys_settings = sysSettings; _next_room_port = sysSettings.RoomPortMin; ServerListner = new Listener(ipEpProvider, sysSettings.HostListeningPort); RegisterListener(ServerListner); if (RoomFabric != null) { _roomFabric = RoomFabric; } else { _roomFabric = new RoomFabric(); } if (EngineFabric != null) { _engineFabric = EngineFabric; } else { _engineFabric = new ServerEngineFabric(); } }
public NotificationService( ISystemSettings systemSettings, ILogger <NotificationService> logger) { _systemSettings = systemSettings; _logger = logger; }
public JobScheduler(IScheduler quartzScheduler, Logger logger, ISystemSettings systemSettings) { this._quartzScheduler = DIHelper.VerifyParameter(quartzScheduler); this._logger = DIHelper.VerifyParameter(logger); this._systemSettings = DIHelper.VerifyParameter(systemSettings); }
public SignaturePage(Summary summary) { InitializeComponent(); this.summary = summary; //padView.CaptionTextColor = padView.BackgroundColor; ToolbarItem summaryItem = new ToolbarItem() { Text = AppResources.itemSummary }; summaryItem.Clicked += SummaryItem_Clicked; ToolbarItems.Add(summaryItem); IsReturningFromSummary = false; // TO TEST on TC55 and iOS device when using scrollview signature control isnt working properly // ISystemSettings systemSettings = DependencyService.Get <ISystemSettings>(); if (this.Content.Height > systemSettings.DeviceScreenHeight || Device.RuntimePlatform == Device.iOS) { this.Content = slMain; //skip scrollview } signaturePad.PromptText = "Signature here"; signaturePad.PromptTextColor = Color.Black; signaturePad.ClearText = "Clear"; signaturePad.ClearTextColor = Color.Red; signaturePad.SignatureLineColor = Color.Blue; signaturePad.SignatureLineWidth = 3.0; }
protected override void OnStartup(object sender, System.Windows.StartupEventArgs e) { base.OnStartup(sender, e); Application.DispatcherUnhandledException += (s, ex) => LogError(ex.Exception); Environment.CurrentDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); Accent accent = ThemeManager.DefaultAccents.First(a => a.Name == UserSettings.Appearance.AccentColor); ThemeManager.ChangeTheme(Application.MainWindow, accent, UserSettings.Appearance.Theme); IShell shell = Container.GetExportedValue<IShell>(); UserSettings.Shell = shell; ISystemSettings settings = Container.GetExportedValue<ISystemSettings>(); int storedActiveIndex = settings.ActiveTabIndex; if (UserSettings.Application.RememberOpenFiles) settings.OpenFiles.Apply(shell.FileNames.Add); if (e.Args.Length > 0) { var newFiles = e.Args.Except(shell.FileNames).ToList(); newFiles.Apply(shell.FileNames.Add); shell.ActiveTabIndex = shell.FileNames.IndexOf(e.Args.Last()); } else { shell.ActiveTabIndex = storedActiveIndex; } }
public BuildPurger(ISystemSettings systemSettings, IBuildManager buildManager, Logger logger, IDIFactory diFactory, IBuildPurgeRuleManager buildPurgeRuleManager) { _systemSettings = DIHelper.VerifyParameter(systemSettings); _buildManager = DIHelper.VerifyParameter(buildManager); _logger = DIHelper.VerifyParameter(logger); _diFactory = DIHelper.VerifyParameter(diFactory); _buildPurgeRuleManager = DIHelper.VerifyParameter(buildPurgeRuleManager); }
public virtual void SetUp() { LabelCollectionMapper = Substitute.For <ILabelCollectionMapper>(); ContentAreasServiceAgent = Substitute.For <IContentAreasServiceAgent>(); SystemSettings = Substitute.For <ISystemSettings>(); Logger = Substitute.For <ILogger>(); LabelCollectionRetriever = new LabelCollectionRetriever(LabelCollectionMapper, ContentAreasServiceAgent, SystemSettings, Logger); }
public EmailSenderJob(Logger logger, IEmailQueue emailQueue, IRazorEmailEngine razorEmailEngine, ISystemSettings systemSettings, IConnectionSettingsManager connectionSettingsManager) { _logger = DIHelper.VerifyParameter(logger); _emailQueue = DIHelper.VerifyParameter(emailQueue); _razorEmailEngine = DIHelper.VerifyParameter(razorEmailEngine); _systemSettings = DIHelper.VerifyParameter(systemSettings); _connectionSettingsManager = DIHelper.VerifyParameter(connectionSettingsManager); }
public ApplicationSettings() { // Set defaults // loginVars = new LoginVars(); ISystemSettings system = DependencyService.Get <ISystemSettings> (); deviceID = system.DeviceId; }
public DeployBatchRunner(NLog.Logger logger, ISystemSettings systemSettings, IDeployStateManager deployStateManager, IDeployRunner deployRunner, IDeployQueueManager deployQueueManager, IDeployRequestManager deployRequestManager, ICleanupManager cleanupManager) { _logger = DIHelper.VerifyParameter(logger); _systemSettings = DIHelper.VerifyParameter(systemSettings); _deployStateManager = DIHelper.VerifyParameter(deployStateManager); _deployRunner = DIHelper.VerifyParameter(deployRunner); _deployQueueManager = DIHelper.VerifyParameter(deployQueueManager); _deployRequestManager = DIHelper.VerifyParameter(deployRequestManager); _cleanupManager = DIHelper.VerifyParameter(_cleanupManager); }
public DeployBatchParallelRunner(NLog.Logger logger, ISystemSettings systemSettings, IDeployStateManager deployStateManager, IDeployQueueManager deployQueueManager, IDeployRequestManager deployRequestManager, IDeploymentPlanBuilder deploymentPlanBuilder, IDIFactory diFactory, ICleanupManager cleanupManager) { _logger = DIHelper.VerifyParameter(logger); _systemSettings = DIHelper.VerifyParameter(systemSettings); _deployStateManager = DIHelper.VerifyParameter(deployStateManager); _deployQueueManager = DIHelper.VerifyParameter(deployQueueManager); _deployRequestManager = DIHelper.VerifyParameter(deployRequestManager); _deploymentPlanBuilder = DIHelper.VerifyParameter(deploymentPlanBuilder); _diFactory = DIHelper.VerifyParameter(diFactory); _cleanupManager = DIHelper.VerifyParameter(cleanupManager); }
public CustomVisionPredictionController( IWebHostEnvironment webHostEnvironment, ICustomVisionPredictionService predictionService, IVideoFrameExtractionService videoFrameExtractionService, ISystemSettings systemSettings) { _webHostEnvironment = webHostEnvironment; _predictionService = predictionService; _videoFrameExtractionService = videoFrameExtractionService; _systemSettings = systemSettings; }
public PreviewEmailController(IDeployRepository deployRepository, IDeployStateRepository deployStateRepository, IBuildRepository buildRepository, IProjectRepository projectRepository, ISystemSettings systemSettings, IUrlGenerator urlGenerator, IRazorTemplateRepository razorTemplateRepository, INotificationResourceViews notificationResourceViews) { _deployRepository = DIHelper.VerifyParameter(deployRepository); _deployStateRepository = DIHelper.VerifyParameter(deployStateRepository); _buildRepository = DIHelper.VerifyParameter(buildRepository); _projectRepository = DIHelper.VerifyParameter(projectRepository); _systemSettings = DIHelper.VerifyParameter(systemSettings); _urlGenerator = DIHelper.VerifyParameter(urlGenerator); _razorTemplateRepository = DIHelper.VerifyParameter(razorTemplateRepository); _notificationResourceViews = DIHelper.VerifyParameter(notificationResourceViews); }
public ProjectNotifier(IMembershipRepository membershipRepository, IEmailQueue emailQueue, IRazorTemplateRepository razorTemplateRepository, IUrlGenerator urlGenerator, ISystemSettings systemSettings, INotificationResourceViews notificationResourceViews, IDeployRepository deployRepository, IDeployStateRepository deployStateRepository) { _membershipRepository = DIHelper.VerifyParameter(membershipRepository); _emailQueue = DIHelper.VerifyParameter(emailQueue); _razorTemplateRepository = DIHelper.VerifyParameter(razorTemplateRepository); _urlGenerator = DIHelper.VerifyParameter(urlGenerator); _systemSettings = DIHelper.VerifyParameter(systemSettings); _notificationResourceViews = DIHelper.VerifyParameter(notificationResourceViews); _deployRepository = DIHelper.VerifyParameter(deployRepository); _deployStateRepository = DIHelper.VerifyParameter(deployStateRepository); }
public OfflineDeploymentManager(IDeployRepository deployRepository, IDeployStateRepository deployStateRepository, IOfflineDeploymentRepository offlineDeploymentRepository, IProjectRepository projectRepository, ISystemSettings systemSettings, IFileRepository fileRepository, IZipper zipper, IManifestBuilder manifestBuilder) { _deployRepository = DIHelper.VerifyParameter(deployRepository); _deployStateRepository = DIHelper.VerifyParameter(deployStateRepository); _offlineDeploymentRepository = DIHelper.VerifyParameter(offlineDeploymentRepository); _projectRepository = DIHelper.VerifyParameter(projectRepository); _systemSettings = DIHelper.VerifyParameter(systemSettings); _fileRepository = DIHelper.VerifyParameter(fileRepository); _zipper = DIHelper.VerifyParameter(zipper); _manifestBuilder = DIHelper.VerifyParameter(manifestBuilder); }
protected void Page_Load(object sender, EventArgs e) { if (IsMultiLanguageEnabled) { systemSettings = CurrentRequest.Resolver.Resolve <ISystemSettings>(); dbAccess = CurrentRequest.Resolver.Resolve <IDBAccess>(); //tbRdesc.Attributes.Add("onfocus","javascript:ShowMLI('"+ tbRdesc.ClientID + "', event, false);"); Int32.TryParse(systemSettings.GetGeneralSystemOption(125).Result.OptionValue, out CustomerFacingLangID); if (!this.Page.IsPostBack) { defaultLanguageId = ((AuthenticatedUI)this.Page).LanguageID; LoadTranslations(MLIdentifierValue); } if (repMLIInputs != null) { foreach (RepeaterItem rep in repMLIInputs.Items) { if (rep != null) { TextBox tbTranslation = ((TextBox)rep.FindControl("tbTranslation")); int langId = Convert.ToInt32(((HiddenField)rep.FindControl("hfLangId")).Value); if (tbTranslation != null && CustomerFacingLangID == langId) { if ((tbTranslation.ID.IndexOf("_default")) == -1) { tbTranslation.ID += "_default"; } } } } } //LoadTranslations(358); tbMLI.Attributes.Add("onfocus", "javascript:ShowMLI('" + tbMLI.ClientID + "','" + divML.ClientID + "','" + divMLWrap.ClientID + "', event);"); btnMLClose.Attributes.Add("onclick", "return HideMLI('" + tbMLI.ClientID + "','" + divML.ClientID + "', event);"); imgMLI.Attributes.Add("onmouseout", "return HideMLI('" + tbMLI.ClientID + "','" + divML.ClientID + "', event);"); imgMLI.Attributes.Add("onmouseover", "javascript:ShowMLI('" + tbMLI.ClientID + "','" + divML.ClientID + "','" + divMLWrap.ClientID + "', event);"); imgMLI.Attributes.Add("onclick", "javascript:ShowMLI('" + tbMLI.ClientID + "','" + divML.ClientID + "','" + divMLWrap.ClientID + "', event);"); tbMLI.Attributes.Add("onBlur", "javascript:return findHTMLTags('" + tbMLI.ClientID + "','" + Copient.PhraseLib.Lookup("categories.invalidname", defaultLanguageId) + "',event);"); TextBox tb = (TextBox)repMLIInputs.Controls[0].FindControl("tbTranslation_default"); if (tb == null) { tb = (TextBox)repMLIInputs.Controls[0].FindControl("tbTranslation"); } tb.Attributes.Add("onBlur", "javascript:return findHTMLTags('" + tb.ClientID + "','" + Copient.PhraseLib.Lookup("categories.invalidname", defaultLanguageId) + "',event);"); } else { imgMLI.Visible = false; //tbMLI.Text = MLDefaultLanguageStandardValue; } }
public CustomVisionAuthoringController( IWebHostEnvironment webHostEnvironment, ICustomVisionProjectService projectService, ICustomVisionAuthoringService authoringService, IVideoFrameExtractionService videoFrameExtractionService, ISystemSettings systemSettings) { _webHostEnvironment = webHostEnvironment; _projectService = projectService; _authoringService = authoringService; _videoFrameExtractionService = videoFrameExtractionService; _systemSettings = systemSettings; }
public EmailExceptionHandler(ISystemSettings systemSettings) { this.systemSettings = systemSettings; }
public WebUserProfile() { _membershipUserRepository = IoC.Resolve <IMembershipUserRepository>(); _membershipRoleRepository = IoC.Resolve <IMembershipRoleRepository>(); _systemSettings = IoC.Resolve <ISystemSettings>(); }
public SetupController(ISystemSetterUpper systemSetterUpper, ISystemSettings systemSettings) { _systemSetterUpper = DIHelper.VerifyParameter(systemSetterUpper); _systemSettings = DIHelper.VerifyParameter(systemSettings); }
public PatternDbContext(ISystemSettings settings) : base(settings.GetConnectionString("PatternConnectionStringName")) { }
public ReCaptchaTagHelper(ISystemSettings systemSettings) { _systemSettings = systemSettings; }
public AccountController(ISystemSettings systemSettings) { _systemSetings = DIHelper.VerifyParameter(systemSettings); }
public FileResourceData(ISystemSettings systemSettings, SystemDbContext systemDbContext) : base(systemDbContext) { _systemSettings = systemSettings; }
async protected override void OnAppearing() { base.OnAppearing(); int maxWidth = Convert.ToInt32(this.Bounds.Width - 20.0); ISystemSettings system = DependencyService.Get <ISystemSettings> (); string applicationName = system.ApplicationName; string versionName = system.AppVersionName; lbRevsion.Text = $"{applicationName} Rev:{versionName}"; await lbRevsion.RotateTo(360, 500, Easing.CubicInOut); MobRegService service = new MobRegService(ProgramVars.URL); ModuleResult result = await service.GetRevisionAsync(); await imgLogo.ScaleTo(0.5, 50, Easing.SpringIn); imgLogo.IsVisible = true; await imgLogo.ScaleTo(1, 500, Easing.SpringOut); await imgLogo.ScaleTo(0.5, 250, Easing.SpringIn); await imgLogo.ScaleTo(1, 500, Easing.SpringOut); if (result.statusCode == 0) { StringBuilder sb = new StringBuilder(); //sb.Append ("<html><body>"); sb.Append("<html>"); if (Device.RuntimePlatform == Device.iOS) { sb.Append("<head>"); sb.Append("<style>"); if (Device.Idiom == TargetIdiom.Tablet) { sb.Append("table {font-size:30px;border-spacing: 10px;}"); } else { sb.Append("table {font-size:50px; border-spacing: 10px;}"); } sb.Append("</style>"); sb.Append("</head>"); } sb.Append("<body>"); sb.Append(string.Format("<table align=\"center\" style=\"width:{0}px;\">", maxWidth * 2 / 3)); sb.AppendFormat("<tr><td><b>{0}</b></td><td><b>{1}</b></td></tr>", AppResources.Service, AppResources.Revision); foreach (ModuleInfo mi in result.infoList) { sb.AppendFormat("<tr><td>{0}</td><td>{1}</td></tr>", mi.name, mi.version); } sb.Append("</body></html>"); webView.Source = new HtmlWebViewSource() { Html = sb.ToString() }; } }
public SystemRoleManager(ISystemRoleRepository systemRoleRepository, IMembershipRepository membershipRepository, ISystemSettings systemSettings) { _systemRoleRepository = DIHelper.VerifyParameter(systemRoleRepository); _membershipRepository = DIHelper.VerifyParameter(membershipRepository); _systemSettings = DIHelper.VerifyParameter(systemSettings); }
public HomeController(IAccountSettingsManager accountSettingsManager, ISystemSettings systemSettings) { _accountSettingsManager = DIHelper.VerifyParameter(accountSettingsManager); _systemSettings = DIHelper.VerifyParameter(systemSettings); }
public FileResourceService( ISystemSettings systemSettings) { _systemSettings = systemSettings; }
public PurgeSystemLogJob(ISystemLogRepository systemLogRepository, ISystemSettings systemSettings, Logger logger) { _systemLogRepository = DIHelper.VerifyParameter(systemLogRepository); _systemSettings = DIHelper.VerifyParameter(systemSettings); _logger = DIHelper.VerifyParameter(logger); }
public SystemSetterUpper(IUserManager userManager, ISystemRoleManager systemRoleManager, ISystemSettings systemSettings) { _userManager = DIHelper.VerifyParameter(userManager); _systemRoleManager = DIHelper.VerifyParameter(systemRoleManager); _systemSettings = DIHelper.VerifyParameter(systemSettings); }
public BaseRouteHandler() { SystemSettings = IoC.Resolve<ISystemSettings>(); }
public BaseRouteHandler() { SystemSettings = IoC.Resolve <ISystemSettings>(); }