Exemplo n.º 1
0
 /// <summary>
 /// Processes WebDAV request.
 /// </summary>
 public async Task Invoke(HttpContext context, ContextCoreAsync <IHierarchyItemAsync> davContext, IOptions <DavContextConfig> config, ILogger logger)
 {
     if (context.Request.Method == "PUT")
     {
         // To enable file upload > 2Gb in case you are running .NET Core server in IIS:
         // 1. Unlock RequestFilteringModule on server level in IIS.
         // 2. Remove RequestFilteringModule on site level. Uncomment code in web.config to remove the module.
         // 3. Set MaxRequestBodySize = null.
         context.Features.Get <IHttpMaxRequestBodySizeFeature>().MaxRequestBodySize = null;
     }
     await engine.RunAsync(davContext);
 }
 /// <summary>
 /// Processes WebDAV request.
 /// </summary>
 public async Task Invoke(HttpContext context, DavContextCoreBaseAsync davContext, IOptions <DavContextOptions> tmp, ILogger logger)
 {
     await engine.RunAsync(davContext);
 }