C# Class AspComet.Samples.Chat.BadLanguageBlocker

Blocks bad language from being sent to a channel, demonstrating use of the publishing event and shows how to manually send messages to clients or channels
Afficher le fichier Open project: nmosafi/aspComet

Méthodes publiques

Méthode Description
BadLanguageBlocker ( IClientRepository clientRepository ) : System.Collections.Generic
CheckMessage ( PublishingEvent ev ) : void

Private Methods

Méthode Description
InformChannelOfBadLanguage ( Message incomingMessage, IClient sender ) : void
SendBadLanguageWarningToSender ( Message incomingMessage, IClient sender ) : void

Method Details

BadLanguageBlocker() public méthode

public BadLanguageBlocker ( IClientRepository clientRepository ) : System.Collections.Generic
clientRepository IClientRepository
Résultat System.Collections.Generic

CheckMessage() public méthode

public CheckMessage ( PublishingEvent ev ) : void
ev AspComet.Eventing.PublishingEvent
Résultat void