diff --git a/Torch.API/Session/ITorchSessionManager.cs b/Torch.API/Session/ITorchSessionManager.cs
index 78ccfaf..08fef9e 100644
--- a/Torch.API/Session/ITorchSessionManager.cs
+++ b/Torch.API/Session/ITorchSessionManager.cs
@@ -15,7 +15,7 @@ namespace Torch.API.Session
///
/// The session to construct a bound manager for
/// The manager that will live in the session, or null if none.
- public delegate IManager SessionManagerFactory(ITorchSession session);
+ public delegate IManager SessionManagerFactoryDel(ITorchSession session);
///
/// Manages the creation and destruction of instances for each created by Space Engineers.
@@ -33,7 +33,7 @@ namespace Torch.API.Session
/// Session based manager supplier
/// true if added, false if already present
/// If the factory is null
- bool AddFactory(SessionManagerFactory factory);
+ bool AddFactory(SessionManagerFactoryDel factory);
///
/// Remove the given factory from the suppliers for session based managers
@@ -41,6 +41,6 @@ namespace Torch.API.Session
/// Session based manager supplier
/// true if removed, false if not present
/// If the factory is null
- bool RemoveFactory(SessionManagerFactory factory);
+ bool RemoveFactory(SessionManagerFactoryDel factory);
}
}
diff --git a/Torch/Session/TorchSessionManager.cs b/Torch/Session/TorchSessionManager.cs
index cd7eda4..3e4b1a6 100644
--- a/Torch/Session/TorchSessionManager.cs
+++ b/Torch/Session/TorchSessionManager.cs
@@ -24,14 +24,14 @@ namespace Torch.Session
///
public ITorchSession CurrentSession => _currentSession;
- private readonly HashSet _factories = new HashSet();
+ private readonly HashSet _factories = new HashSet();
public TorchSessionManager(ITorchBase torchInstance) : base(torchInstance)
{
}
///
- public bool AddFactory(SessionManagerFactory factory)
+ public bool AddFactory(SessionManagerFactoryDel factory)
{
if (factory == null)
throw new ArgumentNullException(nameof(factory), "Factory must be non-null");
@@ -39,7 +39,7 @@ namespace Torch.Session
}
///
- public bool RemoveFactory(SessionManagerFactory factory)
+ public bool RemoveFactory(SessionManagerFactoryDel factory)
{
if (factory == null)
throw new ArgumentNullException(nameof(factory), "Factory must be non-null");
@@ -56,7 +56,7 @@ namespace Torch.Session
_log.Info($"Starting new torch session for {MySession.Static.Name}");
_currentSession = new TorchSession(Torch, MySession.Static);
- foreach (SessionManagerFactory factory in _factories)
+ foreach (SessionManagerFactoryDel factory in _factories)
{
IManager manager = factory(CurrentSession);
if (manager != null)