private static IWsFederationConfigurationDbContext ThrowIfNull(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext) { if (wsFederationConfigurationDatabaseContext == null) { throw new ArgumentNullException(nameof(wsFederationConfigurationDatabaseContext)); } return(wsFederationConfigurationDatabaseContext); }
public static IQueryable <WsFederationClaimMap> ClaimMapping(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext) { return(wsFederationConfigurationDatabaseContext.ThrowIfNull().RelyingParties.Include(relyingParty => relyingParty.ClaimMapping).SelectMany(relyingParty => relyingParty.ClaimMapping)); }
public static ChangeTracker ChangeTracker(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext) { return(wsFederationConfigurationDatabaseContext.Casted().ChangeTracker); }
private static DbContext Casted(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext) { return((DbContext)wsFederationConfigurationDatabaseContext.ThrowIfNull()); }
protected internal virtual async Task <WsFederationConfigurationImporter> CreateWsFederationConfigurationImporterAsync(IWsFederationConfigurationDbContext wsFederationConfigurationDbContext, IServiceProvider serviceProvider) { return(await Task.FromResult(new WsFederationConfigurationImporter(wsFederationConfigurationDbContext, serviceProvider.GetRequiredService <ILoggerFactory>()))); }
public RelyingPartyImporter(IWsFederationConfigurationDbContext databaseContext, ILoggerFactory loggerFactory) : base(loggerFactory) { this.DatabaseContext = databaseContext ?? throw new ArgumentNullException(nameof(databaseContext)); }
public RelyingPartyStore(IWsFederationConfigurationDbContext context) { this.context = context ?? throw new ArgumentNullException(nameof(context)); }