Пример #1
0
        public AMSEditEntityExecutor(TEntity entity, Action <TEntity> dataAction, AMSOperationType operation)
            : base(operation)
        {
            entity.NullCheck("entity");

            this._Entity     = entity;
            this._DataAction = dataAction;
        }
        public AMSChannelInEventExecutorBase(string eventID, IEnumerable<string> channelIDs, AMSOperationType operationType)
            : base(operationType)
        {
            eventID.CheckStringIsNullOrEmpty("eventID");
            channelIDs.NullCheck("channelIDs");

            this.EventID = eventID;
            this.ChannelIDs = channelIDs;
        }
Пример #3
0
 public AMSOperationContext(AMSOperationType opType, AMSExecutorBase executor)
 {
     this._OperationType = opType;
     this._Executor      = executor;
 }
Пример #4
0
 public AMSDeleteEntityExecutor(TKey key, Action <TKey> dataAction, AMSOperationType operationType)
     : base(operationType)
 {
     this._Key        = key;
     this._DataAction = dataAction;
 }
Пример #5
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="opType"></param>
 protected AMSExecutorBase(AMSOperationType opType)
 {
     this.OperationType = opType;
 }
        public AMSChannelInEventExecutorBase(string eventID, IEnumerable <string> channelIDs, AMSOperationType operationType) : base(operationType)
        {
            eventID.CheckStringIsNullOrEmpty("eventID");
            channelIDs.NullCheck("channelIDs");

            this.EventID    = eventID;
            this.ChannelIDs = channelIDs;
        }
Пример #7
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="opType"></param>
 protected AMSExecutorBase(AMSOperationType opType)
 {
     this.OperationType = opType;
 }