Esempio n. 1
0
        public static void Snippet6()
        {
            MsmqIntegrationBindingElement msmqBindingElement = new MsmqIntegrationBindingElement();
            CustomBinding binding = new CustomBinding(msmqBindingElement);

            BindingParameterCollection bindingParameterCollection = new BindingParameterCollection();

            BindingContext bindingContext             = new BindingContext(binding, bindingParameterCollection);
            IChannelListener <IInputChannel> listener = msmqBindingElement.BuildChannelListener <IInputChannel>(bindingContext);

            listener.Open();
            IInputChannel channel = listener.AcceptChannel();

            channel.Open();
        }