Share via


DpwsHostedService Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This class implements a set of base methods and properties used by the stack to dispatch method calls and discover hosted service endpoints, operations, and events.

Inheritance Hierarchy

System. . :: . .Object
  Dpws.Device.Services..::..DpwsHostedService

Namespace:  Dpws.Device.Services
Assembly:  MFDpwsDevice (in MFDpwsDevice.dll)

Syntax

'Declaration
Public Class DpwsHostedService _
    Implements IWsServiceEndpoint
public class DpwsHostedService : IWsServiceEndpoint
public ref class DpwsHostedService : IWsServiceEndpoint
type DpwsHostedService =  
    class
        interface IWsServiceEndpoint
    end
public class DpwsHostedService implements IWsServiceEndpoint

The DpwsHostedService type exposes the following members.

Constructors

  Name Description
Public method DpwsHostedService Creates a new instance of the DpwsHostedService class.

Top

Properties

  Name Description
Public property EndpointAddress Gets or sets the unique endpoint address used by the HTTP transport to access this hosted service.
Public property EndpointRefs Gets a collection of endpoint references specific to a device implementation.
Public property EventSources Gets or sets a collection used to store event source parameters such as event source name and namespace.
Public property ServiceID Gets or sets a unique identifier for the hosted services.
Public property ServiceNamespace Gets or sets the namespace for a DPWS hosted service.
Public property ServiceOperations Gets a collection that stores parameters such as Action and namespace for Hosted Services operations.
Public property ServiceTypeName Gets a string representing the name of a hosted service.

Top

Methods

  Name Description
Public method AddEventServices
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetStatus Returns a GetStatus response.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Renew Returns a Renew response.
Public method Subscribe Returns a Subscribe response.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Unsubscribe Returns an Unsubscribe response.

Top

Fields

  Name Description
Protected field m_version

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IWsServiceEndpoint. . :: . .BlockingCall Gets a value that determines whether the ProcessRequest call blocks.
Explicit interface implemetationPrivate method IWsServiceEndpoint. . :: . .ProcessRequest Gets a service operation based on the action property sent in the SOAP header, and calls Invoke on the service method.

Top

Remarks

A device developer must derive hosted service class(es) from this base class.

A default namespace and prefix are provided. Set the EndpointAddress property to change default values.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Dpws.Device.Services Namespace