Example #1
0
        private MessageFactoryContext CreateBuilder()
        {
            var mb = new MessageFactoryContext(this, _factory, new HttpParser());

            mb.RequestCompleted  += OnRequest;
            mb.ResponseCompleted += OnResponse;
            return(mb);
        }
Example #2
0
 /// <summary>
 /// Release a used factory context.
 /// </summary>
 /// <param name="factoryContext"></param>
 internal void Release(MessageFactoryContext factoryContext)
 {
     _builders.Enqueue(factoryContext);
 }