Ejemplo n.º 1
0
        /// <summary>
        /// Setups the shared memory system.
        /// </summary>
        /// <param name="Config">The configuration.</param>
        public void SetupSharedMemory(SharedMemoryConfig Config)
        {
            if (Config == null)
            {
                throw new ArgumentNullException(nameof(Config));
            }

            this.Config = Config;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DriverIoShared"/> class.
        /// </summary>
        /// <param name="Config">The configuration.</param>
        public DriverIoShared(SharedMemoryConfig Config)
        {
            if (Config == null)
            {
                throw new ArgumentNullException(nameof(Config));
            }

            this.Lock = new object();
            this.SetupSharedMemory(Config);
        }