Exemplo n.º 1
0
        private static IWsFederationConfigurationDbContext ThrowIfNull(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext)
        {
            if (wsFederationConfigurationDatabaseContext == null)
            {
                throw new ArgumentNullException(nameof(wsFederationConfigurationDatabaseContext));
            }

            return(wsFederationConfigurationDatabaseContext);
        }
Exemplo n.º 2
0
 public static IQueryable <WsFederationClaimMap> ClaimMapping(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext)
 {
     return(wsFederationConfigurationDatabaseContext.ThrowIfNull().RelyingParties.Include(relyingParty => relyingParty.ClaimMapping).SelectMany(relyingParty => relyingParty.ClaimMapping));
 }
Exemplo n.º 3
0
 public static ChangeTracker ChangeTracker(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext)
 {
     return(wsFederationConfigurationDatabaseContext.Casted().ChangeTracker);
 }
Exemplo n.º 4
0
 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));
 }
Exemplo n.º 7
0
 public RelyingPartyStore(IWsFederationConfigurationDbContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
 }