public void Initialize(ApplicationStartupHandler handler, IDIContext container) { _container = container ?? throw new ArgumentNullException(nameof(container)); _memoryReaderManager = new FFXIVMemoryManager(container); _container.Register <IMemoryReaderManager>((c, p) => _memoryReaderManager); }
public void Dispose() { _container?.Unregister <FFXIVMemoryReader>(); _memoryReaderManager?.Dispose(); _memoryReaderManager = null; _container = null; }