示例#1
0
        public override ConditionalProducer ShouldRecived(IReciverConditional conditionType = null)
        {
            var newConditional = new ConditionalProducer(conditionType);

            recivers.Add(newConditional);
            return(newConditional);
        }
示例#2
0
        public override ConditionalProducer ShouldRecived(IReciverConditional conditionType = null)
        {
            RemoteConditionalProducer conditionaProcedure = new RemoteConditionalProducer(SoapRemoteServerManagerClient, RemoteServerId, conditionType);

            recivers.Add(conditionaProcedure);
            return(conditionaProcedure);
        }
示例#3
0
 public static int GetConditionalTypeCode(IReciverConditional conditionalType)
 {
     if (conditionalType is XMLWithIgnoreNodeRreciverConditional)
     {
         return(2);
     }
     if (conditionalType is XMLReciverConditional)
     {
         return(1);
     }
     return(0);
 }
示例#4
0
 public ConditionalProducer(IReciverConditional conditionalType = null)
 {
     _conditional = conditionalType ?? new ReciverConditional();
 }
示例#5
0
 public abstract ConditionalProducer ShouldRecived(IReciverConditional conditionType = null);
示例#6
0
 public RemoteConditionalProducer(ServerManager soapRemoteServerManagerClient, long remoteServerId, IReciverConditional conditionalType)
 {
     this.soapRemoteServerManagerClient = soapRemoteServerManagerClient;
     this.remoteServerId = remoteServerId;
     remoteConditionalId = soapRemoteServerManagerClient.CreateRecivedConditional(remoteServerId, GetConditionalTypeCode(conditionalType));
 }