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