public void Setup() { IMessagingSystemFactory aMessagingSystem = new NamedPipeMessagingSystemFactory(); string aChannelId = "net.pipe://127.0.0.1/Channel1/"; Setup(aMessagingSystem, aChannelId); }
public void Setup() { //EneterTrace.DetailLevel = EneterTrace.EDetailLevel.Debug; //EneterTrace.TraceLog = new StreamWriter("d:/tracefile.txt"); MessagingSystemFactory = new NamedPipeMessagingSystemFactory(10, 10000); ChannelId = "net.pipe://127.0.0.1/bbb"; }
public void Setup() { //EneterTrace.DetailLevel = EneterTrace.EDetailLevel.Debug; //EneterTrace.TraceLog = new StreamWriter("d:/tracefile.txt"); IMessagingSystemFactory aMessagingSystem = new NamedPipeMessagingSystemFactory(2, 10000); // Generate random number for the port. string aChannelId = "pipe.net://127.0.0.1/Service1"; ISerializer aSerializer = new BinarySerializer(); Setup(aMessagingSystem, aChannelId, aSerializer); }
/// <summary> /// The configure receiver. /// </summary> private void ConfigureReceiver() { // Create reliable message receiver. var messagesFactory = new ReliableTypedMessagesFactory(); _messageSender = messagesFactory.CreateReliableDuplexTypedMessageSender <bool?, NotificationMessage>(); _messageSender.MessageDelivered += OnMessageDelivered; _messageSender.MessageNotDelivered += OnMessageNotDelivered; _messageSender.ConnectionClosed += OnConnectionClosed; // Create Named Pipe based messaging to communicate with clients. IMessagingSystemFactory messageFactory = new NamedPipeMessagingSystemFactory(); _channel = messageFactory.CreateDuplexOutputChannel(Constants.ChannelId); }
/// <summary> /// The configure broker client. /// </summary> private void ConfigureReceiver() { // Create reliable message receiver. var receiverFactory = new ReliableTypedMessagesFactory(); _receiver = receiverFactory.CreateReliableDuplexTypedMessageReceiver<bool?, NotificationMessage>(); // Create the Shared Memory messaging for the communication with the publisher. // Note: For the interprocess communication you can use: Tcp, NamedPipes and Http. IMessagingSystemFactory factory = new NamedPipeMessagingSystemFactory(); // Create duplex output channel for the communication with the publisher. // Note: The duplex output channel can send requests and receive responses. // In our case, the broker client will send requests to subscribe/unsubscribe // and receive notifications as response messages. var channel = factory.CreateDuplexInputChannel(Constants.ChannelId); _receiver.MessageReceived += OnMessageReceived; // Attach the output channel to the broker client _receiver.AttachDuplexInputChannel(channel); }
public void Setup() { ChannelId = "net.pipe://127.0.0.1/Channel1/"; MessagingSystemFactory = new NamedPipeMessagingSystemFactory(5, 500); }