JsvMetadataHandler
Assembly: ServiceStack.dll
View Source
Declaration
public class JsvMetadataHandler : BaseMetadataHandler, IHttpAsyncHandler, IHttpHandler, IServiceStackHandler
Properties
Format
View Source
Declaration
public override Format Format { get; }
Inherited Properties
ContentFormat
View Source
Declaration
public string ContentFormat { get; set; }
ContentType
View Source
Declaration
public string ContentType { get; set; }
Format
View Source
Declaration
public abstract Format Format { get; }
Methods
CreateMessage(Type)
View Source
Declaration
protected override string CreateMessage(Type dtoType)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | dtoType |
Inherited Methods
AssertAccess(IRequest, IResponse, String)
View Source
Declaration
protected bool AssertAccess(IRequest httpReq, IResponse httpRes, string operationName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
CreateMessage(Type)
View Source
Declaration
protected abstract string CreateMessage(Type dtoType)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | dtoType |
CreateResponse(Type)
View Source
Declaration
public virtual string CreateResponse(Type type)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | type |
ProcessOperationsAsync(Stream, IRequest, IResponse)
View Source
Declaration
protected virtual async Task ProcessOperationsAsync(Stream writer, IRequest httpReq, IResponse httpRes)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.IO.Stream | writer |
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
ProcessRequestAsync(IRequest, IResponse, String)
View Source
Declaration
public override async Task ProcessRequestAsync(IRequest httpReq, IResponse httpRes, string operationName)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
RenderOperationAsync(Stream, IRequest, String, String, String, String, Operation)
View Source
Declaration
protected virtual Task RenderOperationAsync(Stream output, IRequest httpReq, string operationName, string requestMessage, string responseMessage, string metadataHtml, Operation operation)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.IO.Stream | output |
ServiceStack.Web.IRequest | httpReq |
System.String | operationName |
System.String | requestMessage |
System.String | responseMessage |
System.String | metadataHtml |
ServiceStack.Host.Operation | operation |
RenderOperationsAsync(Stream, IRequest, ServiceMetadata)
View Source
Declaration
protected virtual async Task RenderOperationsAsync(Stream output, IRequest httpReq, ServiceMetadata metadata)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.IO.Stream | output |
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Host.ServiceMetadata | metadata |
Implements
System.Web.IHttpAsyncHandler
System.Web.IHttpHandler
- ServiceStack.Host.Handlers.IServiceStackHandler