/// <summary>
        /// Creates a process options instance
        /// </summary>
        /// <returns>The process options instance</returns>
        public override IProcessOptions CreateOptions()
        {
            var ret = new NetworkDatabaseOptions()
            {
                ProcessId = this.ProcessId,
                DatabasePath = this.DatabasePath
            };

            ret.DescriptorRegistrar.Register((ushort)ObjectType.Device,
                (vi, di, oi) => new DeviceInfo(vi, di, oi));

            return ret;
        }
Example #2
0
 /// <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>();
 }