Inheritance: MemoryDevice
Example #1
0
 public void Unload(IWorkspace workspace)
 {
     if (this._webDevice != null)
     {
         // unregister the device
         this._system.MemoryController.UnregisterMemoryDevice(this._webDevice);
         this._webDevice = null;
     }
 }
Example #2
0
        public void Load(IWorkspace workspace)
        {
            // grab a reference to the system
            this._system = workspace.RuntimeManager.System;

            // create a new WebDevice (default parameters)
            this._webDevice = new WebDevice();

            // register the device with the controllers
            this._system.MemoryController.RegisterMemoryDevice(this._webDevice);
        }