コード例 #1
0
        public void OnRegister(IServiceProvider serviceProvider)
        {
            offlineStore = ((StorageManager)serviceProvider.GetService(typeof(StorageManager))).OfflineStorage;
            rosterStore = ((StorageManager)serviceProvider.GetService(typeof(StorageManager))).RosterStorage;
            sender = (IXmppSender)serviceProvider.GetService(typeof(IXmppSender));
            sessionManager = (XmppSessionManager)serviceProvider.GetService(typeof(XmppSessionManager));
            handlerManager = (XmppHandlerManager)serviceProvider.GetService(typeof(XmppHandlerManager));

            sessionManager.SessionAvailable += SessionAvailable;
            sessionManager.SessionUnavailable += SessionUnavailable;
        }
コード例 #2
0
ファイル: XmppServer.cs プロジェクト: ridhouan/teamlab.v6.5
		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);
		}
コード例 #3
0
		public void OnRegister(IServiceProvider serviceProvider)
		{
			serviceManager = (XmppServiceManager)serviceProvider.GetService(typeof(XmppServiceManager));
			handlerManager = (XmppHandlerManager)serviceProvider.GetService(typeof(XmppHandlerManager));
		}
コード例 #4
0
ファイル: MucService.cs プロジェクト: vipwan/CommunityServer
 protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider provider)
 {
     context = provider;
     this.handlerManager = handlerManager;
     LoadRooms();
 }
コード例 #5
0
 protected override void OnUnregisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
 {
     handlerManager.RemoveXmppHandler(messageAnnounceHandler);
 }
コード例 #6
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);
 }
コード例 #7
0
        protected virtual void OnUnregisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
        {

        }
コード例 #8
0
ファイル: MucRoom.cs プロジェクト: vipwan/CommunityServer
 protected override void OnRegisterCore(XmppHandlerManager handlerManager, XmppServiceManager serviceManager, IServiceProvider serviceProvider)
 {
     base.OnRegisterCore(handlerManager, serviceManager, serviceProvider);
     LoadRoomSettings();
 }