コード例 #1
0
		public static HttpListenerManagerTable GetOrCreate (object serviceHostKey)
		{
			var m = instances.FirstOrDefault (p => p.ServiceHostKey == serviceHostKey);
			if (m == null) {
				m = new HttpListenerManagerTable (serviceHostKey);
				instances.Add (m);
			}
			return m;
		}
コード例 #2
0
        public static HttpListenerManagerTable GetOrCreate(object serviceHostKey)
        {
            var m = instances.FirstOrDefault(p => p.ServiceHostKey == serviceHostKey);

            if (m == null)
            {
                m = new HttpListenerManagerTable(serviceHostKey);
                instances.Add(m);
            }
            return(m);
        }
コード例 #3
0
        protected HttpListenerManager GetOrCreateListenerManager()
        {
            var table = HttpListenerManagerTable.GetOrCreate(ChannelDispatcher != null ? ChannelDispatcher.Host : null);

            return(table.GetOrCreateManager(Uri, Source));
        }