private void BtnClicked(object sender, RoutedEventArgs e) { var proxy = new DemoClient(); proxy.DoSomething(); proxy.Close(); }
public override void Close() { _commandManager.Close(); _configurationManager.Close(); _connectionManager.Close(); _credentialHolderManager.Close(); _eventManager.Close(); _stateManager.Close(); _alarmSynchronizer.Close(); _client.Close(); ACUtil.Log(false, "DemoACPlugin.DemoAccessControlSystem", "Access control system unloaded."); }