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
Type | Name |
---|---|
System.String | format |
Register(String, StreamSerializerDelegate, StreamDeserializerDelegate)
View Source
Declaration
void Register(string contentType, StreamSerializerDelegate streamSerializer, StreamDeserializerDelegate streamDeserializer)
Parameters
Type | Name |
---|---|
System.String | contentType |
ServiceStack.Web.StreamSerializerDelegate | streamSerializer |
ServiceStack.Web.StreamDeserializerDelegate | streamDeserializer |
RegisterAsync(String, StreamSerializerDelegateAsync, StreamDeserializerDelegateAsync)
View Source
Declaration
void RegisterAsync(string contentType, StreamSerializerDelegateAsync responseSerializer, StreamDeserializerDelegateAsync streamDeserializer)
Parameters
Type | Name |
---|---|
System.String | contentType |
ServiceStack.Web.StreamSerializerDelegateAsync | responseSerializer |
ServiceStack.Web.StreamDeserializerDelegateAsync | streamDeserializer |
Remove(String)
View Source
Declaration
void Remove(string contentType)
Parameters
Type | Name |
---|---|
System.String | contentType |