Remotely/ScreenCast.Core/ServiceContainer.cs
2021-07-29 07:56:00 -07:00

28 lines
586 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Remotely.ScreenCast.Core
{
public class ServiceContainer
{
private static IServiceProvider instance;
public static IServiceProvider Instance
{
get
{
return instance;
}
set
{
if (instance != null)
{
throw new Exception("ServiceProvider can only be set once.");
}
instance = value;
}
}
}
}