コード例 #1
0
        /// <summary>
        /// Register shared config memory region.
        /// </summary>
        /// <param name="msg"></param>
        private static void RegisterSharedConfigMemoryRegionRequestMessageCallback(MlosProxyInternal.RegisterSharedConfigMemoryRegionRequestMessage msg)
        {
            // Store shared config memory region.
            //
            SharedMemoryMapView sharedConfigMemoryMapView = MemoryRegions[msg.MemoryRegionId];

            SharedConfigManager.SetMemoryRegion(new MlosProxyInternal.SharedConfigMemoryRegion()
            {
                Buffer = sharedConfigMemoryMapView.Buffer
            });
        }
コード例 #2
0
 /// <summary>
 /// Register shared config memory region.
 /// </summary>
 /// <param name="msg"></param>
 private void RegisterSharedConfigMemoryRegionRequestMessageCallback(MlosProxyInternal.RegisterSharedConfigMemoryRegionRequestMessage msg)
 {
     RegisterSharedConfigMemoryRegion(msg.MemoryRegionId);
 }