private static object InvokeBeginMethod(MethodInfo method, ChannelFactory channel, IDictionary <string, object> parameters) { return(INTERNAL_WebMethodsCaller.BeginCallWebMethod <TContract>( channel.Endpoint.Address.Uri.AbsoluteUri, method.Name.Substring(5), // skips "Begin" null, parameters, "1.1")); }
private static object InvokeEndMethod(MethodInfo method, ChannelFactory channel, IDictionary <string, object> parameters) { string name = method.Name.Substring(3); // skips "End" return(INTERNAL_WebMethodsCaller.EndCallWebMethod <TContract>( channel.Endpoint.Address.Uri.AbsoluteUri, name, method.ReturnType, channel.Endpoint.Contract.Operations.Find(name).KnownTypes, parameters, "1.1")); }