public void Remove(CommandRegistration registration)
 {
     if (this.commands.TryGetValue(registration.Command, out var existingRegistration))
     {
         if (existingRegistration == registration)
         {
             this.commands.Remove(registration.Command);
         }
     }
 }
Example #2
0
 public void RemovePrivateMessageHandler(CommandRegistration registration) => this.commandRegistrationManager.Remove(registration);
 public void Add(CommandRegistration registration)
 {
     this.commands.Add(registration.Command, registration);
 }
Example #4
0
 public void AddPrivateMessageHandler(CommandRegistration registration) => this.commandRegistrationManager.Add(registration);