NSNotificationCenter.defaultCenter().addObserver(this, _DistributionContextInstantiatedSelector, EODistributionContext.DistributionContextInstantiatedNotification, null);
}
public void _distributionContextInstantiated(NSNotification notification) {
// If this notification is received and the sender is for this session, get the editing context from the EODistributionContext and unregister from the notification.
EODistributionContext distributionContext = (EODistributionContext)(notification.object());
if (distributionContext.session() == this) {
NSNotificationCenter.defaultCenter().removeObserver(this, EODistributionContext.DistributionContextInstantiatedNotification, null);
}
}