Beispiel #1
0
        public static IIntermediarySocket AsIntermediary(this EasyZMqConfigurer configurer, string backendAddress)
        {
            var frontendAddressBinder = configurer.AddressBinder;
            var backendAddressBinder  = new BindAddressBinder(new Uri(backendAddress));

            return(CreateIntermediarySocket(frontendAddressBinder, backendAddressBinder));
        }
Beispiel #2
0
        public static EasyZMqConfigurer BindTo(string address)
        {
            if (string.IsNullOrEmpty(address))
            {
                throw new ArgumentNullException(nameof(address));
            }

            var uri           = new Uri(address);
            var addressBinder = new BindAddressBinder(uri);

            return(CreateConfigurer(addressBinder));
        }