public NetworkDatabaseOptions Clone() { return new NetworkDatabaseOptions() { ProcessId = this.ProcessId, LoadObjectsEagerly = this.LoadObjectsEagerly, DatabasePath = this.DatabasePath, DescriptorRegistrar = this.DescriptorRegistrar.Clone() }; }
/// <summary> /// Constructs a new network database instance /// </summary> /// <param name="options">The options for the network database</param> public NetworkDatabase(NetworkDatabaseOptions options) { this._options = options.Clone(); this._db = new NetworkDb(this._options.DatabasePath, _options.DescriptorRegistrar); this._observers = new List <DescriptorObserver>(); }