protected Reader(string name, long size) { Memory = new SharedMemoryBase <T>(name, size); if (!Memory.Open()) { throw new System.Exception("reader was not opened.check your available memory"); } }
protected Writer(string name, long size) { Memory = new SharedMemoryBase <T>(name, size); if (!Memory.Open()) { throw new System.Exception("writer was not opened.check your available memory"); } else { //add to sharedMemory config var configData = new List <Config>(); configData.Add(new Config(Name, Size)); var configBase = ConfigManagerBase.GetConfig(); configBase.Write(configData); } }