EasyUA Reference
Session Class Members
See Also  Fields  Properties  Methods  Events Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace : Session Class

Glossary Item Box

The following tables list the members exposed by Session.

Public Constructors

 NameDescription
Public ConstructorSession ConstructorOverloaded.   
Top

Public Fields

 NameDescription
Public FieldReadMaxAgeDefault The default maxAge for Read operations  
Top

Public Properties

 NameDescription
Public PropertyCheckCertifcateDomain If set to true then the domain in the certificate must match the gomain of the used endpoint.  
Public PropertyConfiguredEndpoint Gets the endpoint used to connect to the server.  
Public PropertyConnectionStatus Gets the server connection status.  
Public PropertyDefaultRequestSettings The RequestSettings used for the server access  
Public PropertyDefunctRequestCount Gets the number of outstanding publish or keep alive requests which appear to hung.  
Public PropertyFilterContext Gets the context to use for filter operations.  
Public PropertyGoodPublishRequestCount Gets the number of good outstanding publish requests.  
Public PropertyHandle Gets the local handle assigned to the session  
Public PropertyIdentity Gets the user identity currently used for the session.  
Public PropertyIdentityHistory Gets a list of user identities that can be used to connect to the server.  
Public PropertyLastStatusCheckTime Gets the time of the last keep alive.  
Public PropertyNamespaceIndexManagementIf set to TRUE (the default is false) then the node namespace indices are managed to stay valid even if change in the server.
This is necessary if the client uses node IDs predefiend in code or an application configuration.
The UA servers maintain a namespace URI table and the namespace index in the node IDs is the index in this table. The namespace URI table perssted in the client is compared with the current UA server namespace URI table and indices are adapted if the tables are different.  
Public PropertyNamespaceUris Gets the table of namespace uris known to the server.  
Public PropertyNamespaceUrisPersistedNamespaceURIs that match the NodeIDs persisted in the client application.
Used ony if NamespaceIndexManagement == TRUE.
If the application doesn't set this property before the Create() call then the URIs are tried to be loaded from the file 'appname.url.XML' in the same directory as the appname.exe executable. url is the UA server URL without the xxx://
If undefined and the file doesn't exist then the file is created with the current UA server namespace table.  
Public PropertyOutstandingRequestCount Gets the number of outstanding publish or keep alive requests.  
Public PropertyPreferredLocales Gets the locales that the server should use when returning localized text.  
Public PropertyReconnectPeriod Gets or sets a imtervall in ms attempts are made to server after errors.  
Public PropertyServerUris Gest the table of remote server uris known to the server.  
Public PropertySessionName Gets the name assigned to the session.  
Public PropertySessionTimeoutSets the requested maximum number of milliseconds that a Session should remain open without activity. If the Client fails to issue a Service request within this interval, then the Server shall automatically terminate the Client Session. After server Connect gets the actual maximum number of milliseconds that a Session shall remain open without activity. The Server should attempt to honour the Client request for this parameter, but may negotiate this value up or down to meet its own constraints.  
Public PropertyStatusCheckInterval Gets or Sets how frequently the server is pinged to see if communication is still working.  
Public PropertyStatusCheckStopped Returns true if the session is not receiving keep alives.  
Public PropertySubscriptionCount Gets the number of subscriptions owned by the session.  
Public PropertySubscriptionPriority Gets or sets the priority used in AddSubscription requests.  
Public PropertySubscriptionRequestKeepaliveCount Gets or sets the requested maximum keep-alive count in AddSubscription. When the publishing timer has expired this number of times without requiring any NotificationMessage to be sent, the Subscription sends a keep-alive Message to the Client. The negotiated value for this parameter is returned in the response. If the requested value is 0, the server shall revise with the smallest supported keep-alive count.  
Public PropertySubscriptionRequestLifetimeCount Gets or sets the requested lifetime count. The lifetime count shall be a minimum of three times the keep keep-alive count. When the publishing timer has expired this number of times without a Publish request being available to send a NotificationMessage, then the Subscription shall be deleted by the Server.  
Public PropertySubscriptions Gets the subscriptions owned by the session.  
Public PropertyTimestampToReturn Gets or sets the default timestamp to return.  
Public PropertyTypeTree Gets the cache of the server's type tree.  
Top

Public Methods

 NameDescription
Public MethodAddSubscriptionOverloaded.  Adds a new subscription to the session using default parameters. session.SubscriptionRequestKeepaliveCount session.SubscriptionRequestLifetimeCount session.SubscriptionPriority  
Public MethodBeginAddSubscriptionOverloaded.  Asynchronously adds a new subscription to the session using default parameters. session.SubscriptionRequestKeepaliveCount session.SubscriptionRequestLifetimeCount session.SubscriptionPriority  
Public MethodBeginBrowse Begins an asynchronous invocation of the Browse service.  
Public MethodBeginBrowseNext Begins an asynchronous invocation of the BrowseNext service.  
Public MethodBeginCallOverloaded.  Asynchronously calls the specified method and returns the output arguments.  
Public MethodBeginConnect Asynchronically create the session in the UA server.  
Public MethodBeginGetUaMethodDefinition  
Public MethodBeginHistoryDeleteAtTime Begins an operation to delete the history for a list of variables for the passed timestamps.  
Public MethodBeginHistoryDeleteEvent Begins an operation to delete the event history for a list of event notifier objects.  
Public MethodBeginHistoryDeleteRaw Begins an operation to delete the history for a list of variables in the passed time domain.  
Public MethodBeginHistoryReadAtTimeOverloaded.  Reads the history of item values asynchronously from the OPC server for the given timestamps.  
Public MethodBeginHistoryReadEventOverloaded.  Begins an operation to read the event history for a list of notifiers.  
Public MethodBeginHistoryReadModifiedOverloaded.  Reads the history of modified variable values asynchronously from the OPC server.  
Public MethodBeginHistoryReadProcessedOverloaded.  Reads the processed history of variable values asynchronously from the OPC server based on a passed aggregate.  
Public MethodBeginHistoryReadRawOverloaded.  Reads the history of variable values asynchronously from OPC server.  
Public MethodBeginHistoryUpdateData Begins an operation to update the history for a list of variables.  
Public MethodBeginHistoryUpdateEvent Begins an operation to update the history for a list of event notifier objects.  
Public MethodBeginHistoryUpdateStructureData Begins an operation to update the history for a list of structured metadata variables.  
Public MethodBeginPublish Sends an additional publish request.  
Public MethodBeginReadOverloaded.  Reads values and attributes asynchronously from OPC server.  
Public MethodBeginReadValueOverloaded.  Asynchronously reads the value attribute of the specified node. The server call is made with maxAge=0 and the TimestampsToReturn property.  
Public MethodBeginWriteAttributeOverloaded.  Writes attributes asynchronously to a OPC UA server.  
Public MethodBeginWriteAttributesOverloaded.  Writes attributes asynchronously to a OPC UA server.  
Public MethodBrowse Invokes the Browse service.  
Public MethodBrowseNext Invokes the BrowseNext service.  
Public MethodCallOverloaded.  Calls the specified method and returns the output arguments.  
Public MethodCastToServerType Converts the object to the data type specified by the UA data type NodeId.  
Public MethodChangePreferredLocales Updates the preferred locales used for the session.  
Public MethodCloseOverloaded.  Disconnects from the server and frees any network resources.  
Public MethodConnect Create the session in the UA server.  
Public MethodCreateBrowser Create a browse helper class.  
Public MethodDispose  
Public MethodEndAddSubscription Completes an asynchronous AddSubscription operation.  
Public MethodEndBrowse Finishes an asynchronous invocation of the Browse service.  
Public MethodEndBrowseNext Finishes an asynchronous invocation of the BrowseNext service.  
Public MethodEndCall Get the result of an asynchronous method call.  
Public MethodEndConnect Completes an asynchronous Connect operation.  
Public MethodEndGetUaMethodDefinition Get the result of an asynchronous BeginGetUaMethodDefinition.  
Public MethodEndHistoryDeleteAtTime Ends an operation to delete the history for a list of variables.  
Public MethodEndHistoryDeleteEvent Ends an operation to delete the history for a list of variables.  
Public MethodEndHistoryDeleteRaw Ends an operation to delete the history for a list of variables.  
Public MethodEndHistoryReadAtTime Completes an asynchronous HistoryReadAtTime operation.  
Public MethodEndHistoryReadEvent Ends an operation to read the event history for a list of notifiers.  
Public MethodEndHistoryReadModified Completes an asynchronous HistoryReadModified operation.  
Public MethodEndHistoryReadProcessed Completes an asynchronous HistoryReadProcessed operation.  
Public MethodEndHistoryReadRaw Completes an asynchronous HistoryReadRaw operation.  
Public MethodEndHistoryUpdateData Ends an operation to update the history for a list of variables.  
Public MethodEndHistoryUpdateEvent Ends an operation to update the history for a list of event notifier objects.  
Public MethodEndHistoryUpdateStructureData Ends an operation to update the history for a list of structured metadata variables.  
Public MethodEndRead Completes an asynchronous read operation.  
Public MethodEndReadValue Completes an asynchronous read operation.  
Public MethodEndWriteAttribute Ends an asynchronous write operation.  
Public MethodEndWriteAttributes Ends an asynchronous write operation.  
Public MethodFetchInverseReferences Fetches the nodes that have a reference to the specified node.  
Public MethodFetchNamespaceTables Updates the local copy of the server's namespace uri and server uri tables.  
Public MethodFetchReferences Fetches all references for the specified node.  
Public MethodFetchTypeTree Updates the cache with the type and its subtypes.  
Public MethodFindComponentIds Finds the NodeIds for the components for an instance.  
Public MethodFindDataDescription Returns the data description for the encoding.  
Public MethodFindDataDictionary Returns the data dictionary that constains the description.  
Public MethodGetAsyncError Retrieve the async handler exception indicator.  
Public MethodGetSystemTypeOverloaded.  Get the data type of the specified VariablNode as a System Type  
Public MethodGetUaMethodDefinition Retrieve the argument definition for the method specified by the node identifier (item ID).  
Public MethodHistoryDeleteAtTimeOverloaded.  Deletes the history for a list of variables for the passed timestamps.  
Public MethodHistoryDeleteEventOverloaded.  Deletes the event history for a list of event notifier objects.  
Public MethodHistoryDeleteRawOverloaded.  Deletes the history for a list of variables in the passed time domain.  
Public MethodHistoryReadAtTimeOverloaded.  Reads the history of item values synchronously from the OPC server for the given timestamps.  
Public MethodHistoryReadEventOverloaded.  Reads the event history for a list of event notifier objects synchronously from an OPC server.  
Public MethodHistoryReadModifiedOverloaded.  Reads the history of modified variable values synchronously from the OPC server.  
Public MethodHistoryReadProcessedOverloaded.  Reads the processed history of variable values synchronously from the OPC server based on a passed aggregate.  
Public MethodHistoryReadRawOverloaded.  Reads the history of variable values synchronously from OPC server.  
Public MethodHistoryUpdateDataOverloaded.  Updates the history for a list of variables.  
Public MethodHistoryUpdateEventOverloaded.  Updates the event history for a list of event notifier objects.  
Public MethodHistoryUpdateStructureDataOverloaded.  Updates the history for a list of for structured metadata variables.  
Public MethodMakeWriteValueBuilds a WriteValue object with the specified value.
The value is converted to the datatype of this VariableNode in the server.  
Public MethodReadOverloaded. Reads values and attributes synchronously from OPC server.
The default requests settings are used. The timestamps are returned according the TimestampToReturn property (the default is SOURCE). MaxAge is set to 60000 (the cache value is returned unless the cache value is older than 1 minute).  
Public MethodReadAttributeOverloaded.  Reads the value of the specified attribute of the specified node. The server call is made with maxAge=0 and the TimestampsToReturn property.  
Public MethodReadAttributes Reads the value of the specified attributes of the specified nodes. The server call is made with maxAge=0 and the TimestampsToReturn property.  
Public MethodReadAvailableEncodings Returns the available encodings for a node  
Public MethodReadDisplayName Reads the display name for a set of Nodes.  
Public MethodReadNode Reads the values for the node attributes and returns a Node object. The server call is made with maxAge=0 and TimestampsToReturn.Neither.  
Public MethodReadNodes Reads the values for the node attributes and returns a node object. The server call is made with maxAge=0 and TimestampsToReturn.Neither.  
Public MethodReadValue Reads the VALUE attribute of the specified node. The server call is made with maxAge=0 and the TimestampsToReturn property.  
Public MethodReconnect Reconnects to the server after a network failure.  
Public MethodRemoveSubscription Removes a subscription from the session.  
Public MethodRemoveSubscriptions Removes a list of subscriptions from the sessiont.  
Public MethodRepublish Sends a republish request.  
Public MethodSave Saves a set of subscriptions.  
Public MethodUpdateSession Updates the user identity and/or locales used for the session.  
Public MethodWriteAttribute Writes one attribute synchronously to server.  
Public MethodWriteAttributesOverloaded.  Writes attributes synchronously to server.  
Top

Public Events

 NameDescription
Public EventNotifyUntrustedCertificate handler that is called when the server certificate is untrusted  
Public EventPublishError Raised when an exception occurs while processing a publish response.  
Public EventPublishNotification Raised when a notification message arrives in a publish response.  
Public EventReconnectComplete Raised when a reconnect operation completes.  
Public EventRenewUserIdentity Raised before a reconnect operation completes.  
Public EventSessionClosing Raised to indicate the session is closing.  
Public EventStatusChange Raised when a StatusCheck server access failed or detected a changed server state.  
Public EventSubscriptionsChanged Raised when a subscription is added or removed  
Top

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.