public void Unload(IWorkspace workspace) { if (this._webDevice != null) { // unregister the device this._system.MemoryController.UnregisterMemoryDevice(this._webDevice); this._webDevice = null; } }
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); }