I have this method on a webpart:
private IFilterData _filterData = null;
[ConnectionConsumer("Filter Data Consumer")]
public void GetConnectionInterface(IFilterData filterData)
{
_filterData = filterData;
}
Now, before I can call upon _filterData, I need to know when i can expect it to not be null. When is this?!
Without knowing this, the best I can do is stuff all of my _filterWebpart dependant code into the last lines of OnPreRender and hope for the best.