using System; using Avalonia.Markup.Xaml; namespace Avalonia.Skia.Lottie; internal static class ServiceProviderExtensions { public static T GetService(this IServiceProvider sp) { return (T)(sp?.GetService(typeof(T))); } public static Uri GetContextBaseUri(this IServiceProvider ctx) { return ctx.GetService().BaseUri; } }