コード例 #1
0
        private static IWsFederationConfigurationDbContext ThrowIfNull(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext)
        {
            if (wsFederationConfigurationDatabaseContext == null)
            {
                throw new ArgumentNullException(nameof(wsFederationConfigurationDatabaseContext));
            }

            return(wsFederationConfigurationDatabaseContext);
        }
コード例 #2
0
 public static IQueryable <WsFederationClaimMap> ClaimMapping(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext)
 {
     return(wsFederationConfigurationDatabaseContext.ThrowIfNull().RelyingParties.Include(relyingParty => relyingParty.ClaimMapping).SelectMany(relyingParty => relyingParty.ClaimMapping));
 }
コード例 #3
0
 public static ChangeTracker ChangeTracker(this IWsFederationConfigurationDbContext wsFederationConfigurationDatabaseContext)
 {
     return(wsFederationConfigurationDatabaseContext.Casted().ChangeTracker);
 }
コード例 #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>())));
 }
コード例 #6
0
 public RelyingPartyImporter(IWsFederationConfigurationDbContext databaseContext, ILoggerFactory loggerFactory) : base(loggerFactory)
 {
     this.DatabaseContext = databaseContext ?? throw new ArgumentNullException(nameof(databaseContext));
 }
コード例 #7
0
 public RelyingPartyStore(IWsFederationConfigurationDbContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
 }