Esempio n. 1
0
 public RoomManager(Connection connection)
 {
     _logger = ObjectFactory.GetInstance<ILogger<RoomManager>>();
     _connection = connection;
     _mucManager  = new MucManager (_connection);
     _messageGrabber = new MessageGrabber(connection);
     _presenceGrabber = new PresenceGrabber(connection);
     _callBackContainer = new CallBackContainer();
 }
Esempio n. 2
0
        public XMPPControl()
        {
            InitializeComponent();

            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                _xmppConnection = new Connection(new XMPPConnectionSettingsProvider().GetConnectionSettings());
                _xmppRoomManager = new RoomManager(_xmppConnection, new CallBackContainer(){MessageCallBack = MessageCallBack, PresenceCallBack = PresenceCallBack});
                SetupEvents();
            }
        }
Esempio n. 3
0
 public RoomManager(Connection connection, CallBackContainer callBackContainer)
     : this(connection)
 {
     _callBackContainer = callBackContainer;
 }