public WebSocketPipeline(RootedObjects root, HttpContext httpContext, Func <AspNetWebSocketContext, Task> userFunc, string subProtocol) { _root = root; _httpContext = httpContext; _userFunc = userFunc; _subProtocol = subProtocol; }
private readonly RootedObjects _rootedObjects; // might be null if this is a dummy token internal ActivityIdToken(RootedObjects rootedObjects, bool isDestroying) { Debug.Assert(ActivityIdHelper.Instance != null); ActivityIdHelper.Instance.SetCurrentThreadActivityId(rootedObjects._requestActivityId, out _originalActivityId); lock (rootedObjects) { rootedObjects._requestActivityIdRefCount++; Debug.Assert(rootedObjects._requestActivityIdRefCount >= 2, "The original ref count should have been 1 or higher, else the activity ID could already have been released."); } _rootedObjects = rootedObjects; _isDestroying = isDestroying; }
public WebSocketPipeline(RootedObjects root, HttpContext httpContext, Func<AspNetWebSocketContext, Task> userFunc, string subProtocol) { _root = root; _httpContext = httpContext; _userFunc = userFunc; _subProtocol = subProtocol; }