ContentProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A default implementation of IContentProvider which gets the content from embedded resources within a provided set of assemblies.
public class ContentProvider : Microsoft.WindowsAzure.Mobile.Service.Content.IContentProvider
type ContentProvider = class
interface IContentProvider
Public Class ContentProvider
Implements IContentProvider
- Inheritance
-
ContentProvider
- Implements
Constructors
ContentProvider() |
Creates a new instance of the ContentProvider looking for embedded resources in the assembly in which this class is defined. |
ContentProvider(IEnumerable<EmbeddedResourcesInfo>) |
Creates a new instance of the ContentProvider with a given set of assemblies to look for embedded resources in. The assemblies are searched in the order provided which means that if the same embedded resource exists in multiple assemblies then the first one found will be returned. |
Methods
GetContentStreamAsync(String) |
Get a stream to the content for the given path. If the path is invalid or nothing is found then throw an ArgumentException exception. |
GetFullyQualifiedEmbeddedResourcePath(String, String) |
Create a fully qualified embedded resource path by first converting a path of the form "path1/path2/path3" to one of "path1.path2.path3" following convention embedded resource naming, and then fully qualify it with the default CLR name space so that it becomes "prefix.path1.path2.path3". |
Applies to
Azure SDK for .NET