9using System.Threading.Tasks;
39 : this(MethodCaller.CreateInstance(objectType))
63 return MethodCaller.CallMethodIfImplemented(this.
Instance, method);
78 return MethodCaller.CallMethodIfImplemented(this.
Instance, method, parameters);
91 return MethodCaller.CallMethod(this.
Instance, method);
105 public object CallMethod(
string method, params
object[] parameters)
107 return MethodCaller.CallMethod(this.
Instance, method, parameters);
121 await MethodCaller.CallMethodTryAsync(this.
Instance, methodName);
146 await MethodCaller.CallMethodTryAsync(this.
Instance, methodName, parameters);
170 var method = ServiceProviderMethodCaller.FindDataPortalMethod<T>(
174 Utilities.ThrowIfAsyncMethodOnSyncClient(isSync, method.MethodInfo);
175 await ServiceProviderMethodCaller.CallMethodTryAsync(
Instance, method, parameters).ConfigureAwait(
false);
Base type for data portal operation attributes.
A strongly-typed resource class, for looking up localized strings, etc.
static string MethodCallFailed
Looks up a localized string similar to method call failed.
This exception is returned from the CallMethod method in the server-side DataPortal and contains the ...
Enables simple invocation of methods against the contained object using late binding.
async Task CallMethodTryAsync(string methodName, params object[] parameters)
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes ...
LateBoundObject(object instance)
Contains the provided object within a new LateBoundObject.
object CallMethodIfImplemented(string method, params object[] parameters)
Uses reflection to dynamically invoke a method if that method is implemented on the target object.
async Task CallMethodTryAsync(string methodName)
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes ...
object CallMethod(string method)
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the...
object CallMethodIfImplemented(string method)
Uses reflection to dynamically invoke a method if that method is implemented on the target object.
async Task CallMethodTryAsyncDI< T >(bool isSync, params object[] parameters)
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes ...
LateBoundObject(Type objectType)
Creates an instance of the specified type and contains it within a new LateBoundObject.
object CallMethod(string method, params object[] parameters)
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the...
object Instance
Object instance managed by LateBoundObject.