Interface IRegisteredResourceProvider
- Namespace
- Acuit.Pinpoint.ResourceManagement
- Assembly
- Acuit.Pinpoint.ResourceManagement.Abstractions.dll
A resource provider that can be registered in an IResourceProviderRegistry.
public interface IRegisteredResourceProvider : IResourceProvider
- Inherited Members
Methods
CanHandle(Uri)
Determines whether the resource provider can handle a particular URL.
bool CanHandle(Uri url)
Parameters
urlUriThe resource URL.
Returns
- bool
Whether the resource provider can handle the URL.
Examples
The simplest implementation must at least match the scheme in the URL (note that the scheme is case-insensitive):
public bool CanHandle(Uri url)
{
if (url is null)
throw new ArgumentNullException(nameof(url));
return string.Equals(url.Scheme, "com.contoso.custom", StringComparison.OrdinalIgnoreCase);
}
Exceptions
- ArgumentNullException
urlis null.