protected virtual void OnSessionStateChanged(object sender, SyncOrchestratorStateChangedEventArgs args) { EventHandler <SyncOrchestratorStateChangedEventArgs> tmp = SessionStateChanged; if (tmp != null) { tmp(this, args); } }
protected void Orchestrator_StateChanged(object sender, SyncOrchestratorStateChangedEventArgs e) { String mensaje = string.Format( "{0}:{1}\n\r{2}:{3}\n\r", "\tNuevo estado Del Orquestador", e.NewState.ToString(), "\tAnterior estado Del Orquestador", e.OldState.ToString() ); Loguear("orchestrator_StateChanged", mensaje); }
/// <summary> /// Called when [sync session stage process change]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="Microsoft.Synchronization.SyncOrchestratorStateChangedEventArgs"/> instance containing the event data.</param> protected virtual void OnSyncSessionStageProcessChange(object sender, SyncOrchestratorStateChangedEventArgs args) { if (_syncApp.CurrentProcessedSyncType == null) { throw new NullReferenceException("CurrentProcessedSyncType"); } _syncItemForm.CurrentSyncSessionStage = args; string debugStr = string.Format("Session stage changed: {0} -> {1}", args.OldState.ToString(), args.NewState.ToString()); DebugAssistant.Log(DebugSeverity.Debug, debugStr); _syncItemForm.ThrUpdateSyncItemStatus(_syncApp.CurrentProcessedSyncType.Value); }
protected virtual void OnSessionStateChanged(object sender, SyncOrchestratorStateChangedEventArgs args) { EventHandler<SyncOrchestratorStateChangedEventArgs> tmp = SessionStateChanged; if (tmp != null) { tmp(this, args); } }
protected void orchestrator_StateChanged(object sender, SyncOrchestratorStateChangedEventArgs e) { String mensaje = string.Format( "{0}:{1}\n\r{2}:{3}\n\r", "\tNuevo estado Del Orquestador", e.NewState.ToString(), "\tAnterior estado Del Orquestador", e.OldState.ToString() ); this.loguear( "orchestrator_StateChanged", mensaje ); }
/// <summary> /// Called when [sync session stage process change]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="Microsoft.Synchronization.SyncOrchestratorStateChangedEventArgs"/> instance containing the event data.</param> protected virtual void OnSyncSessionStageProcessChange(object sender, SyncOrchestratorStateChangedEventArgs args) { if (_syncApp.CurrentProcessedSyncType == null) { throw new NullReferenceException("CurrentProcessedSyncType"); } _syncItemForm.CurrentSyncSessionStage = args; string debugStr = string.Format("Session stage changed: {0} -> {1}", args.OldState.ToString(), args.NewState.ToString()); DebugAssistant.Log(DebugSeverity.Debug, debugStr); _syncItemForm.ThrUpdateSyncItemStatus(_syncApp.CurrentProcessedSyncType.Value); }