Exemplo n.º 1
0
 internal MessageExecuteSetting(MessageExecuteSetting executeSetting)
 {
     DataBaseInstance = executeSetting.DataBaseInstance;
     Connection       = executeSetting.Connection;
     IsolationLevel   = executeSetting.IsolationLevel;
     UID = executeSetting.UID;
     //without IsOuter
 }
Exemplo n.º 2
0
        public ISettingCommandComposite Quote(IMessage message, MessageExecuteSetting executeSetting = null)
        {
            if (executeSetting != null)
            {
                message.Setting = new MessageExecuteSetting(executeSetting);
            }
            else if (message.Setting == null)
            {
                message.Setting = message.GetType().FirstOrDefaultAttribute <MessageExecuteSettingAttribute>()
                                  .With(r => new MessageExecuteSetting(r))
                                  .Recovery(new MessageExecuteSetting());
            }

            parts.Add(message);
            return(this);
        }
Exemplo n.º 3
0
 protected bool Equals(MessageExecuteSetting other)
 {
     return(string.Equals(DataBaseInstance, other.DataBaseInstance) &&
            string.Equals(Connection, other.Connection) &&
            IsolationLevel.Equals(other.IsolationLevel));
 }
Exemplo n.º 4
0
 public CommandComposite(IMessage message, MessageExecuteSetting executeSetting = null)
 {
     Quote(message, executeSetting);
 }