コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 /// <param name="httpContextAccessor">Http context.</param>
 /// <param name="logger">WebDAV Logger instance.</param>
 /// <param name="socketService">Singleton instance of <see cref="WebSocketsService"/>.</param>
 /// <param name="dataCloudStoreService">Singleton instance of <see cref="IDataCloudStoreService"/></param>
 /// <param name="cognitiveSearchService">Singleton instance of <see cref="ICognitiveSearchService"/></param>
 public DavContext(IHttpContextAccessor httpContextAccessor, ILogger logger,
                   WebSocketsService socketService,
                   IDataCloudStoreService dataCloudStoreService,
                   ICognitiveSearchService cognitiveSearchService
                   )
     : base(httpContextAccessor.HttpContext)
 {
     Logger                 = logger;
     this.socketService     = socketService;
     DataLakeStoreService   = dataCloudStoreService;
     CognitiveSearchService = cognitiveSearchService;
 }
 /// <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;
 }