JHWcfProxy.Invoke(TContractClient, TReturn) Method (TContractClient, Func(TContractClient, TReturn))

DCSoft.DBUtilityGeneric

JHWcfProxyInvokeTContractClient, TReturn Method (TContractClient, FuncTContractClient, TReturn)
执行 Wcf 代理类方法,并返回执行结果

Namespace: DCSoft.Utility.ServiceModel
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static TReturn Invoke<TContractClient, TReturn>(
	TContractClient client,
	Func<TContractClient, TReturn> func
)
where TContractClient : ICommunicationObject

Parameters

client
Type: TContractClient
代理类
func
Type: SystemFuncTContractClient, TReturn
封装一个具有一个参数并返回 TResult 参数指定的类型值的方法。

Type Parameters

TContractClient
继承 ICommunicationObject 的类型
TReturn
Object 类型

Return Value

Type: TReturn
TResult 类型的结果
See Also