Пример #1
0
        public override ConditionalProducer ShouldReceived(IReceiverConditional conditionType = null)
        {
            var newConditional = new ConditionalProducer(conditionType);

            receivers.Add(newConditional);
            return(newConditional);
        }
        public override ConditionalProducer ShouldReceived(IReceiverConditional conditionType = null)
        {
            RemoteConditionalProducer conditionaProcedure = new RemoteConditionalProducer(SoapRemoteServerManagerClient, RemoteServerId, conditionType);

            receivers.Add(conditionaProcedure);
            return(conditionaProcedure);
        }
 public static int GetConditionalTypeCode(IReceiverConditional conditionalType)
 {
     if (conditionalType is XMLWithIgnoreNodeReceiverConditional)
     {
         return(2);
     }
     if (conditionalType is XMLReceiverConditional)
     {
         return(1);
     }
     return(0);
 }
Пример #4
0
 public abstract ConditionalProducer ShouldReceived(IReceiverConditional conditionType = null);
 public RemoteConditionalProducer(ServerManager soapRemoteServerManagerClient, long remoteServerId, IReceiverConditional conditionalType)
 {
     this.soapRemoteServerManagerClient = soapRemoteServerManagerClient;
     this.remoteServerId = remoteServerId;
     remoteConditionalId = soapRemoteServerManagerClient.CreateReceivedConditional(remoteServerId, GetConditionalTypeCode(conditionalType));
 }
 public ConditionalProducer(IReceiverConditional conditionalType = null)
 {
     _conditional = conditionalType ?? new ReceiverConditional();
 }