Пример #1
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            keyboards.Dispose();
            commands.Dispose();
            inlineQueryHandler.Dispose();
        }
Пример #2
0
        public void Dispose()
        {
            DisposeVirtual();

            if (commandsCompletedSignal != null)
            {
                commandsCompletedSignal = null;
                rootCommands.Dispose();
                rootCommands = null;
            }
        }
Пример #3
0
        /// <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();
                }
            }
        }
Пример #4
0
 protected override void DisposeVirtual()
 {
     commands.Dispose();
 }
Пример #5
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     _commands?.Dispose();
     _queries?.Dispose();
 }