Ejemplo n.º 1
0
 /// <summary>
 /// Creates the input gateway.
 /// </summary>
 /// <typeparam name="TMessage">The type of the message.</typeparam>
 /// <param name="uri">The URI.</param>
 /// <param name="transportType">The supported transports.</param>
 /// <param name="numberOfParallelTasks">The number of parallel tasks.</param>
 /// <param name="maxReijections">The max reijections.</param>
 /// <returns></returns>
 public static AgentInputGateway <TMessage> CreateInputGateway <TMessage>(Uri uri,
                                                                          TransportType transportType,
                                                                          int numberOfParallelTasks, int maxReijections)
     where TMessage : IMessage
 {
     return(CreateInputGateway <TMessage>(EndPointFactory.CreateReceiverEndPoint(uri, transportType, numberOfParallelTasks), maxReijections));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates the input gateway.
 /// </summary>
 /// <param name="uri">The URI.</param>
 /// <param name="transportType">The supported transports.</param>
 /// <param name="numberOfParallelTasks">The number of parallel tasks.</param>
 /// <param name="maxReijections">The max reijections.</param>
 /// <returns></returns>
 public static RouterInputGateway CreateInputGateway(Uri uri, TransportType transportType, int numberOfParallelTasks, int maxReijections)
 {
     return(new RouterInputGateway(EndPointFactory.CreateReceiverEndPoint(uri, transportType, numberOfParallelTasks), maxReijections)
     {
         Logger = LoggerManager.Instance
     });
 }
Ejemplo n.º 3
0
        public void CreateReceiverEndPointFromUriAndTransportTypeMsmq()
        {
            var ep = EndPointFactory.CreateReceiverEndPoint(_uri, _transportType, 100);

            Assert.IsInstanceOf(typeof(IReceiverEndPoint), ep);
            Assert.AreEqual(ep.Uri, _uri);
            Assert.AreEqual(ep.Transport, _transportType);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates the input gateway.
 /// </summary>
 /// <param name="uri">The URI.</param>
 /// <param name="transportType">The supported transports.</param>
 /// <param name="dataContractSerializer">The data contract serializer.</param>
 /// <param name="numberOfParallelTasks">The number of parallel tasks.</param>
 /// <param name="maxReijections">The max reijections.</param>
 /// <returns></returns>
 public static RouterInputGateway CreateInputGateway(Uri uri,
                                                     TransportType transportType,
                                                     IDataContractSerializer dataContractSerializer,
                                                     int numberOfParallelTasks, int maxReijections)
 {
     return(CreateInputGateway(EndPointFactory.CreateReceiverEndPoint(uri, transportType, numberOfParallelTasks),
                               dataContractSerializer,
                               maxReijections));
 }