public MessagingContext GetContext (string host) { MessagingContext context = pool.Dequeue (); if (context == null) { context = new MessagingContext (messageFactory, host, createConnectionDelegate); context.Pool = this; } context.Host = host; return context; }
public MessagingContext GetContext(string host) { MessagingContext context = pool.Dequeue(); if (context == null) { context = new MessagingContext(messageFactory, host, createConnectionDelegate); context.Pool = this; } context.Host = host; return(context); }
public void ReturnContext(MessagingContext context) { pool.Enqueue(context); }
public void ReturnContext (MessagingContext context) { pool.Enqueue (context); }