 | RpcHelperCreateClientT Method |
Creates a client for the specified RPC service.
Namespace: Ookii.Jumbo.RpcAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static T CreateClient<T>(
string hostName,
int port,
string objectName
)
Public Shared Function CreateClient(Of T) (
hostName As String,
port As Integer,
objectName As String
) As T
public:
generic<typename T>
static T CreateClient(
String^ hostName,
int port,
String^ objectName
)
static member CreateClient :
hostName : string *
port : int *
objectName : string -> 'T
Parameters
- hostName String
- The host name of the RPC server.
- port Int32
- The port of the RPC server.
- objectName String
- The object name of the service.
Type Parameters
- T
- The type of the RPC interface.
Return Value
TAn object that implements the specified interface that forwards all calls to the specified service.
See Also