/// <summary> /// Initializes a new instance of the <see cref="ReceiverService"/> class. /// </summary> /// <param name="eventAggregator">The event aggregator.</param> public SpeechService(IEventAggregator eventAggregator, ConfigProperties config) { _eventAggregator = eventAggregator; SubscribeEvents(); _config = config; _speechSynthesizer.Volume = 100; }
private void Ayarlar_Load(object sender, EventArgs e) { GeneralConfig config = new GeneralConfig(); ConfigProperties properties = config.ReadConfigFromFile(); trckInterval.Value = properties.WordInterval / 60000; }
private void OnChangedExecute(ConfigProperties data) { if (OnChanged != null) { OnChanged(this, new ConfigEventArgs(data)); } }
public string getProperty(Location location, string property) { string val = "" + location.ToString() + "." + property; Debug.Log("[CONFIG] Retrieving property: " + val); return(ConfigProperties.load(configFilename, val)); }
/// <summary> /// This method is called when the configuration for this receive location is modified. /// The Location will be stopped while configurations are made. /// </summary> public override void Update(IPropertyBag config, IPropertyBag bizTalkConfig, IPropertyBag handlerPropertyBag) { TraceMessage("[SftpReceiverEndpoint] Configuration Updates "); lock (this) { Stop(); _errorCount = 0; // keep handles to these property bags until we are ready this._updatedConfig = config; this._updatedBizTalkConfig = bizTalkConfig; this._updatedHandlerPropertyBag = handlerPropertyBag; if (_updatedConfig != null) { XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config); this._properties.ReadLocationConfiguration(locationConfigDom); this._taskController = new TaskController( new ScheduledTask(this._properties.Uri, new ScheduledTask.TaskDelegate(this.ControlledEndpointTask)), this._properties.Schedule); this.isInitialized = false; } //Schedule the polling event Start(); } }
public void loadConfig() { string config = Application.dataPath + "/" + configFile; condition = (ConditionType)Enum.Parse(enumType: typeof(ConditionType), value: ConfigProperties.load(config, "condition")); task = (TaskType)Enum.Parse(enumType: typeof(TaskType), value: ConfigProperties.load(config, "task")); }
public void ReadConfig() { try { HIS.WS.LoginWS _LoginWS = new HIS.WS.LoginWS(); string _path = Application.StartupPath + @"\Properties"; ConfigProperties _ConfigProperties = PropertyLib.GetConfigProperties(_path); string ServerName = _ConfigProperties.DataBaseServer; string sUName = _ConfigProperties.UID; string sPwd = _ConfigProperties.PWD; string sDbName = _ConfigProperties.DataBaseName; _LoginWS.Url = _ConfigProperties.WSURL; if (_ConfigProperties.RunUnderWS) { string DataBaseServer = ""; string DataBaseName = ""; string UID = ""; string PWD = ""; _LoginWS.GetConnectionString(ref ServerName, ref sDbName, ref sUName, ref sPwd); } sqlConnectionString = "workstation id=" + ServerName + ";packet size=4096;data source=" + ServerName + ";persist security info=False;initial catalog=" + sDbName + ";uid=" + sUName + ";pwd=" + sPwd; } catch (Exception ex) { sqlConnectionString = ""; } }
/// <summary> /// Initializes a new instance of the <see cref="ConfigPresenter"/> class. /// </summary> /// <param name="config">The config.</param> public ConfigPresenter(ConfigProperties config, GameMetaDataModel game) { _config = config; _game = game; InitializeCommands(); _gameObserver = new PropertyObserver <GameMetaDataModel>(_game).RegisterHandler(o => o.GameNumber, o => OnPropertyChanged("GameNumber")); }
public override void Open(string uri, Microsoft.BizTalk.Component.Interop.IPropertyBag config, IPropertyBag bizTalkConfig, Microsoft.BizTalk.Component.Interop.IPropertyBag handlerPropertyBag, IBTTransportProxy transportProxy, string transportType, string propertyNamespace, ControlledTermination control) { try { this.properties = new SBQueueReceiveProperties(uri); XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config); this.properties.LocationConfiguration(locationConfigDom, false); // this is our handle back to the EPM this.transportProxy = transportProxy; // used to control whether the EPM can unload us this.control = control; this.uri = uri; this.transportType = transportType; this.propertyNamespace = propertyNamespace; this.messageFactory = this.transportProxy.GetMessageFactory(); Start(); } catch (Exception) { throw; } finally { } }
// update and delete public override void Update(IPropertyBag config, IPropertyBag bizTalkConfig, IPropertyBag handlerPropertyBag) { try { Stop(); this.properties = new TransactionalReceiveProperties(this.properties.Uri); // Handler properties XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(handlerPropertyBag); if (null != handlerConfigDom) { this.properties.HandlerConfiguration(handlerConfigDom); } // Location properties - possibly override some Handler properties XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config); this.properties.LocationConfiguration(locationConfigDom); Start(); } finally { } }
/// <summary> /// Initializes a new instance of the <see cref="ReceiverService"/> class. /// </summary> /// <param name="eventAggregator">The event aggregator.</param> public SoundEffectsService(IEventAggregator eventAggregator, ConfigProperties config) { _config = config; _soundDirectory = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "Sounds"); SubscribeEvents(eventAggregator); RegisterMouseClick(); }
/// <summary> /// Initializes a new instance of the <see cref="CountDownClockPresenter"/> class. /// </summary> /// <param name="view">The view.</param> public MeterPresenter(IUnityContainer container, IEventAggregator eventAggregator, ConfigProperties config) { _eventAggregator = eventAggregator; _container = container; _config = config; RegisterCommands(); SubscribeEvents(); }
public void ExecuteProgramConfig() { GeneralConfig config = new GeneralConfig(); ConfigProperties properties = config.ReadConfigFromFile(); tmrWord.Interval = properties.WordInterval; //tmrWord.Interval = 1000; //Hızlı Deneme }
private void _loadConfig() { string config = Application.dataPath + "/" + configFile; SessionTimeMinutes = int.Parse(ConfigProperties.load(config, "sessionTimeMinutes")); condition = (ConditionType)Enum.Parse(enumType: typeof(ConditionType), value: ConfigProperties.load(config, "condition")); taskType = (TaskType)Enum.Parse(enumType: typeof(TaskType), value: ConfigProperties.load(config, "task")); }
// Use this for initialization void Start() { Application.runInBackground = true; ConfigFile = Application.dataPath + "/config.txt"; ConfigProperties.save(ConfigFile, "last.run", DateTime.Now.ToString("yyyy-MM-dd-HH:mm:ss")); setupLocation = (SetupLocation)Enum.Parse(enumType: typeof(SetupLocation), value: ConfigProperties.load(ConfigFile, "setup.type")); if (setupLocation == SetupLocation.LEFT) { _localPrefix = "left"; _remotePrefix = "right"; } else { _localPrefix = "right"; _remotePrefix = "left"; } localTrackerListenPort = int.Parse(ConfigProperties.load(ConfigFile, _localPrefix + ".tracker.listen.port")); remoteTrackerListenPort = int.Parse(ConfigProperties.load(ConfigFile, _remotePrefix + ".tracker.listen.port")); localTrackerAddress = ConfigProperties.load(ConfigFile, _localPrefix + ".setup.address"); int localTrackerBroadcastPort = int.Parse(ConfigProperties.load(ConfigFile, _localPrefix + ".tracker.broadcast.port")); localTrackerSurfaceRequestPort = int.Parse(ConfigProperties.load(ConfigFile, _localPrefix + ".tracker.surface.request.port")); localTrackerSurfaceListenerPort = int.Parse(ConfigProperties.load(ConfigFile, _localPrefix + ".tracker.surface.listener.port")); int localAvatarListenPort = int.Parse(ConfigProperties.load(ConfigFile, _localPrefix + ".client.avatar.listen.port")); remoteTrackerAddress = ConfigProperties.load(ConfigFile, _remotePrefix + ".setup.address"); int remoteTrackerBroadcastPort = int.Parse(ConfigProperties.load(ConfigFile, _remotePrefix + ".tracker.broadcast.port")); remoteTrackerSurfaceRequestPort = int.Parse(ConfigProperties.load(ConfigFile, _remotePrefix + ".tracker.surface.request.port")); remoteTrackerSurfaceListenerPort = int.Parse(ConfigProperties.load(ConfigFile, _remotePrefix + ".tracker.surface.listener.port")); int remoteAvatarListenPort = int.Parse(ConfigProperties.load(ConfigFile, _remotePrefix + ".client.avatar.listen.port")); GetComponent <CreepyTrackerSurfaceRequestListener>().StartReceive(localTrackerSurfaceListenerPort, remoteTrackerSurfaceListenerPort); GameObject eyes = GameObject.Find("Eyes"); eyes.transform.position = _getPositionFromConfig(ConfigProperties.load(ConfigFile, _localPrefix + ".eyes.localPosition")); eyes.transform.rotation = _getRotationFromConfig(ConfigProperties.load(ConfigFile, _localPrefix + ".eyes.localRotation")); if (!devCalibration) { RB1.GetComponentInChildren <MeshRenderer>().enabled = false; RB2.GetComponentInChildren <MeshRenderer>().enabled = false; if (setupLocation == SetupLocation.LEFT) { RB4.GetComponentInChildren <MeshRenderer>().enabled = false; } else { RB3.GetComponentInChildren <MeshRenderer>().enabled = false; } } _sensors = new Dictionary <string, GameObject>(); _surfaceRequest(); }
public Fetch(Globals globals, ConfigProperties properties, RemoteOptions remoteOptions, Labels labels) { _globals = globals; _properties = properties; _remoteOptions = remoteOptions; _labels = labels; upToChangeSet = -1; BranchStrategy = BranchStrategy = BranchStrategy.Auto; }
/// <summary> /// Serializa o objeto para json e salva. /// TODO: Receber uma entidade genérica. /// </summary> /// <param name="lstAllTopics"></param> /// <param name="configProperties"></param> public static void writeJSONFile(List <Topic> lstAllTopics, ConfigProperties configProperties) { // Serializa o objeto para json. // (SOMENTE POR TESTE PARA VER COMO É) var jsonString = JsonConvert.SerializeObject(lstAllTopics); // Salva arquivo Json. System.IO.File.WriteAllText(configProperties.ReadingTextFile.FilePath + "JSONTest.json", jsonString.ToString()); }
public Fetch(Globals globals, ConfigProperties properties, TextWriter stdout, RemoteOptions remoteOptions, AuthorsFile authors, Labels labels) { this.globals = globals; this.properties = properties; this.stdout = stdout; this.remoteOptions = remoteOptions; this.authors = authors; this.labels = labels; }
/// <summary> /// Initializes a new instance of the <see cref="ReceiverService"/> class. /// </summary> /// <param name="eventAggregator">The event aggregator.</param> public FitnessTestGameService(IUnityContainer container, ILoggerFacade logger, ConfigProperties config, IRegionViewRegistry regionRegistry, IEventAggregator eventAggregator, GameMetaDataModel game) { _container = container; _game = game; _logger = logger; _config = config; _eventAggregator = eventAggregator; _regionRegistry = regionRegistry; }
private void Update() { Transform myRig = setupLocation == SetupLocation.LEFT ? RB1 : RB2; ARCameraRig.transform.position = myRig.position; ARCameraRig.transform.rotation = myRig.rotation; if (!_everythingIsConfigured && _localSurface != null && _remoteSurface != null) { calibrateOptiTrackAndCreepyTracker(); _everythingIsConfigured = true; if (devCalibration) { ravatarManagerTracker.Init( remoteTrackerListenPort, int.Parse(ConfigProperties.load(ConfigFile, _localPrefix + ".client.avatar.listen.port")), remoteCreepyTrackerOrigin ); } } if (Input.GetKeyDown(KeyCode.D)) { GameObject pivot = GameObject.Find("Delta"); if (pivot != null) { string p = _gameObjectPositionToString(pivot.transform.position); string r = _gameObjectRotationToString(pivot.transform.rotation); ConfigProperties.save(ConfigFile, _localPrefix + ".remoteCreepyTrackerDelta.position", p); ConfigProperties.save(ConfigFile, _localPrefix + ".remoteCreepyTrackerDelta.rotation", r); } else { Debug.LogError("NO PIVOT FOUND"); } } if (Input.GetKeyDown(KeyCode.E)) { GameObject eyes = GameObject.Find("Eyes"); if (eyes != null) { string p = _gameObjectPositionToString(eyes.transform.localPosition); string r = _gameObjectRotationToString(eyes.transform.localRotation); ConfigProperties.save(ConfigFile, _localPrefix + ".eyes.localPosition", p); ConfigProperties.save(ConfigFile, _localPrefix + ".eyes.localRotation", r); } else { Debug.LogError("NO EYES FOUND"); } } }
/// <summary> /// Initializes a new instance of the <see cref="ReceiverService"/> class. /// </summary> /// <param name="eventAggregator">The event aggregator.</param> public ReceiverService(IUnityContainer container, IEventAggregator aggregator, ILoggerFacade logger, ConfigProperties config) { _container = container; _eventAggregator = aggregator; _logger = logger; _receiverManager = new ReceiverManager(config.CourtNumber); _config = config; InitializeReceiverManager(); SubscribeEvents(); }
/// <summary> /// Initializes a new instance of the <see cref="CountDownClockPresenter"/> class. /// </summary> public CountDownClockPresenter(IEventAggregator eventAggregator, ConfigProperties config) { _eventAggregator = eventAggregator; _config = config; _timer.Interval = TimeSpan.FromMilliseconds(100); _timer.Tick += Timer_Tick; eventAggregator.GetEvent <CountDownClockEvents.ChangeState>().Subscribe(OnCountDownStateChanged); ResetCountDown(); }
public Fetch(Globals globals, ConfigProperties properties, RemoteOptions remoteOptions, AuthorsFile authors, Labels labels) { this.globals = globals; this.properties = properties; this.remoteOptions = remoteOptions; this.authors = authors; this.labels = labels; this.upToChangeSet = -1; BranchStrategy = BranchStrategy = BranchStrategy.Auto; }
public Fetch(Globals globals, ConfigProperties properties, TextWriter stdout, RemoteOptions remoteOptions, AuthorsFile authors, Labels labels) { this.globals = globals; this.properties = properties; this.stdout = stdout; this.remoteOptions = remoteOptions; this.authors = authors; this.labels = labels; this.upToChangeSet = -1; BranchStrategy = BranchStrategy = BranchStrategy.Auto; }
private void calibrateOptiTrackAndCreepyTracker() { _deploySensors(_localSurface.sensors, localCreepyTrackerOrigin); Vector3 locpos = _getPositionFromConfig(ConfigProperties.load(ConfigFile, _localPrefix + ".rigidBodyCalibration.transform.position")); Quaternion locrot = _getRotationFromConfig(ConfigProperties.load(ConfigFile, _localPrefix + ".rigidBodyCalibration.transform.rotation")); string locKinectName = ConfigProperties.load(ConfigFile, _localPrefix + ".trackedKinect.name"); _sensors[locKinectName].transform.parent = null; localCreepyTrackerOrigin.parent = _sensors[locKinectName].transform; _sensors[locKinectName].transform.position = locpos; _sensors[locKinectName].transform.rotation = locrot; // _sensors[locKinectName].transform.forward = -_sensors[locKinectName].transform.forward; localCreepyTrackerOrigin.parent = null; _sensors[locKinectName].transform.parent = localCreepyTrackerOrigin.transform; _deploySensors(_remoteSurface.sensors, remoteCreepyTrackerOrigin); Vector3 rempos = _getPositionFromConfig(ConfigProperties.load(ConfigFile, _remotePrefix + ".rigidBodyCalibration.transform.position")); Quaternion remrot = _getRotationFromConfig(ConfigProperties.load(ConfigFile, _remotePrefix + ".rigidBodyCalibration.transform.rotation")); string remKinectName = ConfigProperties.load(ConfigFile, _remotePrefix + ".trackedKinect.name"); _sensors[remKinectName].transform.parent = null; remoteCreepyTrackerOrigin.parent = _sensors[remKinectName].transform; _sensors[remKinectName].transform.position = rempos; _sensors[remKinectName].transform.rotation = remrot; // _sensors[remKinectName].transform.forward = -_sensors[remKinectName].transform.forward; remoteCreepyTrackerOrigin.parent = null; _sensors[remKinectName].transform.parent = remoteCreepyTrackerOrigin.transform; //Position to center the avatar Vector3 deltapos = _getPositionFromConfig(ConfigProperties.load(ConfigFile, _localPrefix + ".remoteCreepyTrackerDelta.position")); Quaternion deltarot = _getRotationFromConfig(ConfigProperties.load(ConfigFile, _localPrefix + ".remoteCreepyTrackerDelta.rotation")); remoteCreepyTrackerOrigin.localPosition += deltapos; remoteCreepyTrackerOrigin.localRotation *= deltarot; remoteCreepyTrackerPosition = remoteCreepyTrackerOrigin.position; remoteCreepyTrackerRotation = remoteCreepyTrackerOrigin.rotation; GameObject g = new GameObject("Delta"); hologramPivot = g.transform; hologramPivot.position = remoteCreepyTrackerOrigin.position; hologramPivot.rotation = remoteCreepyTrackerOrigin.rotation; remoteCreepyTrackerOrigin.parent = g.transform; remoteCreepyTrackerOrigin.localPosition = Vector3.zero; remoteCreepyTrackerOrigin.localRotation = Quaternion.identity; //hologramPivot.position = deltapos; //hologramPivot.rotation = deltarot; }
/// <summary> /// This function is called when BizTalk runtime gives the handler properties to adapter. /// </summary> protected override void HandlerPropertyBagLoaded() { IPropertyBag config = this.HandlerPropertyBag; if (null != config) { XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(config); if (null != handlerConfigDom) { GrabCasterReceiveProperties.ReceiveHandlerConfiguration(handlerConfigDom); } } }
/// <summary> /// /// </summary> protected override void HandlerPropertyBagLoaded() { IPropertyBag config = this.HandlerPropertyBag; if (null != config) { XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(config); if (null != handlerConfigDom) { SftpTransmitProperties.ReadTransmitHandlerConfiguration(handlerConfigDom); } } }
protected override void HandlerPropertyBagLoaded() { int maximumFiles = 0; IPropertyBag config = this.HandlerPropertyBag; if (null != config) { XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(config); if (null != handlerConfigDom) { } } this.transactionalMaxBatchSize = (maximumFiles > 0 ? maximumFiles : base.MaxBatchSize); }
public void WhenNoValueIsSet_ThenDefaultValueIsReturned() { h.SetupGitRepo("repo", g => { g.Commit("A sample commit from TFS.\n\ngit-tfs-id: [http://server/tfs]$/MyProject/trunk;C1"); }); using (var repo = h.Repository("repo")) { var gitRepository = new GitRepository(new StringWriter(), repo.Info.WorkingDirectory, new Container(), null, new RemoteConfigConverter()); var configProperties = new ConfigProperties(new ConfigPropertyLoader(new Globals() { Repository = gitRepository })); Assert.Equal(100, configProperties.BatchSize); } }
public void WhenANewValueIsSetThrougthGitConfigFile_ThenThisValueIsReturned() { h.SetupGitRepo("repo", g => { g.Commit("A sample commit from TFS.\n\ngit-tfs-id: [http://server/tfs]$/MyProject/trunk;C1"); }); h.SetConfig("repo", GitTfsConstants.BatchSize, "5"); using (var repo = h.Repository("repo")) { var gitRepository = new GitRepository(repo.Info.WorkingDirectory, new Container(), null, new RemoteConfigConverter()); var configProperties = new ConfigProperties(new ConfigPropertyLoader(new Globals() { Repository = gitRepository })); Assert.Equal(5, configProperties.BatchSize); } }
public override void Open(string uri, IPropertyBag config, IPropertyBag bizTalkConfig, IPropertyBag handlerPropertyBag, IBTTransportProxy transportProxy, string transportType, string propertyNamespace, ControlledTermination controlledTermination) { this.transportProxy = transportProxy; this.transportType = transportType; this.uri = uri; this.controlledTermination = controlledTermination; this.properties = new ScheduledProperties(); XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config); this.properties.LocationConfiguration(locationConfigDom); // create and schedule a new the task this.taskController = new TaskController(new ScheduledTask(this.properties.Name, new ScheduledTask.TaskDelegate(this.ControlledEndpointTask)), this.properties.Schedule); this.taskController.StateChanged += new StateChangedEventHandler(this.OnStateChanged); this.taskController.Enabled = true; this.taskController.Start(); }
/// <summary> /// This method is called when a Receive Location is enabled. /// </summary> public override void Open( string uri, IPropertyBag config, IPropertyBag bizTalkConfig, IPropertyBag handlerPropertyBag, IBTTransportProxy transportProxy, string transportType, string propertyNamespace, ControlledTermination control) { this._errorCount = 0; this._properties = new SftpReceiveProperties(); _properties.LocationConfiguration(config, bizTalkConfig); // Location properties - possibly override some Handler properties XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config); this._properties.ReadLocationConfiguration(locationConfigDom); // this is our handle back to the EPM this._transportProxy = transportProxy; // used to create new messages / message parts etc. this._messageFactory = this._transportProxy.GetMessageFactory(); // used in the creation of messages this._transportType = transportType; // used in the creation of messages this._propertyNamespace = propertyNamespace; // used to track inflight work for shutting down properly this._controlledTermination = control; // create and schedule a new the task this._taskController = new TaskController( new ScheduledTask(this._properties.Uri, new ScheduledTask.TaskDelegate(this.ControlledEndpointTask)), this._properties.Schedule); this._taskController.StateChanged += new StateChangedEventHandler(this.OnStateChanged); // start the task Start(); }
public void WhenANewValueIsSetAndPersistedInTheGitConfigFile_ThenThisValueAppearInTheGitConfigFile() { h.SetupGitRepo("repo", g => { g.Commit("A sample commit from TFS.\n\ngit-tfs-id: [http://server/tfs]$/MyProject/trunk;C1"); }); using (var repo = h.Repository("repo")) { var gitRepository = new GitRepository(repo.Info.WorkingDirectory, new Container(), null, new RemoteConfigConverter()); var configProperties = new ConfigProperties(new ConfigPropertyLoader(new Globals() { Repository = gitRepository })); configProperties.BatchSize = 7; configProperties.PersistAllOverrides(); Assert.Equal("7", h.GetConfig<string>("repo", GitTfsConstants.BatchSize)); } }
private void WordPopup_Load(object sender, EventArgs e) { System.Media.SoundPlayer popupPlayer = new System.Media.SoundPlayer("sound-effect-pop-up.wav"); popupPlayer.Play(); BackColor = ColorTranslator.FromHtml(RandomBgColor()); WordAccess wordAccess = new WordAccess(); word = wordAccess.GetRandomWord(); lblWord.Text = word.WordEN; GeneralConfig config = new GeneralConfig(); ConfigProperties properties = config.ReadConfigFromFile(); tmrPopup.Interval = properties.PopUpRemainingTime; tmrPopup.Start(); }
public GitTfsRemote(RemoteInfo info, IGitRepository repository, RemoteOptions remoteOptions, Globals globals, ITfsHelper tfsHelper, ConfigProperties properties) { _remoteOptions = remoteOptions; _globals = globals; _properties = properties; Tfs = tfsHelper; Repository = repository; RemoteInfo = info; Id = info.Id; TfsUrl = info.Url; TfsRepositoryPath = info.Repository; TfsUsername = info.Username; TfsPassword = info.Password; Aliases = (info.Aliases ?? Enumerable.Empty<string>()).ToArray(); IgnoreRegexExpression = info.IgnoreRegex; IgnoreExceptRegexExpression = info.IgnoreExceptRegex; Autotag = info.Autotag; IsSubtree = CheckSubtree(); }
public static ConfigProperties GetConfigProperties(string _path) { try { if (!System.IO.Directory.Exists(_path)) { Directory.CreateDirectory(_path); } var myProperty = new ConfigProperties(); string filePath = string.Format(@"{0}\{1}.xml", _path, myProperty.GetType().Name); if (!File.Exists(filePath)) return myProperty; var myFileStream = new FileStream(filePath, FileMode.Open); var mySerializer = new XmlSerializer(myProperty.GetType()); myProperty = (ConfigProperties)mySerializer.Deserialize(myFileStream); myFileStream.Close(); return myProperty; } catch (Exception ex) { return new ConfigProperties(); } }
public ConfigEventArgs(ConfigProperties data) { Data = data; }
public QuickFetch(Globals globals, ConfigProperties properties, RemoteOptions remoteOptions) : base(globals, properties, remoteOptions, null) { _properties = properties; }
public QuickFetch(Globals globals, ConfigProperties properties, TextWriter stdout, RemoteOptions remoteOptions, AuthorsFile authors) : base(globals, properties, stdout, remoteOptions, authors, null) { }