Example #1
0
        public void Initialize(ApplicationStartupHandler handler, IDIContext container)
        {
            _container           = container ?? throw new ArgumentNullException(nameof(container));
            _memoryReaderManager = new FFXIVMemoryManager(container);

            _container.Register <IMemoryReaderManager>((c, p) => _memoryReaderManager);
        }
Example #2
0
        public void Dispose()
        {
            _container?.Unregister <FFXIVMemoryReader>();
            _memoryReaderManager?.Dispose();

            _memoryReaderManager = null;
            _container           = null;
        }