public AppUpdater(INetworkStatus network = null, IResourcesHelper resources = null) { this.network = network ?? new NetworkStatus(); this.resources = resources == null ? new ResourcesHelper().GetResourceLoader(ResourceMapIds.Strings) : resources.GetResourceLoader(ResourceMapIds.Strings); this.storeContext = StoreContext.GetDefault(); this.localSettings = ApplicationData.Current.LocalSettings; }
public EmailHandler(IConfiguration config, IResourcesHelper resourcesHelper, ITokenHandler tokenHandler) { _configuration = config; _resourcesHelper = resourcesHelper; _tokenHandler = tokenHandler; hostEmail = _configuration["AppSettings:HostEmail"]; portEmail = _configuration["AppSettings:PortEmail"]; userNameEmail = _configuration["AppSettings:UsernameEmail"]; passwordEmail = _configuration["AppSettings:PasswordEmail"]; noReplyEmail = _configuration["AppSettings:NoReplayEmail"]; smtpClient = new SmtpClient(this.hostEmail, Convert.ToInt32(this.portEmail)) { Credentials = new NetworkCredential(this.userNameEmail, this.passwordEmail), EnableSsl = true, }; }