public RouterConnectionSettings GetOrCreate(string routerAddress, bool enableAutoSubscribe, bool enableAutoPublish) { if (!collection.TryGetValue(routerAddress, out var value)) { value = new RouterConnectionSettings(routerAddress, enableAutoSubscribe, enableAutoPublish); collection[routerAddress] = value; } return(value); }
public RoutingInfoSubscriber(RouterConnectionSettings routerConnectionSettings) { _routerConnectionSettings = routerConnectionSettings; }