コード例 #1
0
ファイル: MessagingContextPool.cs プロジェクト: nlhepler/mono
		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;
		}
コード例 #2
0
        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);
        }
コード例 #3
0
 public void ReturnContext(MessagingContext context)
 {
     pool.Enqueue(context);
 }
コード例 #4
0
ファイル: MessagingContextPool.cs プロジェクト: nlhepler/mono
		public void ReturnContext (MessagingContext context)
		{
			pool.Enqueue (context);
		}