Comments (1)
You probably use a custom IStoreItem
implementation, so I would inject IHttpContextAccessor
into the constructor of your implementation, store it in a local field (i.e. private readonly IHttpContextAccessor _httpContextAccessor
) and use that field from your GetReadableStreamAsync
implementation. The IHttpContextAccessor
is available for each request. It's also used this way to inject it into the propery manager implementation.
PS: This method only works for the latest beta that uses the .NET Core dependency injection. For the .NET Framework you want to use HttpContext.Current
instead to access the current request's HTTP context (not tested).
from nwebdav.
Related Issues (20)
- Is it possible for multiple users to edit the same file and save using this webdav library? HOT 5
- how send web api token (jwt) ? HOT 1
- DELETE issue HOT 5
- Content-Type header not set on Asp .Net.
- [WPS Office] Download fails HOT 3
- Word does not open .docx files
- Running HttpListener under mono does not recognise Basic Authentication HOT 1
- Problem with move request for non-existing source HOT 6
- [COPY] No error generated when destination file name is too long. HOT 4
- False upload progress percentage HOT 1
- need documents HOT 1
- Use DI instead of static HOT 3
- Upgrade .Net5 & Further Improvements HOT 4
- Async LockManager HOT 4
- https://datatracker.ietf.org/doc/html/rfc4918 instead of https://datatracker.ietf.org/doc/html/rfc2518 HOT 3
- Project vs nuget license, why there is difference HOT 3
- State of the project HOT 2
- Maximum size of attributes HOT 4
- Is this use of System.Xml.Linq.XDocument.Load() secure? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nwebdav.