Closed LordJZ closed 5 months ago
The piece of code in question:
public string To(string relativePath) { return _context.Options.PrefixPath + ( #if FEATURE_OWIN _owinContext?.Request.PathBase.Value ?? #endif _context.Request.PathBase + relativePath ); }
With FEATURE_OWIN this compiles to the following:
return _context.Options.PrefixPath + (_owinContext?.Request.PathBase.Value ?? (_context.Request.PathBase + relativePath));
Note how in the Owin case the relativePath value is lost.
relativePath
Not a big deal since the Owin case is deprecated via constructor attribute.
Thanks @LordJZ, definitely makes sense!
The piece of code in question:
With FEATURE_OWIN this compiles to the following:
Note how in the Owin case the
relativePath
value is lost.Not a big deal since the Owin case is deprecated via constructor attribute.