protected override void Dispose(bool disposing) { base.Dispose(disposing); keyboards.Dispose(); commands.Dispose(); inlineQueryHandler.Dispose(); }
public void Dispose() { DisposeVirtual(); if (commandsCompletedSignal != null) { commandsCompletedSignal = null; rootCommands.Dispose(); rootCommands = null; } }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged /// resources. /// </summary> /// <param name="disposing">True to release both managed and unmanaged resources; false to /// release only unmanaged resources.</param> /// <remarks>Asim Naeem, 7/20/2017.</remarks> protected virtual void Dispose(bool disposing) { if (disposing) { // free managed resources if (ICommands != null) { ICommands.Dispose(); } } }
protected override void DisposeVirtual() { commands.Dispose(); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { _commands?.Dispose(); _queries?.Dispose(); }