RemoteService

Overview

The RemoteService class is used to represent the connection to a remote server. RemoteService components are usually not used by themselves, but in combinations with other components that need to make remote requests, such as DynamicRequest or Data Abstract's RemoteDataAdapter.

Location

Implements

 

constructor

Creates a new instance of the RemoteService class.

 

constructor

 

RemoteService()

 

Sub New

constructor (IMessage, IClientChannel, Boolean, String)

Creates a new instance of the RemoteService class and sets its properties according to the provided constructor arguments.

 

constructor(message: IMessage; channel: IClientChannel; cloneMessage: Boolean; serviceName: String)

 

RemoteService(IMessage message, IClientChannel channel, Boolean cloneMessage, String serviceName)

 

Sub New (message As IMessage, channel As IClientChannel, cloneMessage As Boolean, serviceName As String)

Parameters:

  • message: Message instance to be used to communicate with the remote server
  • channel: Client channel instance to be used to communicate with the remote server
  • cloneMessage: A flag indicating whether the message should be cloned while performing the remote server call.
  • serviceName: Remote service name

constructor (String, Boolean, String)

Creates a new instance of the RemoteService class and sets its properties according to the provided constructor arguments.

Client channel and message are instantiated based on the provided server Url.

 

constructor(serverUri: String; cloneMessage: Boolean; serviceName: String)

 

RemoteService(String serverUri, Boolean cloneMessage, String serviceName)

 

Sub New (serverUri As String, cloneMessage As Boolean, serviceName As String)

Parameters:

  • serverUri: Remote server Uri.
  • cloneMessage: A flag indicating whether the message should be cloned while performing the remote server call.
  • serviceName: Remote service name

constructor (IContainer)

Creates a new instance of the RemoteService class.

 

constructor(container: IContainer)

 

RemoteService(IContainer container)

 

Sub New (container As IContainer)

Parameters:

  • container: Reserved

Channel

Gets or sets the instance used to access the remote RemObjects service.

 

property Channel: IClientChannel read write;

 

IClientChannel Channel { get; set; }

 

Property Channel As IClientChannel

CloneMessage

Gets or sets a flag indicating whether the IRemoteService instance should be cloned while performing the remote server call.

The default value is false

 

property CloneMessage: Boolean read write;

 

Boolean CloneMessage { get; set; }

 

Property CloneMessage As Boolean

Message

Gets or sets the Interface IMessage instance used to access the remote RemObjects service.

 

property Message: IMessage read write;

 

IMessage Message { get; set; }

 

Property Message As IMessage

ServiceName

Gets or sets name of the remote service.

 

property ServiceName: String read write;

 

String ServiceName { get; set; }

 

Property ServiceName As String

 

Channel

Gets or sets the instance used to access the remote RemObjects service.

 

property Channel: IClientChannel read write;

 

IClientChannel Channel { get; set; }

 

Property Channel As IClientChannel

CloneMessage

Gets or sets a flag indicating whether the IRemoteService instance should be cloned while performing the remote server call.

The default value is false

 

property CloneMessage: Boolean read write;

 

Boolean CloneMessage { get; set; }

 

Property CloneMessage As Boolean

Message

Gets or sets the Interface IMessage instance used to access the remote RemObjects service.

 

property Message: IMessage read write;

 

IMessage Message { get; set; }

 

Property Message As IMessage

ServiceName

Gets or sets name of the remote service.

 

property ServiceName: String read write;

 

String ServiceName { get; set; }

 

Property ServiceName As String

 

constructor

Creates a new instance of the RemoteService class.

 

constructor

 

RemoteService()

 

Sub New

constructor (IMessage, IClientChannel, Boolean, String)

Creates a new instance of the RemoteService class and sets its properties according to the provided constructor arguments.

 

constructor(message: IMessage; channel: IClientChannel; cloneMessage: Boolean; serviceName: String)

 

RemoteService(IMessage message, IClientChannel channel, Boolean cloneMessage, String serviceName)

 

Sub New (message As IMessage, channel As IClientChannel, cloneMessage As Boolean, serviceName As String)

Parameters:

  • message: Message instance to be used to communicate with the remote server
  • channel: Client channel instance to be used to communicate with the remote server
  • cloneMessage: A flag indicating whether the message should be cloned while performing the remote server call.
  • serviceName: Remote service name

constructor (String, Boolean, String)

Creates a new instance of the RemoteService class and sets its properties according to the provided constructor arguments.

Client channel and message are instantiated based on the provided server Url.

 

constructor(serverUri: String; cloneMessage: Boolean; serviceName: String)

 

RemoteService(String serverUri, Boolean cloneMessage, String serviceName)

 

Sub New (serverUri As String, cloneMessage As Boolean, serviceName As String)

Parameters:

  • serverUri: Remote server Uri.
  • cloneMessage: A flag indicating whether the message should be cloned while performing the remote server call.
  • serviceName: Remote service name

constructor (IContainer)

Creates a new instance of the RemoteService class.

 

constructor(container: IContainer)

 

RemoteService(IContainer container)

 

Sub New (container As IContainer)

Parameters:

  • container: Reserved

See Also