Recursive dependency trees

- Now TorchBase and TorchSession can each have seperate managers
- Managers now have a Dispose function that's run on shutdown
This commit is contained in:
Westin Miller
2017-08-17 23:52:39 -07:00
parent 6b9af71967
commit 42f58a8649
4 changed files with 139 additions and 19 deletions

View File

@@ -12,8 +12,13 @@ namespace Torch.API.Managers
public interface IManager
{
/// <summary>
/// Initializes the manager. Called after Torch is initialized.
/// Initializes the manager. Called once this manager's dependencies have been initialized.
/// </summary>
void Init();
/// <summary>
/// Disposes the manager. Called before this manager's dependencies are disposed.
/// </summary>
void Dispose();
}
}