Exemplo n.º 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>();
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Invoked after all extensions have been loaded.
 /// </summary>
 public override void Initialize()
 {
     ecapa = im.GetExtension <EntityCapabilities>();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Invoked after all extensions have been loaded.
 /// </summary>
 public override void Initialize()
 {
     ecapa = im.GetExtension <EntityCapabilities>();
     bob   = im.GetExtension <BitsOfBinary>();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Invoked after all extensions have been loaded.
 /// </summary>
 public override void Initialize()
 {
     siFileTransfer = im.GetExtension <SIFileTransfer>();
     ecapa          = im.GetExtension <EntityCapabilities>();
 }