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; }
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); }
protected HttpListenerManager GetOrCreateListenerManager() { var table = HttpListenerManagerTable.GetOrCreate(ChannelDispatcher != null ? ChannelDispatcher.Host : null); return(table.GetOrCreateManager(Uri, Source)); }