public RouterOptions Clone() { RouterOptions clone = new RouterOptions() { ProcessId = this.ProcessId }; clone.PortNetworkMappings.AddRange(this.PortNetworkMappings); return clone; }
/// <summary> /// Constructs a new Router instance /// </summary> public Router(RouterOptions options) { this._options = options.Clone(); foreach (var mapping in _options.PortNetworkMappings) { _table.AddLocalRoute(mapping.Value, mapping.Key); } }