Pipeline Control

Latest post 04-09-2008 5:10 PM by Gary. 1 replies.
  • 04-09-2008 4:43 AM

    • kentcb
    • Top 50 Contributor
    • Joined on 04-04-2008
    • Posts 4

    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 In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 293

    Re: Pipeline Control

    Can't modify adapters, but I think we can override and provide our own -- I'll try it.
Page 1 of 1 (2 items) | RSS
Copyright Summit Software Company, 2008. All rights reserved.