C# Класс Opc.Ua.EndpointBase

A base class for UA endpoints.
Наследование: IEndpointBase, ITransportListenerCallback
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetHostForContext IServiceHostBase
GetServerForContext IServerBase

Открытые методы

Метод Описание
BeginInvokeService ( InvokeServiceMessage message, AsyncCallback callack, object callbackData ) : IAsyncResult

Dispatches an incoming binary encoded request.

BeginProcessRequest ( string channeId, EndpointDescription endpointDescription, IServiceRequest request, AsyncCallback callback, object callbackData ) : IAsyncResult

Begins processing a request received via a binary encoded channel.

EndInvokeService ( IAsyncResult ar ) : InvokeServiceResponseMessage

Dispatches an incoming binary encoded request.

EndProcessRequest ( IAsyncResult result ) : IServiceResponse

Ends processing a request received via a binary encoded channel.

InvokeService ( InvokeServiceMessage request ) : InvokeServiceResponseMessage

Dispatches an incoming binary encoded request.

ProcessRequest ( IServiceRequest incoming ) : IServiceResponse

Dispatches an incoming binary encoded request.

Защищенные методы

Метод Описание
CreateFault ( IServiceRequest request, Exception exception ) : ServiceFault

Creates a fault message.

CreateSoapFault ( IServiceRequest request, Exception exception ) : Exception

Creates a fault message.

EndpointBase ( ) : System

Initializes the object when it is created by the WCF framework.

EndpointBase ( IServiceHostBase host ) : System

Initializes the when it is created directly.

EndpointBase ( ServerBase server ) : System

Initializes the endpoint with a server instead of a host.

FindService ( Opc.Ua.ExpandedNodeId requestTypeId ) : ServiceDefinition

Finds the service identified by the request type.

GetEndpointDescription ( ) : EndpointDescription

Find the endpoint description for the endpoint.

OnRequestReceived ( IServiceRequest request ) : void

Called when a new request is received by the endpoint.

OnResponseFaultSent ( Exception fault ) : void

Called when a response fault sent via the endpoint.

OnResponseSent ( IServiceResponse response ) : void

Called when a response sent via the endpoint.

SetRequestContext ( RequestEncoding encoding ) : void

Sets the request context for the thread.

Приватные методы

Метод Описание
GetHostForContext ( ) : IServiceHostBase
GetServerForContext ( ) : IServerBase

Описание методов

BeginInvokeService() публичный Метод

Dispatches an incoming binary encoded request.
public BeginInvokeService ( InvokeServiceMessage message, AsyncCallback callack, object callbackData ) : IAsyncResult
message InvokeServiceMessage
callack AsyncCallback
callbackData object
Результат IAsyncResult

BeginProcessRequest() публичный Метод

Begins processing a request received via a binary encoded channel.
public BeginProcessRequest ( string channeId, EndpointDescription endpointDescription, IServiceRequest request, AsyncCallback callback, object callbackData ) : IAsyncResult
channeId string A unique identifier for the secure channel which is the source of the request.
endpointDescription EndpointDescription The description of the endpoint which the secure channel is using.
request IServiceRequest The incoming request.
callback AsyncCallback The callback.
callbackData object The callback data.
Результат IAsyncResult

CreateFault() защищенный статический Метод

Creates a fault message.
protected static CreateFault ( IServiceRequest request, Exception exception ) : ServiceFault
request IServiceRequest The request.
exception System.Exception The exception.
Результат ServiceFault

CreateSoapFault() защищенный статический Метод

Creates a fault message.
protected static CreateSoapFault ( IServiceRequest request, Exception exception ) : Exception
request IServiceRequest The request.
exception System.Exception The exception.
Результат System.Exception

EndInvokeService() публичный Метод

Dispatches an incoming binary encoded request.
public EndInvokeService ( IAsyncResult ar ) : InvokeServiceResponseMessage
ar IAsyncResult The ar.
Результат InvokeServiceResponseMessage

EndProcessRequest() публичный Метод

Ends processing a request received via a binary encoded channel.
public EndProcessRequest ( IAsyncResult result ) : IServiceResponse
result IAsyncResult The result returned by the BeginProcessRequest method.
Результат IServiceResponse

EndpointBase() защищенный Метод

Initializes the object when it is created by the WCF framework.
protected EndpointBase ( ) : System
Результат System

EndpointBase() защищенный Метод

Initializes the when it is created directly.
protected EndpointBase ( IServiceHostBase host ) : System
host IServiceHostBase The host.
Результат System

EndpointBase() защищенный Метод

Initializes the endpoint with a server instead of a host.
protected EndpointBase ( ServerBase server ) : System
server ServerBase
Результат System

FindService() защищенный Метод

Finds the service identified by the request type.
protected FindService ( Opc.Ua.ExpandedNodeId requestTypeId ) : ServiceDefinition
requestTypeId Opc.Ua.ExpandedNodeId
Результат ServiceDefinition

GetEndpointDescription() защищенный Метод

Find the endpoint description for the endpoint.
protected GetEndpointDescription ( ) : EndpointDescription
Результат EndpointDescription

InvokeService() публичный Метод

Dispatches an incoming binary encoded request.
public InvokeService ( InvokeServiceMessage request ) : InvokeServiceResponseMessage
request InvokeServiceMessage Request.
Результат InvokeServiceResponseMessage

OnRequestReceived() защищенный Метод

Called when a new request is received by the endpoint.
protected OnRequestReceived ( IServiceRequest request ) : void
request IServiceRequest The request.
Результат void

OnResponseFaultSent() защищенный Метод

Called when a response fault sent via the endpoint.
protected OnResponseFaultSent ( Exception fault ) : void
fault Exception The fault.
Результат void

OnResponseSent() защищенный Метод

Called when a response sent via the endpoint.
protected OnResponseSent ( IServiceResponse response ) : void
response IServiceResponse The response.
Результат void

ProcessRequest() публичный Метод

Dispatches an incoming binary encoded request.
public ProcessRequest ( IServiceRequest incoming ) : IServiceResponse
incoming IServiceRequest Incoming request.
Результат IServiceResponse

SetRequestContext() защищенный Метод

Sets the request context for the thread.
protected SetRequestContext ( RequestEncoding encoding ) : void
encoding RequestEncoding The encoding.
Результат void