Пример #1
0
        public void SetSettings(ContractorSettings Settings)
        {
            Batch.Contractor.ContractorSettings local = new Batch.Contractor.ContractorSettings();

            var remoteSettings = new ContractorSettings();

            //local.IsAppDomainMonitoringEnabled = Settings.IsAppDomainMonitoringEnabled;
            local.ForemanFetchDLLBaseDir     = Settings.ForemanFetchDLLBaseDir;
            local.IsKeepLocalForemanDLL      = Settings.IsKeepLocalForemanDLL;
            local.IsOverwriteLocalForemanDLL = Settings.IsOverwriteLocalForemanDLL;
            local.ForemanLocalDLLBaseDir     = Settings.ForemanLocalDLLBaseDir;

            contractor.Settings = local;
        }
Пример #2
0
        ContractorSettings IRemoteContractor.GetSettings()
        {
            var settings = contractor.Settings;

            var remoteSettings = new ContractorSettings();

            remoteSettings.IsAppDomainMonitoringEnabled = settings.IsAppDomainMonitoringEnabled;
            remoteSettings.ForemanFetchDLLBaseDir       = settings.ForemanFetchDLLBaseDir;
            remoteSettings.IsKeepLocalForemanDLL        = settings.IsKeepLocalForemanDLL;
            remoteSettings.IsOverwriteLocalForemanDLL   = settings.IsOverwriteLocalForemanDLL;
            remoteSettings.ForemanLocalDLLBaseDir       = settings.ForemanLocalDLLBaseDir;

            return(remoteSettings);
        }