コード例 #1
0
 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");
     }
 }
コード例 #2
0
        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);
            }
        }