I have a WCF service and I'm adding it to MEF by doing this:
public void ResolveInstance(EndpointAddress address, ref CompositionBatch batch)
_serviceInstance = ChannelFactory<T>.CreateChannel(new NetTcpBinding(), address);
And here's the scenario:
I call this method on start up. I should also call this method whenever there's been changes in the address. therefore I have to recreate the channel and recompose the ExportedValue.
How will I be able to recompose this?