/// <summary>
 /// Creates the agent input gateway.
 /// </summary>
 /// <typeparam name="TMessage">The type of the message.</typeparam>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="maxReijections">The max reijections.</param>
 /// <returns></returns>
 public static AgentInputGateway <TMessage> CreateInputGateway <TMessage>(IReceiverEndPoint receiverEndPoint, int maxReijections) where TMessage : IMessage
 {
     return(new AgentInputGateway <TMessage>(receiverEndPoint, maxReijections)
     {
         Logger = LoggerManager.Instance
     });
 }
 /// <summary>
 /// Creates the agent input gateway.
 /// </summary>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="maxReijections">The max reijections.</param>
 /// <returns></returns>
 public static RouterInputGateway CreateInputGateway(IReceiverEndPoint receiverEndPoint, int maxReijections)
 {
     return new RouterInputGateway(receiverEndPoint, maxReijections)
                {
                    Logger = LoggerManager.Instance
                };
 }
Exemple #3
0
 /// <summary>
 /// Creates the agent input gateway.
 /// </summary>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="maxReijections">The max reijections.</param>
 /// <returns></returns>
 public static RouterInputGateway CreateInputGateway(IReceiverEndPoint receiverEndPoint, int maxReijections)
 {
     return(new RouterInputGateway(receiverEndPoint, maxReijections)
     {
         Logger = LoggerManager.Instance
     });
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="AbstractInputGateway&lt;TMessage&gt;"/> class.
        /// </summary>
        /// <param name="receiverReceiverEndPoint">The receiver receiver end point.</param>
        /// <param name="dataContractSerializer">The data contract serializer.</param>
        /// <param name="maxReijections">The max reijections.</param>
        protected AbstractInputGateway(IReceiverEndPoint receiverReceiverEndPoint, IDataContractSerializer dataContractSerializer, int maxReijections)
        {
            _receiverReceiverEndPoint = receiverReceiverEndPoint;
            _maxReijections           = maxReijections;
            DataContractSerializer    = dataContractSerializer;

            _receiverReceiverEndPoint.OnReceivedMessage += OnReceiverEndPointHandler;
        }
 /// <summary>
 /// Creates the agent input gateway.
 /// </summary>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="dataContractSerializer">The data contract serializer.</param>
 /// <param name="maxReijections">The max reijections.</param>
 /// <returns></returns>
 public static RouterInputGateway CreateInputGateway(IReceiverEndPoint receiverEndPoint, 
                                                     IDataContractSerializer dataContractSerializer, 
                                                     int maxReijections)
 {
     return new RouterInputGateway(receiverEndPoint, dataContractSerializer, maxReijections)
     {
         Logger = LoggerManager.Instance
     };
 }
Exemple #6
0
 /// <summary>
 /// Creates the agent input gateway.
 /// </summary>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="dataContractSerializer">The data contract serializer.</param>
 /// <param name="maxReijections">The max reijections.</param>
 /// <returns></returns>
 public static RouterInputGateway CreateInputGateway(IReceiverEndPoint receiverEndPoint,
                                                     IDataContractSerializer dataContractSerializer,
                                                     int maxReijections)
 {
     return(new RouterInputGateway(receiverEndPoint, dataContractSerializer, maxReijections)
     {
         Logger = LoggerManager.Instance
     });
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AgentInputGateway&lt;TMessage&gt;"/> class.
 /// </summary>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="dataContractSerializer">The data contract serializer.</param>
 /// <param name="maxReijections">The max reijections.</param>
 internal AgentInputGateway(IReceiverEndPoint receiverEndPoint, IDataContractSerializer dataContractSerializer, int maxReijections)
     : base(receiverEndPoint, dataContractSerializer, maxReijections)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AgentInputGateway&lt;TMessage&gt;"/> class.
 /// </summary>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="maxReijections">The max reijections.</param>
 internal AgentInputGateway(IReceiverEndPoint receiverEndPoint, int maxReijections)
     : base(receiverEndPoint, maxReijections)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AbstractInputGateway&lt;TMessage&gt;"/> class.
 /// </summary>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="maxReijections">The max reijections.</param>
 protected AbstractInputGateway(IReceiverEndPoint receiverEndPoint, int maxReijections)
     : this(receiverEndPoint, new JsonDataContractSerializer(), maxReijections)
 {
     _maxReijections = maxReijections;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RouterInputGateway"/> class.
 /// </summary>
 /// <param name="receiverEndPoint">The receiver end point.</param>
 /// <param name="maxReijections">The max reijections.</param>
 public RouterInputGateway(IReceiverEndPoint receiverEndPoint, int maxReijections)
     : base(receiverEndPoint, maxReijections)
 {
 }