Skip to main content

ServiceClientUtils

Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class ServiceClientUtils

Properties

SupportedMethods

HTTP Methods supported my Service Clients

View Source
Declaration
public static HashSet<string> SupportedMethods { get; }

Methods

GetHttpMethod(Type)

Get the preferred HTTP method to use with this API, if it either:

  • Implements IVerb marker interface
  • Inherits AutoQuery/CRUD DTO
  • Using a single distinct user defined [Route]
View Source
Declaration
public static string GetHttpMethod(Type requestType)
Returns

System.String: preferred HTTP Method or null if cannot be inferred

Parameters
TypeName
System.TyperequestType

GetSingleRouteMethod(Type)

View Source
Declaration
public static string GetSingleRouteMethod(Type requestType)
Returns

System.String

Parameters
TypeName
System.TyperequestType

GetRouteMethods(Type)

View Source
Declaration
public static string[] GetRouteMethods(Type requestType)
Returns

System.String[]

Parameters
TypeName
System.TyperequestType

GetIVerbMethod(Type)

View Source
Declaration
public static string GetIVerbMethod(Type requestType)
Returns

System.String

Parameters
TypeName
System.TyperequestType

GetIVerbMethod(Type[])

View Source
Declaration
public static string GetIVerbMethod(Type[] interfaceTypes)
Returns

System.String

Parameters
TypeName
System.Type[]interfaceTypes

GetAutoQueryMethod(Type)

View Source
Declaration
public static string GetAutoQueryMethod(Type requestType)
Returns

System.String

Parameters
TypeName
System.TyperequestType