Пример #1
0
 public override void Configure(IDictionary <string, string> properties)
 {
     DiscoInfo.AddIdentity(new DiscoIdentity("server", Name, "im"));
     lock (Handlers)
     {
         Handlers.Add(new ClientNamespaceHandler());
         Handlers.Add(new StartTlsHandler());
         Handlers.Add(new AuthHandler());
         Handlers.Add(new AuthTMTokenHandler());
         Handlers.Add(new BindSessionHandler());
         Handlers.Add(new RosterHandler());
         Handlers.Add(new VCardHandler());
         Handlers.Add(new VerTimePingHandler());
         Handlers.Add(new PrivateHandler());
         Handlers.Add(new PresenceHandler());
         Handlers.Add(new MessageHandler());
         Handlers.Add(new MessageArchiveHandler());
         Handlers.Add(new LastHandler());
         Handlers.Add(new RegisterHandler());
         Handlers.Add(new TransferHandler());
         Handlers.Add(new CommandHandler());
         Handlers.Add(new OfflineProvider(Jid));
         Handlers.Add(new DiscoHandler(Jid));
     }
     messageAnnounceHandler = new MessageAnnounceHandler();
 }
Пример #2
0
 public override void Configure(IDictionary<string, string> properties)
 {
     DiscoInfo.AddIdentity(new DiscoIdentity("server", Name, "im"));
     lock (Handlers)
     {
         Handlers.Add(new ClientNamespaceHandler());
         Handlers.Add(new AuthHandler());
         Handlers.Add(new AuthTMTokenHandler());
         Handlers.Add(new BindSessionHandler());
         Handlers.Add(new RosterHandler());
         Handlers.Add(new VCardHandler());
         Handlers.Add(new VerTimePingHandler());
         Handlers.Add(new PrivateHandler());
         Handlers.Add(new PresenceHandler());
         Handlers.Add(new MessageHandler());
         Handlers.Add(new MessageArchiveHandler());
         Handlers.Add(new LastHandler());
         Handlers.Add(new RegisterHandler());
         Handlers.Add(new TransferHandler());
         Handlers.Add(new CommandHandler());
         Handlers.Add(new OfflineProvider(Jid));
         Handlers.Add(new DiscoHandler(Jid));
     }
     messageAnnounceHandler = new MessageAnnounceHandler();
 }