Pipeline Control

Last post 04-09-2008, 5:10 PM by Gary. 1 replies.
Sort Posts: Previous Next
  •  04-09-2008, 4:43 AM 1016

    Pipeline Control

    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
  •  04-09-2008, 5:10 PM 1019 in reply to 1016

    Re: Pipeline Control

    Can't modify adapters, but I think we can override and provide our own -- I'll try it.
View as RSS news feed in XML