/// <summary> /// Initializes a new instance of the class. /// </summary> /// <param name="httpContextAccessor">Http context.</param> /// <param name="configOptions">WebDAV Context configuration options.</param> /// <param name="socketService">Singleton instance of <see cref="WebSocketsService"/>.</param> public DavContext(IHttpContextAccessor httpContextAccessor, IOptions <DavContextOptions> configOptions , WebSocketsService socketService ) : base(httpContextAccessor.HttpContext) { this.contextOptions = configOptions.Value; this.currentUser = httpContextAccessor.HttpContext.User; this.socketService = socketService; }
/// <summary> /// Initializes new instance of this class. /// </summary> /// <param name="next">Next middleware instance.</param> /// <param name="socketService">Singleton instance of <see cref="WebSocketsService"/>.</param> public WebSocketsMiddleware(RequestDelegate next, WebSocketsService socketService) { this.next = next; this.socketService = socketService; }