Skip to main content

Operation

Assembly: ServiceStack.dll
View Source
Declaration
public class Operation : ICloneable

Properties

Name

View Source
Declaration
public string Name { get; }

RequestType

View Source
Declaration
public Type RequestType { get; set; }

ServiceType

View Source
Declaration
public Type ServiceType { get; set; }

ResponseType

View Source
Declaration
public Type ResponseType { get; set; }

DataModelType

View Source
Declaration
public Type DataModelType { get; }

ViewModelType

View Source
Declaration
public Type ViewModelType { get; }

RestrictTo

View Source
Declaration
public RestrictAttribute RestrictTo { get; set; }

Actions

View Source
Declaration
public List<string> Actions { get; set; }

ReturnsVoid

View Source
Declaration
public bool ReturnsVoid { get; }

IsOneWay

View Source
Declaration
public bool IsOneWay { get; }

Method

View Source
Declaration
public string Method { get; set; }

Routes

View Source
Declaration
public List<RestPath> Routes { get; set; }

RequestFilterAttributes

View Source
Declaration
public List<IRequestFilterBase> RequestFilterAttributes { get; set; }

ResponseFilterAttributes

View Source
Declaration
public List<IResponseFilterBase> ResponseFilterAttributes { get; set; }

RequiresAuthentication

View Source
Declaration
public bool RequiresAuthentication { get; set; }

RequiredRoles

View Source
Declaration
public List<string> RequiredRoles { get; set; }

RequiresAnyRole

View Source
Declaration
public List<string> RequiresAnyRole { get; set; }

RequiredPermissions

View Source
Declaration
public List<string> RequiredPermissions { get; set; }

RequiresAnyPermission

View Source
Declaration
public List<string> RequiresAnyPermission { get; set; }

Tags

View Source
Declaration
public List<TagAttribute> Tags { get; set; }

LocodeCss

View Source
Declaration
public ApiCss LocodeCss { get; set; }

ExplorerCss

View Source
Declaration
public ApiCss ExplorerCss { get; set; }

FormLayout

View Source
Declaration
public List<InputInfo> FormLayout { get; set; }

RequestPropertyAttributes

View Source
Declaration
public HashSet<Type> RequestPropertyAttributes { get; set; }

RequestTypeValidationRules

View Source
Declaration
public List<ITypeValidator> RequestTypeValidationRules { get; }

RequestPropertyValidationRules

View Source
Declaration
public List<IValidationRule> RequestPropertyValidationRules { get; }

Methods

ICloneable.Clone()

View Source
Declaration
object ICloneable.Clone()
Returns

System.Object

Clone()

View Source
Declaration
public Operation Clone()
Returns

ServiceStack.Host.Operation

AddRequestTypeValidationRules(List<ITypeValidator>)

View Source
Declaration
public void AddRequestTypeValidationRules(List<ITypeValidator> typeValidators)
Parameters
TypeName
System.Collections.Generic.List<ServiceStack.ITypeValidator>typeValidators

AddRequestPropertyValidationRules(List<IValidationRule>)

View Source
Declaration
public void AddRequestPropertyValidationRules(List<IValidationRule> propertyValidators)
Parameters
TypeName
System.Collections.Generic.List<ServiceStack.FluentValidation.IValidationRule>propertyValidators

AddRole(String)

View Source
Declaration
public Operation AddRole(string role)
Returns

ServiceStack.Host.Operation

Parameters
TypeName
System.Stringrole

AddPermission(String)

View Source
Declaration
public Operation AddPermission(string permission)
Returns

ServiceStack.Host.Operation

Parameters
TypeName
System.Stringpermission

Implements

  • System.ICloneable