Show / Hide Table of Contents

Class DefaultMediaTypeProvider

A default format provider.

Inheritance
System.Object
DefaultMediaTypeProvider
Implements
IMediaTypeProvider
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Net.Mime
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultMediaTypeProvider : IMediaTypeProvider

Constructors

| Improve this Doc View Source

DefaultMediaTypeProvider(ICollection<IExportFactory<IMediaType, MediaTypeMetadata>>)

Initializes a new instance of the DefaultMediaTypeProvider class.

Declaration
public DefaultMediaTypeProvider(ICollection<IExportFactory<IMediaType, MediaTypeMetadata>> formatFactories)
Parameters
Type Name Description
System.Collections.Generic.ICollection<IExportFactory<IMediaType, MediaTypeMetadata>> formatFactories

The format factories.

Methods

| Improve this Doc View Source

GetMediaType(String, Boolean)

Gets the media type based on the media type name.

Declaration
public Type GetMediaType(string mediaTypeName, bool throwIfNotFound = true)
Parameters
Type Name Description
System.String mediaTypeName

The media type name.

System.Boolean throwIfNotFound

True to throw if a format is not found (optional).

Returns
Type Description
System.Type

The media type or null.

Implements

IMediaTypeProvider

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX