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.
