mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
28 lines
586 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|