Esempio n. 1
0
 protected virtual void OnBeforeExecute(SyncEventArgs e)
 {
     if (this.BeforeExecute != null)
     {
         this.BeforeExecute(this, e);
     }
 }
Esempio n. 2
0
 protected virtual void OnAfterExecute(SyncEventArgs e)
 {
     if (this.AfterExecute != null)
     {
         this.AfterExecute(this, e);
     }
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 protected virtual void OnBeforeExecute(SyncEventArgs e)
 {
     if (this.BeforeExecute != null)
         this.BeforeExecute(this, e);
 }
Esempio n. 6
0
 protected virtual void OnAfterExecute(SyncEventArgs e)
 {
     if (this.AfterExecute != null)
         this.AfterExecute(this, e);
 }