Exemple #1
0
        protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
        {
            var jid = new Jid(Jid.ToString());

            jid.Resource = MessageAnnounceHandler.ANNOUNCE;
            handlerManager.AddXmppHandler(jid, messageAnnounceHandler);
        }
 public MucRoomMemberCollection(XmppServiceManager manager)
 {
     if (manager == null)
     {
         throw new ArgumentNullException("manager");
     }
     this.manager = manager;
 }
        public XmppServer()
        {
            StorageManager = new StorageManager();
            userManager    = new UserManager(StorageManager);
            AuthManager    = new AuthManager();

            StreamManager  = new XmppStreamManager();
            SessionManager = new XmppSessionManager();

            gateway = new XmppGateway();
            sender  = new XmppSender(gateway);

            serviceManager = new XmppServiceManager(this);
            HandlerManager = new XmppHandlerManager(StreamManager, gateway, sender, this);
        }
Exemple #4
0
 protected override void OnUnregisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
 {
     handlerManager.RemoveXmppHandler(messageAnnounceHandler);
 }
Exemple #5
0
 protected override void OnUnregisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
 {
     base.OnUnregisterCore(handlerManager, serviceManager, serviceProvider);
     context.SessionManager.SessionUnavailable -= SessionManager_SessionUnavailable;
 }
Exemple #6
0
 protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider provider)
 {
     context = provider;
     this.handlerManager = handlerManager;
     LoadRooms();
 }
Exemple #7
0
		protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
		{
			base.OnRegisterCore(handlerManager, serviceManager, serviceProvider);
			LoadRoomSettings();
		}
 protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider provider)
 {
     context             = provider;
     this.handlerManager = handlerManager;
     LoadRooms();
 }
Exemple #9
0
 public void OnRegister(IServiceProvider serviceProvider)
 {
     serviceManager = (XmppServiceManager)serviceProvider.GetService(typeof(XmppServiceManager));
     handlerManager = (XmppHandlerManager)serviceProvider.GetService(typeof(XmppHandlerManager));
 }
Exemple #10
0
 protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
 {
     base.OnRegisterCore(handlerManager, serviceManager, serviceProvider);
     LoadRoomSettings();
 }
 protected override void OnUnregisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
 {
     handlerManager.RemoveXmppHandler(messageAnnounceHandler);
 }
 protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
 {
     var jid = new Jid(Jid.ToString());
     jid.Resource = MessageAnnounceHandler.ANNOUNCE;
     handlerManager.AddXmppHandler(jid, messageAnnounceHandler);
 }