Пример #1
0
        /// <summary>
        /// <see cref="IDisposable.Dispose"/>
        /// </summary>
        public void Dispose()
        {
            HttpxChunks.UnregisterChunkReceiver(this.client);

            this.client.UnregisterIqSetHandler("req", HttpxClient.Namespace, this.ReqReceived, false);
            this.client.UnregisterIqGetHandler("req", HttpxClient.Namespace, this.ReqReceived, false);
            this.client.UnregisterMessageHandler("cancel", HttpxClient.Namespace, this.CancelReceived, false);
        }
Пример #2
0
        /// <summary>
        /// HTTPX client.
        /// </summary>
        /// <param name="Client">XMPP Client.</param>
        /// <param name="E2e">End-to-end encryption interface.</param>
        /// <param name="MaxChunkSize">Max Chunk Size to use.</param>
        public HttpxClient(XmppClient Client, IEndToEndEncryption E2e, int MaxChunkSize)
            : base(Client)
        {
            this.e2e          = E2e;
            this.maxChunkSize = MaxChunkSize;

            HttpxChunks.RegisterChunkReceiver(this.client);
        }
Пример #3
0
        /// <summary>
        /// HTTPX client.
        /// </summary>
        /// <param name="Client">XMPP Client.</param>
        /// <param name="MaxChunkSize">Max Chunk Size to use.</param>
        public HttpxClient(XmppClient Client, int MaxChunkSize)
            : base(Client)
        {
            this.e2e          = null;
            this.maxChunkSize = MaxChunkSize;

            HttpxChunks.RegisterChunkReceiver(this.client);
        }
Пример #4
0
        /// <summary>
        /// HTTPX server.
        /// </summary>
        /// <param name="Client">XMPP Client.</param>
        /// <param name="Server">HTTP Server.</param>
        /// <param name="MaxChunkSize">Max Chunk Size to use.</param>
        public HttpxServer(XmppClient Client, HttpServer Server, int MaxChunkSize)
        {
            this.client       = Client;
            this.server       = Server;
            this.maxChunkSize = MaxChunkSize;

            HttpxChunks.RegisterChunkReceiver(this.client);

            this.client.RegisterIqSetHandler("req", HttpxClient.Namespace, this.ReqReceived, false);
            this.client.RegisterIqGetHandler("req", HttpxClient.Namespace, this.ReqReceived, false);
            this.client.RegisterMessageHandler("cancel", HttpxClient.Namespace, this.CancelReceived, false);
        }
Пример #5
0
        /// <summary>
        /// <see cref="IDisposable.Dispose"/>
        /// </summary>
        public override void Dispose()
        {
            base.Dispose();

            HttpxChunks.UnregisterChunkReceiver(this.client);
        }
Пример #6
0
 /// <summary>
 /// <see cref="IDisposable.Dispose"/>
 /// </summary>
 public void Dispose()
 {
     HttpxChunks.UnregisterChunkReceiver(this.client);
 }