Example #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();
 }
Example #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();
            }
        }
Example #3
0
 public RoomManager(Connection connection, CallBackContainer callBackContainer)
     : this(connection)
 {
     _callBackContainer = callBackContainer;
 }