C# Class ServiceStack.Host.ServiceMetadata

显示文件 Open project: ServiceStack/ServiceStack Class Usage Examples

Public Methods

Method Description
Add ( Type serviceType, Type requestType, Type responseType ) : void
AfterInit ( ) : void
CanAccess ( Format format, string operationName ) : bool
CanAccess ( IRequest httpReq, Format format, string operationName ) : bool
CanAccess ( ServiceStack.Host.RequestAttributes reqAttrs, Format format, string operationName ) : bool
GetAllOperationNames ( ) : List
GetAllOperationTypes ( ) : List
GetAllSoapOperationTypes ( ) : List
GetImplementedActions ( Type serviceType, Type requestType ) : List
GetMetadataTypesForOperation ( IRequest httpReq, Operation op ) : List
GetOperation ( Type operationType ) : Operation
GetOperationAssemblies ( ) : List
GetOperationDtos ( ) : List
GetOperationNamesForMetadata ( IRequest httpReq ) : List
GetOperationNamesForMetadata ( IRequest httpReq, Format format ) : List
GetOperationType ( string operationTypeName ) : Type
GetResponseTypeByRequest ( Type requestType ) : Type
GetServiceTypeByRequest ( Type requestType ) : Type
GetServiceTypeByResponse ( Type responseType ) : Type
HasImplementation ( Operation operation, Format format ) : bool
IsAuthorized ( Operation operation, IRequest req, IAuthSession session ) : bool
IsVisible ( IRequest httpReq, Format format, string operationName ) : bool
IsVisible ( IRequest httpReq, Operation operation ) : bool
IsVisible ( IRequest httpReq, Type requestType ) : bool
ServiceMetadata ( List restPaths ) : System

Private Methods

Method Description
AddReferencedTypes ( MetadataType metadataType, MetadataTypes metadataTypes, List types ) : void
CanShowToNetwork ( RestrictAttribute restrictTo, ServiceStack.Host.RequestAttributes reqAttrs ) : bool
FindMetadataType ( MetadataTypes metadataTypes, Type type ) : MetadataType
FindMetadataType ( MetadataTypes metadataTypes, string name, string @namespace = null ) : MetadataType

Method Details

Add() public method

public Add ( Type serviceType, Type requestType, Type responseType ) : void
serviceType System.Type
requestType System.Type
responseType System.Type
return void

AfterInit() public method

public AfterInit ( ) : void
return void

CanAccess() public method

public CanAccess ( Format format, string operationName ) : bool
format Format
operationName string
return bool

CanAccess() public method

public CanAccess ( IRequest httpReq, Format format, string operationName ) : bool
httpReq IRequest
format Format
operationName string
return bool

CanAccess() public method

public CanAccess ( ServiceStack.Host.RequestAttributes reqAttrs, Format format, string operationName ) : bool
reqAttrs ServiceStack.Host.RequestAttributes
format Format
operationName string
return bool

GetAllOperationNames() public method

public GetAllOperationNames ( ) : List
return List

GetAllOperationTypes() public method

public GetAllOperationTypes ( ) : List
return List

GetAllSoapOperationTypes() public method

public GetAllSoapOperationTypes ( ) : List
return List

GetImplementedActions() public method

public GetImplementedActions ( Type serviceType, Type requestType ) : List
serviceType System.Type
requestType System.Type
return List

GetMetadataTypesForOperation() public method

public GetMetadataTypesForOperation ( IRequest httpReq, Operation op ) : List
httpReq IRequest
op Operation
return List

GetOperation() public method

public GetOperation ( Type operationType ) : Operation
operationType System.Type
return Operation

GetOperationAssemblies() public method

public GetOperationAssemblies ( ) : List
return List

GetOperationDtos() public method

public GetOperationDtos ( ) : List
return List

GetOperationNamesForMetadata() public method

public GetOperationNamesForMetadata ( IRequest httpReq ) : List
httpReq IRequest
return List

GetOperationNamesForMetadata() public method

public GetOperationNamesForMetadata ( IRequest httpReq, Format format ) : List
httpReq IRequest
format Format
return List

GetOperationType() public method

public GetOperationType ( string operationTypeName ) : Type
operationTypeName string
return System.Type

GetResponseTypeByRequest() public method

public GetResponseTypeByRequest ( Type requestType ) : Type
requestType System.Type
return System.Type

GetServiceTypeByRequest() public method

public GetServiceTypeByRequest ( Type requestType ) : Type
requestType System.Type
return System.Type

GetServiceTypeByResponse() public method

public GetServiceTypeByResponse ( Type responseType ) : Type
responseType System.Type
return System.Type

HasImplementation() public method

public HasImplementation ( Operation operation, Format format ) : bool
operation Operation
format Format
return bool

IsAuthorized() public method

public IsAuthorized ( Operation operation, IRequest req, IAuthSession session ) : bool
operation Operation
req IRequest
session IAuthSession
return bool

IsVisible() public method

public IsVisible ( IRequest httpReq, Format format, string operationName ) : bool
httpReq IRequest
format Format
operationName string
return bool

IsVisible() public method

public IsVisible ( IRequest httpReq, Operation operation ) : bool
httpReq IRequest
operation Operation
return bool

IsVisible() public method

public IsVisible ( IRequest httpReq, Type requestType ) : bool
httpReq IRequest
requestType System.Type
return bool

ServiceMetadata() public method

public ServiceMetadata ( List restPaths ) : System
restPaths List
return System