Hello again,
As you know, I'm evaluating VSTA 2.0 for our application. One of the things we need to be able to do is define a loose contract such as:
public interface IEventHub
{
void Publish(Type subjectType, byte[] subject);
void Subscribe(Type subjectType, ISubscriber);
}
public interface ISubscriber
{
void Receive(byte[] subject);
}
I'd like the byte arrays to be serialized and deserialized in the add-in adapters, so that the add-in sees the real object rather than a byte array. This means the add-in itself requires the subject type be loaded in its AppDomain, but the host does not (since, to the host, it is just a byte array).
Using VSTA, I can of course declare the contract as above. However, do I have the ability to modify the proxy and adapters so that automatic (de)serialization occurs?
Thanks,
Kent