public void Dispose() { if (_messageDeleter != null) { _messageDeleter.Dispose(); _messageDeleter = null; } }
public CommandProcessor(CommandProcessorConfig config) { _commandCharacters = config.CommandCharacters; _opBotUserId = config.OpBotUserId; _names = config.Names; _repository = config.Repository; _adminUsers = config.AdminUsers; _client = config.Client; _opBotChannelId = config.OpBotChannelId; _messageDeleter = new MessageDeleter(); _defaultOperations = new DefaultOperations(); _asyncLock = new AsyncLock(); _alertMembers = new AlertMembers(); _ops = config.Ops; _stopApplication = config.StopApplication; _ops.OperationDeleted += OperationClosed; _ops.OperationUpdated += OperationUpdated; }