Click or drag to resize

RestService Class

Represents a simple HttpRestServer
Inheritance Hierarchy
SystemObject
  RestSrvrRestService

Namespace:  RestSrvr
Assembly:  RestSrvr (in RestSrvr.dll) Version: 2.2.1
Syntax
public sealed class RestService

The RestService type exposes the following members.

Constructors
  NameDescription
Public methodRestService(Object)
Creates the specified HttpHostContext
Public methodRestService(Type)
Creates the specified HttpHostContext
Top
Properties
  NameDescription
Public propertyBehaviorType
Gets the behavior type
Public propertyEndpoints
Gets the endpoints for this rest server host
Public propertyInstanceMode
Gets the instance mode
Public propertyIsRunning
Get whether the service is running
Public propertyName
Gets the name of the rest service
Public propertyServiceBehaviors
Gets the current service behaviors
Top
Methods
  NameDescription
Public methodAddServiceBehavior
Adds a service behavior to this instance
Public methodAddServiceEndpoint(ServiceEndpoint)
Add a service endpoint
Public methodAddServiceEndpoint(Uri, Type, IEndpointBinding)
Registers the service behavior contractType at base Uri baseUri
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStart
Start this service
Public methodStop
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodConvertTReturn
The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also