示例#1
0
 /// <summary>
 /// Invoked after all extensions have been loaded.
 /// </summary>
 public override void Initialize()
 {
     ecapa          = im.GetExtension <EntityCapabilities>();
     siFileTransfer = im.GetExtension <SIFileTransfer>();
     sdisco         = im.GetExtension <ServiceDiscovery>();
     serverIpCheck  = im.GetExtension <ServerIpCheck>();
 }
示例#2
0
        /// <summary>
        /// Initializes the various XMPP extension modules.
        /// </summary>
        private void LoadExtensions()
        {
            version = im.LoadExtension<SoftwareVersion>();
            sdisco = im.LoadExtension<ServiceDiscovery>();
            ecapa = im.LoadExtension<EntityCapabilities>();
            ping = im.LoadExtension<Ping>();
            attention = im.LoadExtension<Attention>();
            time = im.LoadExtension<EntityTime>();
            block = im.LoadExtension<BlockingCommand>();
            pep = im.LoadExtension<Pep>();
            userTune = im.LoadExtension<UserTune>();
#if WINDOWSPLATFORM
            userAvatar = im.LoadExtension<UserAvatar>();
#endif
            userMood = im.LoadExtension<UserMood>();
            dataForms = im.LoadExtension<DataForms>();
            featureNegotiation = im.LoadExtension<FeatureNegotiation>();
            streamInitiation = im.LoadExtension<StreamInitiation>();
            siFileTransfer = im.LoadExtension<SIFileTransfer>();
            inBandBytestreams = im.LoadExtension<InBandBytestreams>();
            userActivity = im.LoadExtension<UserActivity>();
            socks5Bytestreams = im.LoadExtension<Socks5Bytestreams>();
            FileTransferSettings = new FileTransferSettings(socks5Bytestreams,
                siFileTransfer);
            serverIpCheck = im.LoadExtension<ServerIpCheck>();
            messageCarbons = im.LoadExtension<MessageCarbons>();
            inBandRegistration = im.LoadExtension<InBandRegistration>();
            chatStateNotifications = im.LoadExtension<ChatStateNotifications>();
            bitsOfBinary = im.LoadExtension<BitsOfBinary>();
            vcardAvatars = im.LoadExtension<VCardAvatars>();
            cusiqextension = im.LoadExtension<CustomIqExtension>();
            messageArchiving = im.LoadExtension<MessageArchiving>();
            messageArchiveManagement = im.LoadExtension<MessageArchiveManagement>();
            multiUserChat = im.LoadExtension<MultiUserChat>();
            serviceAdministration = im.LoadExtension<ServiceAdministration>();
            adHocCommands = im.LoadExtension<AdHocCommands>();
            directMucInvitations = im.LoadExtension<DirectMucInvitations>();
        }