Skip to content

Commit

Permalink
Let ServiceProvider be overridden in setter.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Mar 8, 2020
1 parent 53462c9 commit 7fe7659
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions ScreenCast.Core/ServiceContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ 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;
}
}
public static IServiceProvider Instance { get; set; }
}
}

0 comments on commit 7fe7659

Please sign in to comment.