views:

21

answers:

0

Currently, I've implemented a custom interface

public interface IMessage
{
    void PerformOperation();
}

and I had the Provider Web Part implement this interface.

I've also implemented a custom class to pass to the consumer web part.

public class CustomDataPipe
{
    public int referenceId { get; set; }
}

I was wondering if there was a way to pass both the interface (therefore the consumer web part can call it) and also the custom class to populate data on the consumer.