Interface IResourceProvider
- Namespace
- Acuit.Pinpoint.ResourceManagement
- Assembly
- Acuit.Pinpoint.ResourceManagement.Abstractions.dll
A resource provider service.
public interface IResourceProvider
Remarks
Implementations should normally derive from ResourceProvider (or a class derived from ResourceProvider) to avoid having to implement common reference-tracking logic.
Methods
CreateResourceReference(Uri)
Creates a reference to a resource.
IResourceReference CreateResourceReference(Uri url)
Parameters
url
UriThe resource URL.
Returns
- IResourceReference
A IResourceReference that can be used to access the resource and that should be disposed when the resource reference is no longer needed.
Exceptions
- ArgumentNullException
url
is null.- InvalidOperationException
url
cannot be resolved to a known resource location.