Esempio n. 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));
        }
Esempio n. 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));
        }