Example #1
0
        public void SetCurrent(ExtendedTox tox)
        {
            _toxAv?.Dispose();

            _toxAv = new ToxAv(tox);

            RegisterHandlers();
        }
Example #2
0
        public async Task SetAsCurrent()
        {
            var toxInstance = new ExtendedTox(new ToxOptions(true, true), _toxData);

            _toxModel.SetCurrent(toxInstance);
            await _toxModel.SaveDataAsync();

            _toxModel.Start();
            await _avatarManager.LoadAvatars();
        }