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); }
protected override void OnUnregisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider) { handlerManager.RemoveXmppHandler(messageAnnounceHandler); }
protected override void OnUnregisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider) { base.OnUnregisterCore(handlerManager, serviceManager, serviceProvider); context.SessionManager.SessionUnavailable -= SessionManager_SessionUnavailable; }
protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider provider) { context = provider; this.handlerManager = handlerManager; LoadRooms(); }
protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider) { base.OnRegisterCore(handlerManager, serviceManager, serviceProvider); LoadRoomSettings(); }
public void OnRegister(IServiceProvider serviceProvider) { serviceManager = (XmppServiceManager)serviceProvider.GetService(typeof(XmppServiceManager)); handlerManager = (XmppHandlerManager)serviceProvider.GetService(typeof(XmppHandlerManager)); }