Skip to main content

IContentTypes

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IContentTypes : IContentTypeWriter, IContentTypeReader

Properties

ContentTypeFormats

View Source
Declaration
Dictionary<string, string> ContentTypeFormats { get; }

Methods

GetFormatContentType(String)

View Source
Declaration
string GetFormatContentType(string format)
Returns

System.String

Parameters
TypeName
System.Stringformat

Register(String, StreamSerializerDelegate, StreamDeserializerDelegate)

View Source
Declaration
void Register(string contentType, StreamSerializerDelegate streamSerializer, StreamDeserializerDelegate streamDeserializer)
Parameters
TypeName
System.StringcontentType
ServiceStack.Web.StreamSerializerDelegatestreamSerializer
ServiceStack.Web.StreamDeserializerDelegatestreamDeserializer

RegisterAsync(String, StreamSerializerDelegateAsync, StreamDeserializerDelegateAsync)

View Source
Declaration
void RegisterAsync(string contentType, StreamSerializerDelegateAsync responseSerializer, StreamDeserializerDelegateAsync streamDeserializer)
Parameters
TypeName
System.StringcontentType
ServiceStack.Web.StreamSerializerDelegateAsyncresponseSerializer
ServiceStack.Web.StreamDeserializerDelegateAsyncstreamDeserializer

Remove(String)

View Source
Declaration
void Remove(string contentType)
Parameters
TypeName
System.StringcontentType