public static IIntermediarySocket AsIntermediary(this EasyZMqConfigurer configurer, string backendAddress) { var frontendAddressBinder = configurer.AddressBinder; var backendAddressBinder = new BindAddressBinder(new Uri(backendAddress)); return(CreateIntermediarySocket(frontendAddressBinder, backendAddressBinder)); }
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)); }