Example #1
0
        public async Task <bool> ShouldImport()
        {
            var ctx      = _locator.GetSettingsContext();
            var settings = await ctx.GetSettings().ConfigureAwait(false);

            return(!settings.Local.DeclinedPlaywithSixImport &&
                   settings.Local.PlayWithSixImportVersion != ImportVersion);
        }
Example #2
0
        public async Task <string> GetToken()
        {
            var sContext = _locator.GetSettingsContext();

            return((await sContext.GetSettings().ConfigureAwait(false)).Secure.Login?.Authentication.AccessToken);
        }
        public IDomainEventHandler GetSettings()
        {
            var context = _contextFactory.GetSettingsContext();

            return(context.DomainEventHandler);
        }
            public async Task <Guid> GetUserId()
            {
                var settings = await _locator.GetSettingsContext().GetSettings().ConfigureAwait(false);

                return(settings.Secure.Login.IsLoggedIn ? settings.Secure.Login.Account.Id : Guid.Empty);
            }