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