/// <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>();
 }
Exemple #2
0
 /// <summary>
 /// Invoked after all extensions have been loaded.
 /// </summary>
 public override void Initialize()
 {
     streamInitiation = im.GetExtension <StreamInitiation>();
     // Register the 'file-transfer' profile.
     streamInitiation.RegisterProfile(
         "http://jabber.org/protocol/si/profile/file-transfer",
         OnStreamInitiationRequest
         );
     ecapa = im.GetExtension <EntityCapabilities>();
     // Sign up for the 'BytesTransferred' and 'TransferAborted' events of each
     // data-stream extension that we support.
     foreach (var type in supportedMethods)
     {
         var ext = im.GetExtension(type);
         if (ext == null || !(ext is IDataStream))
         {
             throw new XmppException("Invalid data-stream type: " + type);
         }
         IDataStream dataStream = ext as IDataStream;
         dataStream.BytesTransferred += OnBytesTransferred;
         dataStream.TransferAborted  += OnTransferAborted;
     }
 }
 /// <summary>
 /// Invoked after all extensions have been loaded.
 /// </summary>
 public override void Initialize()
 {
     ecapa = im.GetExtension <EntityCapabilities>();
 }
Exemple #4
0
 /// <summary>
 /// Invoked after all extensions have been loaded.
 /// </summary>
 public override void Initialize()
 {
     ecapa = im.GetExtension <EntityCapabilities>();
     bob   = im.GetExtension <BitsOfBinary>();
 }
Exemple #5
0
 /// <summary>
 /// Invoked after all extensions have been loaded.
 /// </summary>
 public override void Initialize()
 {
     siFileTransfer = im.GetExtension <SIFileTransfer>();
     ecapa          = im.GetExtension <EntityCapabilities>();
 }