Class that provides frames serialization and deserialization logic.
Inheritance: IDisposable
Esempio n. 1
0
        internal Http2Protocol(SecureSocket socket, IStreamStore streamsStore, ProtocolOptions options)
        {
            this.options      = options;
            this.streamsStore = streamsStore;
            this.serializer   = new FrameSerializer(this.options);
            this.builder      = new FrameBuilder();

            this.socket   = socket;
            this.isServer = true;
            this.handshakeFinishedEventRaised = new ManualResetEvent(false);
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Http2Protocol"/> class.
        /// </summary>
        /// <param name="uri">The URI.</param>
        /// <param name="streamsStore">The streams store.</param>
        /// <param name="options">Protocol options</param>
        internal Http2Protocol(Uri uri, IStreamStore streamsStore, ProtocolOptions options)
        {
            this.options      = options;
            this.streamsStore = streamsStore;
            this.serializer   = new FrameSerializer(this.options);
            this.builder      = new FrameBuilder();

            this.uri      = uri;
            this.isServer = false;
            this.handshakeFinishedEventRaised = new ManualResetEvent(false);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Http2Protocol"/> class.
        /// </summary>
        /// <param name="uri">The URI.</param>
        /// <param name="streamsStore">The streams store.</param>
        /// <param name="options">Protocol options</param>
        internal Http2Protocol(Uri uri, IStreamStore streamsStore, ProtocolOptions options)
        {
            this.options = options;
            this.streamsStore = streamsStore;
            this.serializer = new FrameSerializer(this.options);
            this.builder = new FrameBuilder();

            this.uri = uri;
        }
        internal Http2Protocol(SecureSocket socket, IStreamStore streamsStore, ProtocolOptions options)
        {
            this.options = options;
            this.streamsStore = streamsStore;
            this.serializer = new FrameSerializer(this.options);
            this.builder = new FrameBuilder();

            this.socket = socket;
            this.isServer = true;
            this.handshakeFinishedEventRaised = new ManualResetEvent(false);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Http2Protocol"/> class.
        /// </summary>
        /// <param name="uri">The URI.</param>
        /// <param name="streamsStore">The streams store.</param>
        /// <param name="options">Protocol options</param>
        internal Http2Protocol(Uri uri, IStreamStore streamsStore, ProtocolOptions options)
        {
            this.options = options;
            this.streamsStore = streamsStore;
            this.serializer = new FrameSerializer(this.options);
            this.builder = new FrameBuilder();

            this.uri = uri;
            this.isServer = false;
            this.handshakeFinishedEventRaised = new ManualResetEvent(false);
        }