public OwinHostCache(HttpHostSettings settings, ITaskSupervisor supervisor) { _settings = settings; _cacheTaskScope = supervisor.CreateScope($"{TypeMetadataCache<OwinHostCache>.ShortName} - {settings.ToDebugString()}", CloseScope); }
public OwinHostScope(ITaskScope scope, HttpHostSettings settings) { _owinHostContext = new TaskCompletionSource <HttpOwinHostContext>(); _taskScope = scope.CreateScope($"{TypeMetadataCache<OwinHostScope>.ShortName} - {settings.ToDebugString()}", CloseContext); }
public OwinHostScope(ITaskScope scope, HttpHostSettings settings) { _owinHostContext = new TaskCompletionSource<HttpOwinHostContext>(); _taskScope = scope.CreateScope($"{TypeMetadataCache<OwinHostScope>.ShortName} - {settings.ToDebugString()}", CloseContext); }
public HttpOwinHostContext(HttpHostSettings settings, ITaskSupervisor supervisor) : this(settings, supervisor.CreateParticipant($"{TypeMetadataCache<HttpOwinHostContext>.ShortName} - {settings.ToDebugString()}")) { }