public LiteEngine( IUtil util, IProfileManager profileManager, IScriptService scriptService, IProfileWriter profileWriter, IConnectionManagerFactory connectionManagerFactory, ICloudProfileLoaderService cloudProfileLoaderService, ILITETask liteTaskManager, IProfileStorage profileStorage, IConnectionFinder connectionFinder, ILitePurgeService litePurgeService, IConfigurationLoader configurationLoader, IProfileConnectionsInitializer connectionsInitializer, ILogger <LiteEngine> logger) { Throw.IfNull(util); _profileManager = profileManager; _profileWriter = profileWriter; _connectionManagerFactory = connectionManagerFactory; _cloudProfileLoaderService = cloudProfileLoaderService; _scriptService = scriptService; _taskManager = liteTaskManager; _profileStorage = profileStorage; _connectionFinder = connectionFinder; _litePurgeService = litePurgeService; _configurationLoader = configurationLoader; _connectionsInitializer = connectionsInitializer; _logger = logger; }
public void SetConfig(IDMEEditor pbl, IDMLogger plogger, IUtil putil, string[] args, PassedArgs e, IErrorsInfo per) { Passedarg = e; Logger = plogger; ErrorObject = per; DMEEditor = pbl; Visutil = (IVisUtil)e.Objects.Where(c => c.Name == "VISUTIL").FirstOrDefault().obj; ob = (object)e.Objects.Where(c => c.Name == e.CurrentEntity).FirstOrDefault().obj; EntitybindingSource.DataSource = ob; EntitybindingSource.AllowNew = false; SaveEntitybutton.Click += SaveEntitybutton_Click; ds = DMEEditor.GetDataSource(e.DatasourceName); // ds.Dataconnection.OpenConnection(); DMEEditor.OpenDataSource(e.DatasourceName); if (ds != null && ds.ConnectionStatus == ConnectionState.Open) { EntityStructure = ds.GetEntityStructure(e.CurrentEntity, true); if (EntityStructure != null) { if (EntityStructure.Fields != null) { if (EntityStructure.Fields.Count > 0) { EntityNamelabel.Text = EntityStructure.EntityName; subtitlelabel.Text = $"From Data Source {EntityStructure.DataSourceID}"; EntityName = EntityStructure.EntityName; Visutil.controlEditor.GenerateEntityonControl(EntityName, ref panel1, GetObjectType(), ref EntitybindingSource, 150, EntityStructure.DataSourceID); } } } } }
public void SetConfig(IDMEEditor pDMEEditor, IDMLogger plogger, IUtil putil, string[] args, PassedArgs obj, IErrorsInfo per) { Passedarg = obj; // SourceConnection = pdataSource; Logger = plogger; // Visutil = new VisUtil(Logger,putil,per); util = putil; MyDataView = (DMDataView)Passedarg.DMView; DMEEditor = pDMEEditor; ErrorObject = per; Visutil = (IVisUtil)obj.Objects.Where(c => c.Name == "VISUTIL").FirstOrDefault().obj; rdb = (RDBSource)DMEEditor.GetDataSource(Passedarg.DatasourceName); switch (obj.ObjectType) { case "RDBMSTABLE": EntityName = obj.CurrentEntity; SourceConnection = (IRDBSource)Passedarg.DataSource; break; case "CRUDENTITY": EntityName = obj.CurrentEntity; SourceConnection = DMEEditor.GetDataSource(Passedarg.DatasourceName); break; default: break; } LoadTable(EntityName); }
public void SetConfig(IDMEEditor pbl, IDMLogger plogger, IUtil putil, string[] args, PassedArgs e, IErrorsInfo per) { Passedarg = e; DMEEditor = pbl; Visutil = (IVisUtil)e.Objects.Where(c => c.Name == "VISUTIL").FirstOrDefault().obj; branch = (IBranch)e.Objects.Where(c => c.Name == "Branch").FirstOrDefault().obj; if (e.Objects.Where(c => c.Name == "ParentBranch").Any()) { Parentbranch = (IBranch)e.Objects.Where(c => c.Name == "ParentBranch").FirstOrDefault().obj; } scripHeader = new SyncDataSource(); Srcds = DMEEditor.GetDataSource(branch.BranchText); if (Srcds != null) { Srcds.Openconnection(); if (Srcds.ConnectionStatus == ConnectionState.Open) { } else { MessageBox.Show($"Error Cannot Connect to Source {branch.BranchText}"); DMEEditor.AddLogMessage("Fail", $"Error Cannot Connext to Source {branch.BranchText}", DateTime.Now, 0, null, Errors.Failed); } } else { DMEEditor.AddLogMessage("Fail", $"Error Cannot get Source {branch.BranchText}", DateTime.Now, 0, null, Errors.Failed); MessageBox.Show($"Error Cannot get Source {branch.BranchText}"); } }
public LifeImageCloudConnectionManager( ICloudLoginService cloudLoginService, ICloudRegisterService cloudRegisterService, ICloudLogoutService cloudLogoutService, IRoutedItemManager routedItemManager, IRoutedItemLoader routedItemLoader, IRulesManager rulesManager, IProfileStorage profileStorage, ILiteConfigService liteConfigService, IMarkDownloadCompleteService markDownloadCompleteService, ILITETask taskManager, ILogger <LifeImageCloudConnectionManager> logger, IUtil util, ICloudDownloadService cloudDownloadService, ICloudUploadService cloudUploadService, ICloudShareDestinationsService shareDestinationsService, ICloudConnectionCacheAccessor cloudConnectionCacheAccessor, ICloudConnectionCacheManager cloudConnectionCacheManager, ICloudKeepAliveService keepAliveService, ICloudPingService cloudPingService) : base(profileStorage, liteConfigService, routedItemManager, routedItemLoader, rulesManager, taskManager, logger, util) { _cloudLoginService = cloudLoginService; _cloudRegisterService = cloudRegisterService; _cloudLogoutService = cloudLogoutService; _cloudDownloadService = cloudDownloadService; _cloudUploadService = cloudUploadService; _shareDestinationsService = shareDestinationsService; _markDownloadCompleteService = markDownloadCompleteService; _cloudConnectionCacheAccessor = cloudConnectionCacheAccessor; _cloudConnectionCacheManager = cloudConnectionCacheManager; _keepAliveService = keepAliveService; _pingService = cloudPingService; }
internal SkuDetailsResponseListener( Action <IGoogleBillingResult, List <AndroidJavaObject> > onSkuDetailsResponseAction, IUtil util) : base(k_AndroidSkuDetailsResponseListenerClassName) { m_OnSkuDetailsResponse = onSkuDetailsResponseAction; m_Util = util; }
public IHTTPClient getHTTPClient(IUtil util) { if (null == client) { client = new HTTPClient (util); } return client; }
public void initialise(AppleAppStoreBillingService service, IUtil util) { instance = this; this.service = service; StoreKitPluginImpl.util = util; _unibillInitialise(MessageCallback); }
public HomeController(IDataManager dataManager, ILogger <HomeController> logger, IUtil utils, IMemoryCache memoryCache) { _logger = logger; _dataManager = dataManager; _utils = utils; _memoryCache = memoryCache; }
public void SetConfig(IDMEEditor pbl, IDMLogger plogger, IUtil putil, string[] args, PassedArgs e, IErrorsInfo per) { Passedarg = e; Logger = plogger; ErrorObject = per; DMEEditor = pbl; }
public void SetConfig(IDMEEditor pbl, IDMLogger plogger, IUtil putil, string[] args, PassedArgs e, IErrorsInfo per) { Passedarg = e; Logger = plogger; ErrorObject = per; DMEEditor = pbl; Visutil = (IVisUtil)e.Objects.Where(c => c.Name == "VISUTIL").FirstOrDefault().obj; this.function2FunctionsBindingSource.DataSource = DMEEditor.ConfigEditor.Function2Functions; this.function2FunctionsBindingNavigatorSaveItem.Click += Function2FunctionsBindingNavigatorSaveItem_Click; this.fromClassComboBox.SelectedValueChanged += FromClassComboBox_SelectedValueChanged; this.toClassComboBox.SelectedValueChanged += ToClassComboBox_SelectedValueChanged; foreach (var item in DMEEditor.ConfigEditor.BranchesClasses) { toClassComboBox.Items.Add(item.className); fromClassComboBox.Items.Add(item.className); } foreach (var item in DMEEditor.ConfigEditor.Events) { eventComboBox.Items.Add(item.EventName); } this.actionTypeComboBox.Items.Add("Event"); this.actionTypeComboBox.Items.Add("Function"); this.actionTypeComboBox.SelectedValueChanged += ActionTypeComboBox_SelectedValueChanged; }
public void SetConfig(IDMEEditor pbl, IDMLogger plogger, IUtil putil, string[] args, PassedArgs e, IErrorsInfo per) { Passedarg = e; Logger = plogger; ErrorObject = per; DMEEditor = pbl; Visutil = (IVisUtil)e.Objects.Where(c => c.Name == "VISUTIL").FirstOrDefault().obj; if (e.Objects.Where(c => c.Name == "Branch").Any()) { branch = (IBranch)e.Objects.Where(c => c.Name == "Branch").FirstOrDefault().obj; } if (e.Objects.Where(c => c.Name == "RootBranch").Any()) { RootAppBranch = (IBranch)e.Objects.Where(c => c.Name == "RootBranch").FirstOrDefault().obj; } this.dataConnectionsBindingSource.DataSource = DMEEditor.ConfigEditor.DataConnections; scriptBindingSource.DataSource = DMEEditor.ETL.script.Entities; this.RunScriptbutton.Click += RunScriptbutton_Click; this.StopButton.Click += StopButton_Click; this.ErrorsAllowdnumericUpDown.Value = 10; // this.CreateScriptButton.Click += CreateScriptButton_Click; // this.scriptBindingSource.DataSource = DMEEditor.ETL.trackingHeader; }
private EventQueue(IUtil util, IAsyncWebUtil webUtil) { m_AsyncUtil = webUtil; Profile = ProfileData.Instance(util); ProfileDict = Profile.GetProfileDict(); AdsIPC.InitAdsIPC(util); }
private static int SetPort(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); string httpPort = GetValue(args, "httpPort"); string httpsPort = GetValue(args, "httpsPort"); //参数基本检查 if (siteName.IsNullOrEmpty()) //站点名不可为空 { errorCode = ErrorCode.InvalidParameter; } else if (httpPort.IsNullOrEmpty() && httpsPort.IsNullOrEmpty()) //两个端口号不可同时为空 { errorCode = ErrorCode.InvalidParameter; } else { errorCode = util.SetPort(siteName, httpPort.IsNullOrEmpty() ? 0 : Convert.ToInt32(httpPort), httpsPort.IsNullOrEmpty() ? 0 : Convert.ToInt32(httpsPort) ); } return(errorCode); }
private static int CreateSite(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); string httpPort = GetValue(args, "httpPort"); string httpsPort = GetValue(args, "httpsPort"); string sslHash = GetValue(args, "sslHash"); string physicalPath = GetValue(args, "physicalPath"); //参数基本检查 if(siteName.IsNullOrEmpty() || physicalPath.IsNullOrEmpty()) //站点名、物理路径不可为空 errorCode = ErrorCode.InvalidParameter; else if(httpPort.IsNullOrEmpty() && httpsPort.IsNullOrEmpty()) //两个端口号不可同时为空 errorCode = ErrorCode.InvalidParameter; else if(!httpsPort.IsNullOrEmpty() && sslHash.IsNullOrEmpty()) //如果启用ssl,必须指定证书hash errorCode = ErrorCode.InvalidParameter; else errorCode = util.CreateSite(siteName, httpPort.IsNullOrEmpty() ? 0 : Convert.ToInt32(httpPort), httpsPort.IsNullOrEmpty() ? 0 : Convert.ToInt32(httpsPort), sslHash, physicalPath ); return errorCode; }
public MaintenanceService(IRepository <Inventories> inventoriesRepository, IRepository <Employees> employeesRepository, IRepository <Salary> salaryRepository, IRepository <SignaturePrototypes> signaturesRepository, IRepository <Abbrevations> abbreavationsRepository, IRepository <FieldOptions> fieldOptionsRepository, IRepository <OtherTests> testRepository, IRepository <Fields> fieldsRepository, IRepository <Genders> gendersRepository, IRepository <EmployeeCategories> empCategoriesRepository, IRepository <EmployeeRoles> empRolesRepository, IUtil util) { _inventoriesRepository = inventoriesRepository; _employeesRepository = employeesRepository; _salaryRepository = salaryRepository; _signaturesRepository = signaturesRepository; _abbreavationsRepository = abbreavationsRepository; _fieldOptionsRepository = fieldOptionsRepository; _testRepository = testRepository; _fieldsRepository = fieldsRepository; _gendersRepository = gendersRepository; _empCategoriesRepository = empCategoriesRepository; _empRolesRepository = empRolesRepository; _util = util; }
public void SetConfig(IDMEEditor pbl, IDMLogger plogger, IUtil putil, string[] args, PassedArgs e, IErrorsInfo per) { Passedarg = e; Logger = plogger; DMEEditor = pbl; ErrorObject = per; foreach (ConnectionProperties c in DMEEditor.ConfigEditor.DataConnections.Where(c => c.Category == DatasourceCategory.RDBMS)) { var t = databaseTypeComboBox.Items.Add(c.ConnectionName); } // DMEEditor.ConfigEditor.LoadTablesEntities(); fieldtypeDataGridViewTextBoxColumn.DataSource = dataTypesMapBindingSource; //fieldtypeDataGridViewTextBoxColumn.DataSource = DMEEditor.typesHelper.GetNetDataTypes2(); this.entitiesBindingNavigatorSaveItem.Click += EntitiesBindingNavigatorSaveItem_Click; entitiesBindingSource.DataSource = DMEEditor.ConfigEditor.EntityCreateObjects; this.entitiesBindingSource.AddingNew += EntitiesBindingSource_AddingNew; this.fieldsBindingSource.AddingNew += FieldsBindingSource_AddingNew; this.CreateinDBbutton.Click += CreateinDBbutton_Click1; this.fieldsDataGridView.DataError += FieldsDataGridView_DataError; this.databaseTypeComboBox.SelectedIndexChanged += DatabaseTypeComboBox_SelectedIndexChanged; // this.fieldsDataGridView.RowValidated += FieldsDataGridView_RowValidated; this.fieldsDataGridView.RowValidating += FieldsDataGridView_RowValidating; this.fieldsDataGridView.CellEndEdit += FieldsDataGridView_CellEndEdit; // this.databaseTypeComboBox.SelectedIndexChanged += DatabaseTypeComboBox_SelectedIndexChanged; }
public void SetConfig(IDMEEditor pDMEEditor, IDMLogger plogger, IUtil putil, string[] args, PassedArgs obj, IErrorsInfo per) { Passedarg = obj; Logger = plogger; util = putil; ErrorObject = per; DMEEditor = pDMEEditor; vds = (DataViewDataSource)DMEEditor.GetDataSource(obj.DMView.DataViewDataSourceID); Visutil = (IVisUtil)obj.Objects.Where(c => c.Name == "VISUTIL").FirstOrDefault().obj; branch = (IBranch)obj.Objects.Where(c => c.Name == "Branch").FirstOrDefault().obj; EntityStructure = (EntityStructure)obj.Objects.Where(c => c.Name == "EntityStructure").FirstOrDefault().obj; if (obj.Objects.Where(c => c.Name == "ParentBranch").Any()) { Parentbranch = (IBranch)obj.Objects.Where(c => c.Name == "ParentBranch").FirstOrDefault().obj; ParentEntity = vds.GetEntityStructure(Parentbranch.BranchText, true); } if (obj.CurrentEntity != null) { EntityName = obj.CurrentEntity; } else { EntityName = ""; } this.entitiesBindingNavigatorSaveItem.Click += EntitiesBindingNavigatorSaveItem_Click; this.otherentitiesbindingSource.DataSource = vds.Entities.Where(o => o.Id > 0 && o.Id != EntityStructure.Id); this.entitiesBindingSource.DataSource = EntityStructure; this.fieldsBindingSource.DataSource = this.entitiesBindingSource; //this.otherentityfieldsbindingSource.ResetBindings(true); this.ParentEntitycomboBox.SelectedIndexChanged += ParentEntitycomboBox_SelectedIndexChanged; }
public WinRTStore(IWindowsIAP win8, IUtil util, ILogger logger) { this.win8 = win8; this.util = util; this.logger = logger; }
public PatientService(IRepository <PatientEntity> patientsRepository, IRepository <PatientBill> patientBillRepository, IRepository <PatientCounts> patientCountsRepository, IRepository <TestResults> testResultsRepository, IRepository <HdlRegistration> hdlRegisrationRepository, IRepository <TestTitles> testTitlesRepository, IRepository <TestGroups> testGroupsRepository, IRepository <MonthlyRateList> monthlyRateListRepository, IRepository <SpecializedLabSamples> specializedLabSamplesRepository, IRepository <DataEntities.SpecializedLabRateList> specializedLabRateListRepository, IRepository <ReferringRateList> referringRateListRepository, IUtil util) { this.patientsRepository = patientsRepository; this.patientBillRepository = patientBillRepository; this.patientCountsRepository = patientCountsRepository; this.testResultsRepository = testResultsRepository; this.hdlRegisrationRepository = hdlRegisrationRepository; this.testTitlesRepository = testTitlesRepository; this.testGroupsRepository = testGroupsRepository; this.monthlyRateListRepository = monthlyRateListRepository; this.specializedLabSamplesRepository = specializedLabSamplesRepository; this.specializedLabRateListRepository = specializedLabRateListRepository; this.referringRateListRepository = referringRateListRepository; this.util = util; }
static internal bool InitAdsIPC(IUtil util) { // Ads SDK DLLs have unique names per platform if (util.platform == RuntimePlatform.IPhonePlayer) { adsAdvertisementClassName += "iOS"; } else if (util.platform == RuntimePlatform.Android) { adsAdvertisementClassName += "Android"; } else { return(false); } if (VerifyMethodExists()) { return(true); } else { //Fallback to the UnityEngine.Advertisement namespace and see if our SendEvent method exist there. adsAdvertisementClassName = "UnityEngine.Advertisements.Purchasing,UnityEngine.Advertisements"; return(VerifyMethodExists()); } }
public FinanceService(IRepository <OtherIncome> otherIncomeRepository, IRepository <AccountHead> accountHeadReposiory, IRepository <ExpensesAccountHead> expAccountHeadRepository, IRepository <Expenses> expensesRepository, IRepository <SalaryPayment> salaryPaymentRepositroy, IRepository <Employees> employeesRepository, IRepository <Salary> salariesRepository, IRepository <PatientBill> patientBillRepository, IRepository <PatientBillPayment> billPaymentRepository, IRepository <DataEntities.Patient> patientRepository, IRepository <FieldOptions> fieldOptionsRepository, IRepository <HdlRegistration> hdlRegistrationRepository, IRepository <HdlBill> hdlBillRepository, IRepository <HdlBillPayment> hdlBillPaymentRepository, IRepository <Users> usersRepository, IUtil util) { this.otherIncomeRepository = otherIncomeRepository; this.accountHeadReposiory = accountHeadReposiory; this.expAccountHeadRepository = expAccountHeadRepository; this.expensesRepository = expensesRepository; this.salariesRepository = salariesRepository; this.employeesRepository = employeesRepository; this.salaryPaymentRepositroy = salaryPaymentRepositroy; this.patientBillRepository = patientBillRepository; this.billPaymentRepository = billPaymentRepository; this.patientRepository = patientRepository; this.fieldOptionsRepository = fieldOptionsRepository; this.hdlRegistrationRepository = hdlRegistrationRepository; this.hdlBillRepository = hdlBillRepository; this.hdlBillPaymentRepository = hdlBillPaymentRepository; this.usersRepository = usersRepository; _util = util; }
private static int CreateApp(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); string virtualPath = GetValue(args, "virtualPath"); string physicalPath = GetValue(args, "physicalPath"); string poolName = GetValue(args, "poolName"); string useSsl = GetValue(args, "useSsl"); //站点名、虚拟路径、物理路径、池名称不可为空 if (siteName.IsNullOrEmpty() || virtualPath.IsNullOrEmpty() || physicalPath.IsNullOrEmpty()) { errorCode = ErrorCode.InvalidParameter; } else { errorCode = util.CreateApp(siteName, virtualPath, physicalPath, poolName, useSsl.IsNullOrEmpty() ? false : Convert.ToBoolean(useSsl) ); } return(errorCode); }
public void SetConfig(IDMEEditor pbl, IDMLogger plogger, IUtil putil, string[] args, PassedArgs e, IErrorsInfo per) { Passedarg = e; Logger = plogger; ErrorObject = per; DMEEditor = pbl; DMEEditor.ConfigEditor.LoadAppFieldPropertiesValues(e.DatasourceName); this.appfieldPropertiesBindingSource.AddingNew += AppfieldPropertiesBindingSource_AddingNew; dsname = e.DatasourceName; EntityName = e.CurrentEntity; this.appfieldPropertiesBindingSource.DataSource = DMEEditor.ConfigEditor.AppfieldProperties; if (appfieldPropertiesBindingSource.Count == 0 && appfieldPropertiesBindingSource.Current == null) { this.appfieldPropertiesBindingSource.AddNew(); } else { FindDSRecord(dsname); } FillEntities(); if (e.CurrentEntity != null) { FindEntityRecord(e.CurrentEntity); } foreach (var item in Enum.GetValues(typeof(DisplayFieldTypes))) { this.fieldTypesComboBox.Items.Add(item); } Visutil = (IVisUtil)e.Objects.Where(c => c.Name == "VISUTIL").FirstOrDefault().obj; this.Savebutton.Click += FieldPropertiesBindingNavigatorSaveItem_Click; }
public BusinessLogicSegment() { this.container = new WindsorContainer(); container.Install(new Installer()); this.util = this.container.Resolve <IUtil>(); this.blSentence = this.container.Resolve <IBusinessLogicSentence>(); }
public LiteConnectionManager( ILiteDownloadService liteDownloadService, IGetLiteReresourcesService getLiteReresourcesService, IRegisterWithEGSService registerWithEGSService, ILiteConnectionPurgeService purgeService, ILiteUploadService liteUploadService, ILitePingService litePingService, IProfileStorage profileStorage, ILiteConfigService liteConfigService, IRoutedItemManager routedItemManager, IRoutedItemLoader routedItemLoader, IRulesManager rulesManager, ISendToAllHubsService sendToAllHubsService, IConnectionFinder connectionFinder, ILITETask taskManager, ILogger <LiteConnectionManager> logger, IUtil util) : base(profileStorage, liteConfigService, routedItemManager, routedItemLoader, rulesManager, taskManager, logger, util) { _liteUploadService = liteUploadService; _liteDownloadService = liteDownloadService; _purgeService = purgeService; _registerWithEGSService = registerWithEGSService; _getLiteReresourcesService = getLiteReresourcesService; _litePingService = litePingService; _sendToAllHubsService = sendToAllHubsService; _connectionFinder = connectionFinder; hubMessages.CollectionChanged += HubMessagesCollectionChanged; }
private NFTManager createTestSubject() { IConnector substConnector = Substitute.For <IConnector>(); IExecutor substExecutor = Substitute.For <IExecutor>(); IUtil substUtil = Substitute.For <IUtil>(); IListFetcher substListFetcher = Substitute.For <IListFetcher>(); IRepository <ListConfig> substListConfigRepository = Substitute.For <IRepository <ListConfig> >(); IRepository <HostConfig> substHostConfigRepository = Substitute.For <IRepository <HostConfig> >(); IRepository <ContentList> substListRepository = Substitute.For <IRepository <ContentList> >(); substExecutor.Connector = substConnector; NFTManager nftManager = new NFTManager() { Executor = substExecutor, HostConfigRepository = substHostConfigRepository, ListConfigRepository = substListConfigRepository, ListRepository = substListRepository, Utility = substUtil, ListFetcher = substListFetcher, }; return(nftManager); }
protected ConnectionManagerBase( ILogger logger, IUtil util) { _util = util; _logger = logger; }
public OrderController(OrderService orderService, IUtil util, MenuService menuService, SaleService saleService) { _orderService = orderService; _util = util; _menuService = menuService; _saleService = saleService; }
public CoFactorFacadeTestClassBuilder() { Bootstrapper.Init(); _util = ServiceInjector.Retrieve <IUtil>(); _inputService = ServiceInjector.Retrieve <IInputService>(); _factorService = ServiceInjector.Retrieve <IFactorService>(); }
public void SetConfig(IDMEEditor pbl, IDMLogger plogger, IUtil putil, string[] args, PassedArgs e, IErrorsInfo per) { Passedarg = e; Logger = plogger; ErrorObject = per; DMEEditor = pbl; Visutil = (IVisUtil)e.Objects.Where(c => c.Name == "VISUTIL").FirstOrDefault().obj; branch = (IBranch)e.Objects.Where(c => c.Name == "Branch").FirstOrDefault().obj; RootAppBranch = (IBranch)e.Objects.Where(c => c.Name == "RootAppBranch").FirstOrDefault().obj; dataViewDataSourceNameComboBox.Items.Clear(); foreach (var item in DMEEditor.ConfigEditor.DataConnections.Where(x => x.Category == DatasourceCategory.VIEWS).ToList()) { dataViewDataSourceNameComboBox.Items.Add(item.ConnectionName); } this.FolderLocationbutton.Click += FolderLocationbutton_Click; this.SaveAppDefinitionbutton.Click += SaveAppDefinitionbutton_Click; this.Generatebutton.Click += Generatebutton_Click; this.appsBindingSource.DataSource = DMEEditor.ConfigEditor.Apps; appsBindingSource.AddingNew += AppsBindingSource_AddingNew; if (string.IsNullOrEmpty(e.CurrentEntity)) { appsBindingSource.AddNew(); } else { appsBindingSource.DataSource = DMEEditor.ConfigEditor.Apps[DMEEditor.ConfigEditor.Apps.FindIndex(x => x.ID == e.ParameterString1)]; //this.appNameTextBox.Enabled=false; } if (e.ObjectType == "MISSINGVIEW" && e.EventType == "EDITAPP") { MessageBox.Show("Missing View, Please update Selected View "); } }
public LoggerManager( IUtil util, ILogger <LoggerManager> logger) { _util = util; _logger = logger; }
public BillerFactory(IResourceLoader resourceLoader, ILogger logger, IStorage storage, IRawBillingPlatformProvider platformProvider, UnibillConfiguration config, IUtil util) { this.loader = resourceLoader; this.logger = logger; this.storage = storage; this.platformProvider = platformProvider; this.config = config; this.util = util; }
public DownloadManager(IReceiptStore receiptStore, IUtil util, IStorage storage, IURLFetcher fetcher, ILogger logger, BillingPlatform platform, string appSecret) { this.receiptStore = receiptStore; this.util = util; this.storage = storage; this.fetcher = fetcher; this.logger = logger; this.platform = platform; this.appSecret = appSecret; this.scheduledDownloads = deserialiseDownloads (); this.workQueue = new List<string> (scheduledDownloads); this.persistentDataPath = util.persistentDataPath; }
private static int CreateAppPool(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string poolName = GetValue(args, "poolName"); //必须指定池名称 if(poolName.IsNullOrEmpty()) errorCode = ErrorCode.InvalidParameter; else errorCode = util.CreateAppPool(poolName); return errorCode; }
public MainWindowViewModel(IUtil util, IXmlFileCreator xmlFileCreator, IWebcamController webcamController, ICardDatabase cardDatabase, ICardImportFileCreator cardImportFileCreator) { CardImportFileCreator = cardImportFileCreator; Util = util; XmlFileCreator = xmlFileCreator; WebcamController = webcamController; CardDatabase = cardDatabase; GenerateThemeData(); }
public AnalyticsReporter(Biller biller, UnibillConfiguration config, IHTTPClient client, IStorage storage, IUtil util, ILevelLoadListener listener) { this.config = config; this.client = client; this.util = util; this.userId = getUserId (storage); biller.onPurchaseComplete += onSucceeded; biller.onPurchaseCancelled += (PurchasableItem obj) => onEvent(EventType.purchase_cancelled, obj, null); biller.onPurchaseRefunded += (PurchasableItem obj) => onEvent(EventType.purchase_refunded, obj, null); biller.onTransactionRestoreBegin += (bool obj) => restoreInProgress = true; biller.onTransactionsRestored += (bool obj) => restoreInProgress = false; listener.registerListener (() => onLevelLoad ()); onEvent (EventType.new_session, null, null); this.levelName = util.loadedLevelName (); this.levelLoadTime = DateTime.UtcNow; }
public UnibillConfiguration (IResourceLoader loader, UnibillXmlParser parser, IUtil util, ILogger logger) { var element = parser.Parse ("unibillInventory", "inventory") [0]; string o = null; element.kvps.TryGetValue("iOSSKU", out o); iOSSKU = o; element.kvps.TryGetValue("GooglePlayPublicKey", out o); GooglePlayPublicKey = o; this.AmazonSandboxEnabled = bool.Parse (element.kvps ["useAmazonSandbox"]); CurrentPlatform = BillingPlatform.MacAppStore; #if UNITY_ANDROID CurrentPlatform = (BillingPlatform) Enum.Parse(typeof(BillingPlatform), element.kvps["androidBillingPlatform"]); #endif #if UNITY_IPHONE CurrentPlatform = BillingPlatform.AppleAppStore; #endif }
private static int CreateDir(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); string virtualPath = GetValue(args, "virtualPath"); string physicalPath = GetValue(args, "physicalPath"); string enableAllMimeTypes = GetValue(args, "enableAllMimeTypes"); //站点名、虚拟路径、物理路径不可为空 if(siteName.IsNullOrEmpty() || virtualPath.IsNullOrEmpty() || physicalPath.IsNullOrEmpty()) errorCode = ErrorCode.InvalidParameter; else errorCode = util.CreateDir(siteName, virtualPath, physicalPath, enableAllMimeTypes.IsNullOrEmpty() ? false : Convert.ToBoolean(enableAllMimeTypes) ); return errorCode; }
private static int CreateApp(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); string virtualPath = GetValue(args, "virtualPath"); string physicalPath = GetValue(args, "physicalPath"); string poolName = GetValue(args, "poolName"); string useSsl = GetValue(args, "useSsl"); //站点名、虚拟路径、物理路径、池名称不可为空 if(siteName.IsNullOrEmpty() || virtualPath.IsNullOrEmpty() || physicalPath.IsNullOrEmpty()) errorCode = ErrorCode.InvalidParameter; else errorCode = util.CreateApp(siteName, virtualPath, physicalPath, poolName, useSsl.IsNullOrEmpty() ? false : Convert.ToBoolean(useSsl) ); return errorCode; }
public HTTPClient(IUtil util) { util.InitiateCoroutine (pump ()); }
public XmlFileCreator(IUtil util) { _util = util; InitializeBaseXmlDoc(); }
private static int RemoveDir(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); string virtualPath = GetValue(args, "virtualPath"); //站点名、虚拟路径不可为空 if(siteName.IsNullOrEmpty() || virtualPath.IsNullOrEmpty()) errorCode = ErrorCode.InvalidParameter; else errorCode = util.RemoveDir(siteName, virtualPath); return errorCode; }
private static int SiteExist(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); //站点名不可为空 if(siteName.IsNullOrEmpty()) errorCode = ErrorCode.InvalidParameter; else errorCode = util.SiteExist(siteName); return errorCode; }
private static int SetPort(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); string httpPort = GetValue(args, "httpPort"); string httpsPort = GetValue(args, "httpsPort"); //参数基本检查 if(siteName.IsNullOrEmpty()) //站点名不可为空 errorCode = ErrorCode.InvalidParameter; else if(httpPort.IsNullOrEmpty() && httpsPort.IsNullOrEmpty()) //两个端口号不可同时为空 errorCode = ErrorCode.InvalidParameter; else errorCode = util.SetPort(siteName, httpPort.IsNullOrEmpty() ? 0 : Convert.ToInt32(httpPort), httpsPort.IsNullOrEmpty() ? 0 : Convert.ToInt32(httpsPort) ); return errorCode; }
private static int SetCertificate(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); string sslHash = GetValue(args, "sslHash"); //站点名、证书hash不可为空 if(siteName.IsNullOrEmpty() || sslHash.IsNullOrEmpty()) errorCode = ErrorCode.InvalidParameter; else errorCode = util.SetCertificate(siteName, sslHash); return errorCode; }
private static int RemoveSite(IUtil util, string[] args) { int errorCode = ErrorCode.Succeed; string siteName = GetValue(args, "siteName"); //必须指定站点名 if(siteName.IsNullOrEmpty()) errorCode = ErrorCode.InvalidParameter; else errorCode = util.RemoveSite(siteName); return errorCode; }