Clone() public method

Creates an identical copy of this config object
public Clone ( ) : RouterOptions
return RouterOptions
Exemplo n.º 1
0
        /// <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);
            }
        }