First drop available of the ChannelManagement library. Currently only support single action channels, meaning that after executing the operation the channel is closed. I hope to add pooling the coming week.
The zip contains the source code and an example project. Not much changes in the ‘end user’ code:
static void Main(string[] args)
{
var myService = ContextRegistry.GetContext().GetObject("MyService") as IService1;
string value = myService.GetData(5);
var returnValue = myService.GetDataUsingDataContract(new CompositeType()
{
BoolValue = false,
StringValue = "Perponcher" });
Console.ReadLine();
}
Out and ref parameters are not yet supported.
WCFChannelManager.zip (1.17 mb)
Series: