C# Класс Opc.Ua.Server.StandardServer

Наследование: SessionServerBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ActivateSession ( RequestHeader requestHeader, SignatureData clientSignature, SignedSoftwareCertificateCollection clientSoftwareCertificates, StringCollection localeIds, ExtensionObject userIdentityToken, SignatureData userTokenSignature, byte &serverNonce, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the ActivateSession service.

BeginPublish ( IEndpointIncomingRequest request ) : void

Begins an asynchronous publish operation.

Browse ( RequestHeader requestHeader, ViewDescription view, uint requestedMaxReferencesPerNode, BrowseDescriptionCollection nodesToBrowse, BrowseResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the Browse service.

BrowseNext ( RequestHeader requestHeader, bool releaseContinuationPoints, ByteStringCollection continuationPoints, BrowseResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the BrowseNext service.

Call ( RequestHeader requestHeader, CallMethodRequestCollection methodsToCall, CallMethodResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the Call service.

Cancel ( RequestHeader requestHeader, uint requestHandle, uint &cancelCount ) : ResponseHeader

Invokes the Cancel service.

CloseSession ( RequestHeader requestHeader, bool deleteSubscriptions ) : ResponseHeader

Invokes the CloseSession service.

CompletePublish ( IEndpointIncomingRequest request ) : void

Completes an asynchronous publish operation.

CreateMonitoredItems ( RequestHeader requestHeader, uint subscriptionId, TimestampsToReturn timestampsToReturn, MonitoredItemCreateRequestCollection itemsToCreate, MonitoredItemCreateResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the CreateMonitoredItems service.

CreateSession ( RequestHeader requestHeader, ApplicationDescription clientDescription, string serverUri, string endpointUrl, string sessionName, byte clientNonce, byte clientCertificate, double requestedSessionTimeout, uint maxResponseMessageSize, NodeId &sessionId, NodeId &authenticationToken, double &revisedSessionTimeout, byte &serverNonce, byte &serverCertificate, EndpointDescriptionCollection &serverEndpoints, SignedSoftwareCertificateCollection &serverSoftwareCertificates, SignatureData &serverSignature, uint &maxRequestMessageSize ) : ResponseHeader

Invokes the CreateSession service.

CreateSubscription ( RequestHeader requestHeader, double requestedPublishingInterval, uint requestedLifetimeCount, uint requestedMaxKeepAliveCount, uint maxNotificationsPerPublish, bool publishingEnabled, byte priority, uint &subscriptionId, double &revisedPublishingInterval, uint &revisedLifetimeCount, uint &revisedMaxKeepAliveCount ) : ResponseHeader

Invokes the CreateSubscription service.

DeleteMonitoredItems ( RequestHeader requestHeader, uint subscriptionId, UInt32Collection monitoredItemIds, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the DeleteMonitoredItems service.

DeleteSubscriptions ( RequestHeader requestHeader, UInt32Collection subscriptionIds, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the DeleteSubscriptions service.

FindServers ( RequestHeader requestHeader, string endpointUrl, StringCollection localeIds, StringCollection serverUris, ApplicationDescriptionCollection &servers ) : ResponseHeader

Invokes the FindServers service.

GetEndpoints ( RequestHeader requestHeader, string endpointUrl, StringCollection localeIds, StringCollection profileUris, EndpointDescriptionCollection &endpoints ) : ResponseHeader

Invokes the GetEndpoints service.

GetStatus ( ) : ServerStatusDataType

Returns the current status of the server.

HistoryRead ( RequestHeader requestHeader, ExtensionObject historyReadDetails, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueIdCollection nodesToRead, HistoryReadResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the HistoryRead service.

HistoryUpdate ( RequestHeader requestHeader, ExtensionObjectCollection historyUpdateDetails, HistoryUpdateResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the HistoryUpdate service.

ModifyMonitoredItems ( RequestHeader requestHeader, uint subscriptionId, TimestampsToReturn timestampsToReturn, MonitoredItemModifyRequestCollection itemsToModify, MonitoredItemModifyResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the ModifyMonitoredItems service.

ModifySubscription ( RequestHeader requestHeader, uint subscriptionId, double requestedPublishingInterval, uint requestedLifetimeCount, uint requestedMaxKeepAliveCount, uint maxNotificationsPerPublish, byte priority, double &revisedPublishingInterval, uint &revisedLifetimeCount, uint &revisedMaxKeepAliveCount ) : ResponseHeader

Invokes the ModifySubscription service.

Publish ( RequestHeader requestHeader, SubscriptionAcknowledgementCollection subscriptionAcknowledgements, uint &subscriptionId, UInt32Collection &availableSequenceNumbers, bool &moreNotifications, NotificationMessage &notificationMessage, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the Publish service.

Read ( RequestHeader requestHeader, double maxAge, TimestampsToReturn timestampsToReturn, ReadValueIdCollection nodesToRead, DataValueCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the Read service.

RegisterNodes ( RequestHeader requestHeader, NodeIdCollection nodesToRegister, NodeIdCollection &registeredNodeIds ) : ResponseHeader

Invokes the RegisterNodes service.

RegisterWithDiscoveryServer ( ) : bool

Registers the server with the discovery server.

Republish ( RequestHeader requestHeader, uint subscriptionId, uint retransmitSequenceNumber, NotificationMessage &notificationMessage ) : ResponseHeader

Invokes the Republish service.

SetMonitoringMode ( RequestHeader requestHeader, uint subscriptionId, MonitoringMode monitoringMode, UInt32Collection monitoredItemIds, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the SetMonitoringMode service.

SetPublishingMode ( RequestHeader requestHeader, bool publishingEnabled, UInt32Collection subscriptionIds, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the SetPublishingMode service.

SetTriggering ( RequestHeader requestHeader, uint subscriptionId, uint triggeringItemId, UInt32Collection linksToAdd, UInt32Collection linksToRemove, StatusCodeCollection &addResults, DiagnosticInfoCollection &addDiagnosticInfos, StatusCodeCollection &removeResults, DiagnosticInfoCollection &removeDiagnosticInfos ) : ResponseHeader

Invokes the SetTriggering service.

StandardServer ( ) : System

Initializes the object with default values.

TranslateBrowsePathsToNodeIds ( RequestHeader requestHeader, BrowsePathCollection browsePaths, BrowsePathResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the TranslateBrowsePathsToNodeIds service.

UnregisterNodes ( RequestHeader requestHeader, NodeIdCollection nodesToUnregister ) : ResponseHeader

Invokes the UnregisterNodes service.

Write ( RequestHeader requestHeader, WriteValueCollection nodesToWrite, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader

Invokes the Write service.

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

Метод Описание
CreateAggregateManager ( IServerInternal server, ApplicationConfiguration configuration ) : AggregateManager

Creates the aggregate manager used by the server.

CreateEventManager ( IServerInternal server, ApplicationConfiguration configuration ) : EventManager

Creates the event manager for the server.

CreateMasterNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : MasterNodeManager

Creates the master node manager for the server.

CreateRequestManager ( IServerInternal server, ApplicationConfiguration configuration ) : RequestManager

Creates the request manager for the server.

CreateResourceManager ( IServerInternal server, ApplicationConfiguration configuration ) : ResourceManager

Creates the resource manager for the server.

CreateServiceHost ( System.ServiceModel.ServerBase server ) : System.ServiceModel.ServiceHost

Creates an instance of the service host.

CreateSessionManager ( IServerInternal server, ApplicationConfiguration configuration ) : SessionManager

Creates the session manager for the server.

CreateSubscriptionManager ( IServerInternal server, ApplicationConfiguration configuration ) : SubscriptionManager

Creates the session manager for the server.

GetEndpointDescriptions ( string endpointUrl, IList baseAddresses, StringCollection localeIds ) : EndpointDescriptionCollection

Returns the endpoints that match the base addresss and endpoint url.

GetEndpointInstance ( System.ServiceModel.ServerBase server ) : EndpointBase

Returns an instance of the endpoint to use.

GetServiceContract ( ) : Type

Returns the service contract to use.

InitializeServiceHosts ( ApplicationConfiguration configuration, BindingFactory bindingFactory, ApplicationDescription &serverDescription, EndpointDescriptionCollection &endpoints ) : IList

Creates the endpoints and creates the hosts.

IsSecurityError ( StatusCode error ) : bool

Returns whether the error is a security error.

OnApplicationCertificateError ( byte clientCertificate, ServiceResult result ) : void

Handles an error when validating the application instance certificate provided by a client.

OnNodeManagerStarted ( IServerInternal server ) : void

Called after the node managers have been started.

OnRequestComplete ( OperationContext context ) : void

Verifies that the request header is valid.

OnServerStarted ( IServerInternal server ) : void

Called after the server has been started.

OnServerStarting ( ApplicationConfiguration configuration ) : void

Called before the server starts.

OnServerStopping ( ) : void

Called before the server stops

OnUpdateConfiguration ( ApplicationConfiguration configuration ) : void

Called when the server configuration is changed on disk.

Servers are free to ignore changes if it is difficult/impossible to apply them without a restart.

ProcessRequest ( IEndpointIncomingRequest request, object calldata ) : void

Processes the request.

SetServerError ( ServiceResult error ) : void

Reports an error during initialization after the base server object has been started.

SetServerState ( ServerState state ) : void

Updates the server state.

StartApplication ( ApplicationConfiguration configuration ) : void

Starts the server application.

TranslateException ( DiagnosticsMasks diagnosticsMasks, IList preferredLocales, ServiceResultException e ) : ServiceResultException

Translates an exception.

TranslateException ( OperationContext context, ServiceResultException e ) : ServiceResultException

Translates an exception.

TranslateResult ( DiagnosticsMasks diagnosticsMasks, IList preferredLocales, ServiceResult result ) : ServiceResult

Translates a service result.

ValidateRequest ( RequestHeader requestHeader, RequestType requestType ) : OperationContext

Verifies that the request header is valid.

ValidateRequest ( RequestHeader requestHeader ) : void

Verifies that the request header is valid.

ValidateSoftwareCertificates ( List softwareCertificates ) : void

Inspects the software certificates provided by the server.

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

Метод Описание
Dispose ( bool disposing ) : void
OnConfigurationChanged ( object sender, ConfigurationWatcherEventArgs args ) : void
OnRegisterServer ( object state ) : void

Registers the server endpoints with the LDS.

RegistrationValidator_CertificateValidation ( CertificateValidator sender, CertificateValidationEventArgs e ) : void

Checks that the domains in the certificate match the current host.

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

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

Invokes the ActivateSession service.
public ActivateSession ( RequestHeader requestHeader, SignatureData clientSignature, SignedSoftwareCertificateCollection clientSoftwareCertificates, StringCollection localeIds, ExtensionObject userIdentityToken, SignatureData userTokenSignature, byte &serverNonce, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
clientSignature SignatureData The client signature.
clientSoftwareCertificates SignedSoftwareCertificateCollection The client software certificates.
localeIds StringCollection The locale ids.
userIdentityToken ExtensionObject The user identity token.
userTokenSignature SignatureData The user token signature.
serverNonce byte The server nonce.
results StatusCodeCollection The results.
diagnosticInfos DiagnosticInfoCollection The diagnostic infos.
Результат ResponseHeader

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

Begins an asynchronous publish operation.
public BeginPublish ( IEndpointIncomingRequest request ) : void
request IEndpointIncomingRequest The request.
Результат void

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

Invokes the Browse service.
public Browse ( RequestHeader requestHeader, ViewDescription view, uint requestedMaxReferencesPerNode, BrowseDescriptionCollection nodesToBrowse, BrowseResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
view ViewDescription The view.
requestedMaxReferencesPerNode uint The maximum number of references to return for each node.
nodesToBrowse BrowseDescriptionCollection The list of nodes to browse.
results BrowseResultCollection The list of results for the passed starting nodes and filters.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the BrowseNext service.
public BrowseNext ( RequestHeader requestHeader, bool releaseContinuationPoints, ByteStringCollection continuationPoints, BrowseResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
releaseContinuationPoints bool if set to true the continuation points are released.
continuationPoints ByteStringCollection A list of continuation points returned in a previous Browse or BrewseNext call.
results BrowseResultCollection The list of resulted references for browse.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the Call service.
public Call ( RequestHeader requestHeader, CallMethodRequestCollection methodsToCall, CallMethodResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
methodsToCall CallMethodRequestCollection The methods to call.
results CallMethodResultCollection The results.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the Cancel service.
public Cancel ( RequestHeader requestHeader, uint requestHandle, uint &cancelCount ) : ResponseHeader
requestHeader RequestHeader The request header.
requestHandle uint The request handle assigned to the request.
cancelCount uint The number of cancelled requests.
Результат ResponseHeader

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

Invokes the CloseSession service.
public CloseSession ( RequestHeader requestHeader, bool deleteSubscriptions ) : ResponseHeader
requestHeader RequestHeader The request header.
deleteSubscriptions bool if set to true subscriptions are deleted.
Результат ResponseHeader

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

Completes an asynchronous publish operation.
public CompletePublish ( IEndpointIncomingRequest request ) : void
request IEndpointIncomingRequest The request.
Результат void

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

Creates the aggregate manager used by the server.
protected CreateAggregateManager ( IServerInternal server, ApplicationConfiguration configuration ) : AggregateManager
server IServerInternal The server.
configuration ApplicationConfiguration The application configuration.
Результат AggregateManager

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

Creates the event manager for the server.
protected CreateEventManager ( IServerInternal server, ApplicationConfiguration configuration ) : EventManager
server IServerInternal The server.
configuration ApplicationConfiguration The configuration.
Результат EventManager

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

Creates the master node manager for the server.
protected CreateMasterNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : MasterNodeManager
server IServerInternal The server.
configuration ApplicationConfiguration The configuration.
Результат MasterNodeManager

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

Invokes the CreateMonitoredItems service.
public CreateMonitoredItems ( RequestHeader requestHeader, uint subscriptionId, TimestampsToReturn timestampsToReturn, MonitoredItemCreateRequestCollection itemsToCreate, MonitoredItemCreateResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionId uint The subscription id that will report notifications.
timestampsToReturn TimestampsToReturn The type of timestamps to be returned for the MonitoredItems.
itemsToCreate MonitoredItemCreateRequestCollection The list of MonitoredItems to be created and assigned to the specified subscription
results MonitoredItemCreateResultCollection The list of results for the MonitoredItems to create.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Creates the request manager for the server.
protected CreateRequestManager ( IServerInternal server, ApplicationConfiguration configuration ) : RequestManager
server IServerInternal The server.
configuration ApplicationConfiguration The configuration.
Результат RequestManager

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

Creates the resource manager for the server.
protected CreateResourceManager ( IServerInternal server, ApplicationConfiguration configuration ) : ResourceManager
server IServerInternal The server.
configuration ApplicationConfiguration The configuration.
Результат ResourceManager

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

Creates an instance of the service host.
protected CreateServiceHost ( System.ServiceModel.ServerBase server ) : System.ServiceModel.ServiceHost
server System.ServiceModel.ServerBase
Результат System.ServiceModel.ServiceHost

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

Invokes the CreateSession service.
public CreateSession ( RequestHeader requestHeader, ApplicationDescription clientDescription, string serverUri, string endpointUrl, string sessionName, byte clientNonce, byte clientCertificate, double requestedSessionTimeout, uint maxResponseMessageSize, NodeId &sessionId, NodeId &authenticationToken, double &revisedSessionTimeout, byte &serverNonce, byte &serverCertificate, EndpointDescriptionCollection &serverEndpoints, SignedSoftwareCertificateCollection &serverSoftwareCertificates, SignatureData &serverSignature, uint &maxRequestMessageSize ) : ResponseHeader
requestHeader RequestHeader The request header.
clientDescription ApplicationDescription Application description for the client application.
serverUri string The server URI.
endpointUrl string The endpoint URL.
sessionName string Name for the Session assigned by the client.
clientNonce byte The client nonce.
clientCertificate byte The client certificate.
requestedSessionTimeout double The requested session timeout.
maxResponseMessageSize uint Size of the max response message.
sessionId NodeId The unique public identifier assigned by the Server to the Session.
authenticationToken NodeId The unique private identifier assigned by the Server to the Session.
revisedSessionTimeout double The revised session timeout.
serverNonce byte The server nonce.
serverCertificate byte The server certificate.
serverEndpoints EndpointDescriptionCollection The server endpoints.
serverSoftwareCertificates SignedSoftwareCertificateCollection The server software certificates.
serverSignature SignatureData The server signature.
maxRequestMessageSize uint Size of the max request message.
Результат ResponseHeader

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

Creates the session manager for the server.
protected CreateSessionManager ( IServerInternal server, ApplicationConfiguration configuration ) : SessionManager
server IServerInternal The server.
configuration ApplicationConfiguration The configuration.
Результат SessionManager

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

Invokes the CreateSubscription service.
public CreateSubscription ( RequestHeader requestHeader, double requestedPublishingInterval, uint requestedLifetimeCount, uint requestedMaxKeepAliveCount, uint maxNotificationsPerPublish, bool publishingEnabled, byte priority, uint &subscriptionId, double &revisedPublishingInterval, uint &revisedLifetimeCount, uint &revisedMaxKeepAliveCount ) : ResponseHeader
requestHeader RequestHeader The request header.
requestedPublishingInterval double The cyclic rate that the Subscription is being requested to return Notifications to the Client.
requestedLifetimeCount uint The client-requested lifetime count for the Subscription
requestedMaxKeepAliveCount uint The requested max keep alive count.
maxNotificationsPerPublish uint The maximum number of notifications that the Client wishes to receive in a single Publish response.
publishingEnabled bool If set to true publishing is enabled for the Subscription.
priority byte The relative priority of the Subscription.
subscriptionId uint The Server-assigned identifier for the Subscription.
revisedPublishingInterval double The actual publishing interval that the Server will use.
revisedLifetimeCount uint The revised lifetime count.
revisedMaxKeepAliveCount uint The revised max keep alive count.
Результат ResponseHeader

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

Creates the session manager for the server.
protected CreateSubscriptionManager ( IServerInternal server, ApplicationConfiguration configuration ) : SubscriptionManager
server IServerInternal The server.
configuration ApplicationConfiguration The configuration.
Результат SubscriptionManager

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

Invokes the DeleteMonitoredItems service.
public DeleteMonitoredItems ( RequestHeader requestHeader, uint subscriptionId, UInt32Collection monitoredItemIds, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionId uint The subscription id.
monitoredItemIds UInt32Collection The list of MonitoredItems to delete.
results StatusCodeCollection The list of results for the MonitoredItems to delete.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the DeleteSubscriptions service.
public DeleteSubscriptions ( RequestHeader requestHeader, UInt32Collection subscriptionIds, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionIds UInt32Collection The list of Subscriptions to delete.
results StatusCodeCollection The list of result StatusCodes for the Subscriptions to delete.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the FindServers service.
public FindServers ( RequestHeader requestHeader, string endpointUrl, StringCollection localeIds, StringCollection serverUris, ApplicationDescriptionCollection &servers ) : ResponseHeader
requestHeader RequestHeader The request header.
endpointUrl string The endpoint URL.
localeIds StringCollection The locale ids.
serverUris StringCollection The server uris.
servers ApplicationDescriptionCollection List of Servers that meet criteria specified in the request.
Результат ResponseHeader

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

Returns the endpoints that match the base addresss and endpoint url.
protected GetEndpointDescriptions ( string endpointUrl, IList baseAddresses, StringCollection localeIds ) : EndpointDescriptionCollection
endpointUrl string
baseAddresses IList
localeIds StringCollection
Результат EndpointDescriptionCollection

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

Returns an instance of the endpoint to use.
protected GetEndpointInstance ( System.ServiceModel.ServerBase server ) : EndpointBase
server System.ServiceModel.ServerBase
Результат EndpointBase

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

Invokes the GetEndpoints service.
public GetEndpoints ( RequestHeader requestHeader, string endpointUrl, StringCollection localeIds, StringCollection profileUris, EndpointDescriptionCollection &endpoints ) : ResponseHeader
requestHeader RequestHeader The request header.
endpointUrl string The endpoint URL.
localeIds StringCollection The locale ids.
profileUris StringCollection The profile uris.
endpoints EndpointDescriptionCollection The endpoints supported by the server.
Результат ResponseHeader

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

Returns the service contract to use.
protected GetServiceContract ( ) : Type
Результат System.Type

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

Returns the current status of the server.
public GetStatus ( ) : ServerStatusDataType
Результат ServerStatusDataType

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

Invokes the HistoryRead service.
public HistoryRead ( RequestHeader requestHeader, ExtensionObject historyReadDetails, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueIdCollection nodesToRead, HistoryReadResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
historyReadDetails ExtensionObject The history read details.
timestampsToReturn TimestampsToReturn The timestamps to return.
releaseContinuationPoints bool if set to true continuation points are released.
nodesToRead HistoryReadValueIdCollection The nodes to read.
results HistoryReadResultCollection The results.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the HistoryUpdate service.
public HistoryUpdate ( RequestHeader requestHeader, ExtensionObjectCollection historyUpdateDetails, HistoryUpdateResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
historyUpdateDetails ExtensionObjectCollection The details defined for the update.
results HistoryUpdateResultCollection The list of update results for the history update details.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Creates the endpoints and creates the hosts.
protected InitializeServiceHosts ( ApplicationConfiguration configuration, BindingFactory bindingFactory, ApplicationDescription &serverDescription, EndpointDescriptionCollection &endpoints ) : IList
configuration ApplicationConfiguration The configuration.
bindingFactory BindingFactory The binding factory.
serverDescription ApplicationDescription The server description.
endpoints EndpointDescriptionCollection The endpoints.
Результат IList

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

Returns whether the error is a security error.
protected IsSecurityError ( StatusCode error ) : bool
error StatusCode The error.
Результат bool

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

Invokes the ModifyMonitoredItems service.
public ModifyMonitoredItems ( RequestHeader requestHeader, uint subscriptionId, TimestampsToReturn timestampsToReturn, MonitoredItemModifyRequestCollection itemsToModify, MonitoredItemModifyResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionId uint The subscription id.
timestampsToReturn TimestampsToReturn The type of timestamps to be returned for the MonitoredItems.
itemsToModify MonitoredItemModifyRequestCollection The list of MonitoredItems to modify.
results MonitoredItemModifyResultCollection The list of results for the MonitoredItems to modify.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the ModifySubscription service.
public ModifySubscription ( RequestHeader requestHeader, uint subscriptionId, double requestedPublishingInterval, uint requestedLifetimeCount, uint requestedMaxKeepAliveCount, uint maxNotificationsPerPublish, byte priority, double &revisedPublishingInterval, uint &revisedLifetimeCount, uint &revisedMaxKeepAliveCount ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionId uint The subscription id.
requestedPublishingInterval double The cyclic rate that the Subscription is being requested to return Notifications to the Client.
requestedLifetimeCount uint The client-requested lifetime count for the Subscription.
requestedMaxKeepAliveCount uint The requested max keep alive count.
maxNotificationsPerPublish uint The maximum number of notifications that the Client wishes to receive in a single Publish response.
priority byte The relative priority of the Subscription.
revisedPublishingInterval double The revised publishing interval.
revisedLifetimeCount uint The revised lifetime count.
revisedMaxKeepAliveCount uint The revised max keep alive count.
Результат ResponseHeader

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

Handles an error when validating the application instance certificate provided by a client.
protected OnApplicationCertificateError ( byte clientCertificate, ServiceResult result ) : void
clientCertificate byte The client certificate.
result ServiceResult The result.
Результат void

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

Called after the node managers have been started.
protected OnNodeManagerStarted ( IServerInternal server ) : void
server IServerInternal The server.
Результат void

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

Verifies that the request header is valid.
protected OnRequestComplete ( OperationContext context ) : void
context OperationContext The operation context.
Результат void

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

Called after the server has been started.
protected OnServerStarted ( IServerInternal server ) : void
server IServerInternal The server.
Результат void

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

Called before the server starts.
protected OnServerStarting ( ApplicationConfiguration configuration ) : void
configuration ApplicationConfiguration The configuration.
Результат void

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

Called before the server stops
protected OnServerStopping ( ) : void
Результат void

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

Called when the server configuration is changed on disk.
Servers are free to ignore changes if it is difficult/impossible to apply them without a restart.
protected OnUpdateConfiguration ( ApplicationConfiguration configuration ) : void
configuration ApplicationConfiguration The configuration.
Результат void

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

Processes the request.
protected ProcessRequest ( IEndpointIncomingRequest request, object calldata ) : void
request IEndpointIncomingRequest The request.
calldata object The calldata passed with the request.
Результат void

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

Invokes the Publish service.
public Publish ( RequestHeader requestHeader, SubscriptionAcknowledgementCollection subscriptionAcknowledgements, uint &subscriptionId, UInt32Collection &availableSequenceNumbers, bool &moreNotifications, NotificationMessage &notificationMessage, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionAcknowledgements SubscriptionAcknowledgementCollection The list of acknowledgements for one or more Subscriptions.
subscriptionId uint The subscription identifier.
availableSequenceNumbers UInt32Collection The available sequence numbers.
moreNotifications bool If set to true the number of Notifications that were ready to be sent could not be sent in a single response.
notificationMessage NotificationMessage The NotificationMessage that contains the list of Notifications.
results StatusCodeCollection The list of results for the acknowledgements.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the Read service.
public Read ( RequestHeader requestHeader, double maxAge, TimestampsToReturn timestampsToReturn, ReadValueIdCollection nodesToRead, DataValueCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
maxAge double The Maximum age of the value to be read in milliseconds.
timestampsToReturn TimestampsToReturn The type of timestamps to be returned for the requested Variables.
nodesToRead ReadValueIdCollection The list of Nodes and their Attributes to read.
results DataValueCollection The list of returned Attribute values
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the RegisterNodes service.
public RegisterNodes ( RequestHeader requestHeader, NodeIdCollection nodesToRegister, NodeIdCollection &registeredNodeIds ) : ResponseHeader
requestHeader RequestHeader The request header.
nodesToRegister NodeIdCollection The list of NodeIds to register.
registeredNodeIds NodeIdCollection The list of NodeIds identifying the registered nodes.
Результат ResponseHeader

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

Registers the server with the discovery server.
public RegisterWithDiscoveryServer ( ) : bool
Результат bool

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

Invokes the Republish service.
public Republish ( RequestHeader requestHeader, uint subscriptionId, uint retransmitSequenceNumber, NotificationMessage &notificationMessage ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionId uint The subscription id.
retransmitSequenceNumber uint The sequence number of a specific NotificationMessage to be republished.
notificationMessage NotificationMessage The requested NotificationMessage.
Результат ResponseHeader

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

Invokes the SetMonitoringMode service.
public SetMonitoringMode ( RequestHeader requestHeader, uint subscriptionId, MonitoringMode monitoringMode, UInt32Collection monitoredItemIds, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionId uint The subscription id.
monitoringMode MonitoringMode The monitoring mode to be set for the MonitoredItems.
monitoredItemIds UInt32Collection The list of MonitoredItems to modify.
results StatusCodeCollection The list of results for the MonitoredItems to modify.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Invokes the SetPublishingMode service.
public SetPublishingMode ( RequestHeader requestHeader, bool publishingEnabled, UInt32Collection subscriptionIds, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
publishingEnabled bool If set to true publishing of NotificationMessages is enabled for the Subscription.
subscriptionIds UInt32Collection The list of subscription ids.
results StatusCodeCollection The list of StatusCodes for the Subscriptions to enable/disable.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Reports an error during initialization after the base server object has been started.
protected SetServerError ( ServiceResult error ) : void
error ServiceResult The error.
Результат void

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

Updates the server state.
protected SetServerState ( ServerState state ) : void
state ServerState The state.
Результат void

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

Invokes the SetTriggering service.
public SetTriggering ( RequestHeader requestHeader, uint subscriptionId, uint triggeringItemId, UInt32Collection linksToAdd, UInt32Collection linksToRemove, StatusCodeCollection &addResults, DiagnosticInfoCollection &addDiagnosticInfos, StatusCodeCollection &removeResults, DiagnosticInfoCollection &removeDiagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
subscriptionId uint The subscription id.
triggeringItemId uint The id for the MonitoredItem used as the triggering item.
linksToAdd UInt32Collection The list of ids of the items to report that are to be added as triggering links.
linksToRemove UInt32Collection The list of ids of the items to report for the triggering links to be deleted.
addResults StatusCodeCollection The list of StatusCodes for the items to add.
addDiagnosticInfos DiagnosticInfoCollection The list of diagnostic information for the links to add.
removeResults StatusCodeCollection The list of StatusCodes for the items to delete.
removeDiagnosticInfos DiagnosticInfoCollection The list of diagnostic information for the links to delete.
Результат ResponseHeader

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

Initializes the object with default values.
public StandardServer ( ) : System
Результат System

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

Starts the server application.
protected StartApplication ( ApplicationConfiguration configuration ) : void
configuration ApplicationConfiguration The configuration.
Результат void

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

Invokes the TranslateBrowsePathsToNodeIds service.
public TranslateBrowsePathsToNodeIds ( RequestHeader requestHeader, BrowsePathCollection browsePaths, BrowsePathResultCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
browsePaths BrowsePathCollection The list of browse paths for which NodeIds are being requested.
results BrowsePathResultCollection The list of results for the list of browse paths.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader

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

Translates an exception.
protected TranslateException ( DiagnosticsMasks diagnosticsMasks, IList preferredLocales, ServiceResultException e ) : ServiceResultException
diagnosticsMasks DiagnosticsMasks The fields to return.
preferredLocales IList The preferred locales.
e ServiceResultException The ServiceResultException e.
Результат ServiceResultException

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

Translates an exception.
protected TranslateException ( OperationContext context, ServiceResultException e ) : ServiceResultException
context OperationContext The context.
e ServiceResultException The ServiceResultException e.
Результат ServiceResultException

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

Translates a service result.
protected TranslateResult ( DiagnosticsMasks diagnosticsMasks, IList preferredLocales, ServiceResult result ) : ServiceResult
diagnosticsMasks DiagnosticsMasks The fields to return.
preferredLocales IList The preferred locales.
result ServiceResult The result.
Результат ServiceResult

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

Invokes the UnregisterNodes service.
public UnregisterNodes ( RequestHeader requestHeader, NodeIdCollection nodesToUnregister ) : ResponseHeader
requestHeader RequestHeader The request header.
nodesToUnregister NodeIdCollection The list of NodeIds to unregister
Результат ResponseHeader

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

Verifies that the request header is valid.
protected ValidateRequest ( RequestHeader requestHeader, RequestType requestType ) : OperationContext
requestHeader RequestHeader The request header.
requestType RequestType Type of the request.
Результат OperationContext

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

Verifies that the request header is valid.
protected ValidateRequest ( RequestHeader requestHeader ) : void
requestHeader RequestHeader The request header.
Результат void

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

Inspects the software certificates provided by the server.
protected ValidateSoftwareCertificates ( List softwareCertificates ) : void
softwareCertificates List The software certificates.
Результат void

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

Invokes the Write service.
public Write ( RequestHeader requestHeader, WriteValueCollection nodesToWrite, StatusCodeCollection &results, DiagnosticInfoCollection &diagnosticInfos ) : ResponseHeader
requestHeader RequestHeader The request header.
nodesToWrite WriteValueCollection The list of Nodes, Attributes, and values to write.
results StatusCodeCollection The list of write result status codes for each write operation.
diagnosticInfos DiagnosticInfoCollection The diagnostic information for the results.
Результат ResponseHeader