Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.1.0)
E69639-01
A resource implementation that should be used for accces to resources within ASP.NET application.

Namespace: Tangosol.IO.Resources
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.1000 (12.2.1.1000)

Syntax

C#
public class WebResource : FileResource

Remarks

Uses the System.Web.HttpContext.Current.Server.MapPath method to resolve the file name for a given resource.

Note that the WebResource is resolved in the context of the HTTP request it is constructed in, which means that the relative paths will be resolved relative to the requested web page.

If you want the resource to be resolved relative to the web application root, make sure that you prefix resource name with a tilde (~) character:

CopyC#
web://~/my-resource.txt

Inheritance Hierarchy

See Also