18 lines
408 B
C#
18 lines
408 B
C#
|
|
using System;
|
||
|
|
|
||
|
|
namespace Microsoft.Maui.Platform.Linux.Hosting;
|
||
|
|
|
||
|
|
public class ScopedLinuxMauiContext : IMauiContext
|
||
|
|
{
|
||
|
|
private readonly LinuxMauiContext _parent;
|
||
|
|
|
||
|
|
public IServiceProvider Services => _parent.Services;
|
||
|
|
|
||
|
|
public IMauiHandlersFactory Handlers => _parent.Handlers;
|
||
|
|
|
||
|
|
public ScopedLinuxMauiContext(LinuxMauiContext parent)
|
||
|
|
{
|
||
|
|
_parent = parent ?? throw new ArgumentNullException("parent");
|
||
|
|
}
|
||
|
|
}
|