protected virtual void OnBeforeExecute(SyncEventArgs e) { if (this.BeforeExecute != null) { this.BeforeExecute(this, e); } }
protected virtual void OnAfterExecute(SyncEventArgs e) { if (this.AfterExecute != null) { this.AfterExecute(this, e); } }
public virtual void Execute(string planName, DataProviderBase dataProvider) { SyncSession session = SyncSession.CreateSession(planName, dataProvider); SyncEventArgs e = new SyncEventArgs(session); OnBeforeExecute(e); SCDataOperationLockContext.Current.DoAddLockAction(true, "向权限中心同步", () => InnerExecute(session)); OnAfterExecute(e); }
protected virtual void OnBeforeExecute(SyncEventArgs e) { if (this.BeforeExecute != null) this.BeforeExecute(this, e); }
protected virtual void OnAfterExecute(SyncEventArgs e) { if (this.AfterExecute != null) this.AfterExecute(this, e); }