Click or drag to resize

ClientHelper Class

Component that provides client-side functionality to ServiceHelper.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      GSF.ServiceProcessClientHelper

Namespace: GSF.ServiceProcess
Assembly: GSF.ServiceProcess (in GSF.ServiceProcess.dll) Version: 2.4.218-beta
Syntax
View Source

The ClientHelper type exposes the following members.

Constructors
 NameDescription
Public methodClientHelper Initializes a new instance of the ClientHelper class.
Public methodClientHelper(IContainer) Initializes a new instance of the ClientHelper class.
Top
Properties
 NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event.
(Inherited from Component)
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public propertyEnabled Gets or sets a boolean value that indicates whether the ClientHelper is currently enabled.
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
Public propertyPassword Gets or sets the password of the ClientHelper's user to be used for authenticating is null the ServiceHelper.
Public propertyPersistSettings Gets or sets a boolean value that indicates whether the settings of ClientHelper are to be saved to the config file.
Public propertyRemotingClient Gets or sets the ClientBase object used for communicating with the ServiceHelper.
Public propertySecurePassword Gets or sets the password of the ClientHelper's user to be used for authenticating with the ServiceHelper.
Public propertySerializationFormat Gets or sets a value that indicates the desired message SerializationFormat for interaction with ServiceHelper.
Public propertySettingsCategory Gets or sets the category under which the settings of ClientHelper are to be saved to the config file if the PersistSettings property is set to true.
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertyStatusMessageFilter Gets or sets the command used to negotiate the status message filter with the service when the client connects.
Public propertyUsername Gets or sets the username of the ClientHelper's user to be used for authenticating with the ServiceHelper.
Top
Methods
 NameDescription
Public methodBeginInit Performs necessary operations before the ClientHelper properties are initialized.
Public methodConnect Connects RemotingClient to RemotingServer and wait until authentication is complete.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public methodDisconnect Disconnects RemotingClient from RemotingServer.
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the ClientHelper object and optionally releases the managed resources.
(Overrides ComponentDispose(Boolean))
Public methodEndInit Performs necessary operations after the ClientHelper properties are initialized.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitialize Initializes the ClientHelper.
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public methodLoadSettings Loads saved settings for the ClientHelper from the config file if the PersistSettings property is set to true.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Protected methodOnAuthenticationFailure Raises the AuthenticationFailure event.
Protected methodOnAuthenticationSuccess Raises the AuthenticationSuccess event.
Protected methodOnProcessStateChanged Raises the ProcessStateChanged event.
Protected methodOnReceivedServiceResponse Raises the ReceivedServiceResponse event.
Protected methodOnReceivedServiceUpdate Raises the ReceivedServiceUpdate event.
Protected methodOnServiceStateChanged Raises the ServiceStateChanged event.
Protected methodOnTelnetSessionEstablished Raises the TelnetSessionEstablished event.
Protected methodOnTelnetSessionTerminated Raises the TelnetSessionTerminated event.
Public methodStatic memberPretendRequest Returns an ClientRequestInfo object for the specified requestCommand that can be used to invoke ClientRequestHandlers manually as if the request was sent by a ClientHelper remotely.
Public methodSaveSettings Saves settings for the ClientHelper to the config file if the PersistSettings property is set to true.
Public methodSendRequest(ClientRequest) Sends a request to the ServiceHelper using RemotingClient.
Public methodSendRequest(String) Sends a request to the ServiceHelper using RemotingClient.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Public methodStatic memberTryParseActionableResponse Attempts to parse an actionable response sent from the service.
Top
Events
 NameDescription
Public eventAuthenticationFailure Occurs when the ServiceHelper fails to authenticate the ClientHelper.
Public eventAuthenticationSuccess Occurs when the ServiceHelper successfully authenticates the ClientHelper.
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Public eventProcessStateChanged Occurs when the state of a ServiceProcess is changed.
Public eventReceivedServiceResponse Occurs when a custom ServiceResponse is received from the ServiceHelper.
Public eventReceivedServiceUpdate Occurs when a status update is received from the ServiceHelper.
Public eventServiceStateChanged Occurs when the state of the ServiceHelper is changed.
Public eventTelnetSessionEstablished Occurs when a telnet session has been established.
Public eventTelnetSessionTerminated Occurs when a telnet session has been terminated.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultPassword Specifies the default value for the Password property.
Public fieldStatic memberDefaultPersistSettings Specifies the default value for the PersistSettings property.
Public fieldStatic memberDefaultSettingsCategory Specifies the default value for the SettingsCategory property.
Public fieldStatic memberDefaultStatusMessageFilter Specifies the default value for the StatusMessageFilter property.
Public fieldStatic memberDefaultUsername Specifies the default value for the Username property.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also