/// <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)); }
/// <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 }); }
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); }
/// <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)); }