Pass-thru skia context CallerInfo

Hi i’m trying to embed skia layer in Avalonia, and everything works correct, however, there is small issue with notifications context, basically my container is something like that:

public partial class SkiaLayerControlWrapper
    : SkiaMediaControlWrapperBase<SkiaLayerControl>,
        IDisposable
{

        // this goes to custom alvalonia drawing operation
        public void SetLayer(Optional<ILayer> layer) => _layer; 
        
        // can't figure out what to do here:
        public void SetNotificationsSource(
        // let's pass notiofications via input pin
        IObservable<INotification> notificationsSource)
        {
                // some resubscription handling

                _notificationsSource.Subscribe(notification =>
                    _layer.Value?.Notify(notification, 
                         /* ops we need caller info here */) 
                ); 
            }
        }
}

So the question is how to get CallerInfo from renderer.

Managed to make it work wia special hook:

However would appreciate tips if there is better approach.

I think you need to pass it internally in your object graph. From AvaloniaLayer upwards.

This might be not so easy to do, since I pass native Avalonia control type everywhere, maybe they have some sort of context object for such scenario need to investigate… Thanks for the point.