/// <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; }
/// <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); }