public AuthenticationManager( IIdentityService identityService, IIdentityStorage storage) { this.identityService = identityService; this.storage = storage; }
public Handler(IUserRoleService <ApplicationUser, ApplicationRole> userRoleService, IIdentityStorage <ApplicationUser, string> userStorage, IMapper mapper) { _userRoleService = userRoleService; _userStorage = userStorage; _mapper = mapper; }
public Handler(IXNewsDbContext context, IMapper mapper, IIdentityStorage <ApplicationUser, string> userStorage) { _context = context; _mapper = mapper; _userStorage = userStorage; }
public GeneEditorService(IUnitOfWork unitOfWork, ICodonOptimizationService codonOptimizationService, IGeneFragmentationService geneFragmentationService, IIdentityStorage identityStorage) { this.unitOfWork = unitOfWork; this.codonOptimizationService = codonOptimizationService; this.geneFragmentationService = geneFragmentationService; this.identityStorage = identityStorage; }
public Handler(IIdentityStorage <ApplicationUser, string> userStorage, IIdentityStorage <ApplicationRole, string> roleStorage, IUserRoleService <ApplicationUser, ApplicationRole> userRoleService) { _userStorage = userStorage; _roleStorage = roleStorage; _userRoleService = userRoleService; }
protected IdentityStorageTests( Func <string, IIdentityStorage> storageFactory, ITestOutputHelper testOutputHelper ) { _testOutputHelper = testOutputHelper; var clusterName = $"test-{Guid.NewGuid().ToString("N").Substring(0, 6)}"; _storage = storageFactory(clusterName); _storageInstance2 = storageFactory(clusterName); }
/// <summary> /// Throws <see cref="NotFoundException"/> if the item with the specified <paramref name="id"/> doesn't exist. /// </summary> public static async Task ThrowIfDoesNotExistAsync <TItem, TItemId>(this IIdentityStorage <TItem, TItemId> storage, TItemId id) where TItem : class { bool itemExists = await storage.Exists(id) .ConfigureAwait(false); if (!itemExists) { throw new NotFoundException(typeof(TItem).Name, id); } }
public IdentityService(IIdentityAccessor claimsPrincipalAccessor, IIdentityStorage identityStorage, IIdentityAttributeStorage identityAttributeStorage, ILogger <IdentityService> log, IHttpContextAccessor httpContextAccessor) { _claimsPrincipalAccessor = claimsPrincipalAccessor; _identityStorage = identityStorage; _identityAttributeStorage = identityAttributeStorage; _httpContextAccessor = httpContextAccessor; _log = log; }
/// <summary> /// Checks if the <paramref name="storage"/> contains an item with the specified <paramref name="id"/>. /// </summary> public static async Task <bool> Exists <TItem, TItemId> ( this IIdentityStorage <TItem, TItemId> storage, TItemId id ) where TItem : class { TItem item = await storage.FindByIdAsync(id) .ConfigureAwait(false); return(item != null); }
public IdentityService(IIdentityAccessor claimsPrincipalAccessor, IdentityOptions identityOptions, IIdentityStorage identityStorage, ILocalAccountService localAccountService, ILogger <IdentityService> log, IHttpContextAccessor httpContextAccessor) { _claimsPrincipalAccessor = claimsPrincipalAccessor; _identityOptions = identityOptions; _identityStorage = identityStorage; _localAccountService = localAccountService; _httpContextAccessor = httpContextAccessor; _log = log; }
public CreatePostCommandValidators(IXNewsDbContext context, IIdentityStorage <ApplicationUser, string> userStorage) { RuleFor(c => c.Content) .NotEmpty() .Length(PostValidationOptions.ContentMinLength, PostValidationOptions.ContentMaxLength); RuleFor(c => c.Title) .NotEmpty() .Length(PostValidationOptions.TitleMinLength, PostValidationOptions.TitleMaxLength) .UniqueInsideOfDbSetColumn(context.Post, p => p.Title); RuleFor(c => c.UserId) .NotEmpty(); }
public void ReadTeamsAndSchools( ) { Schools.Clear( ); Teams.Clear( ); Athletes.Clear( ); doc.Load(FilePath); foreach (XmlElement teams in doc.SelectSingleNode("EntryForm").SelectSingleNode("Teams").ChildNodes) { IIdentityStorage t = new IIdentityStorage(); t.ShortName = teams.InnerText; t.item = FileIO.FConnFile.GetFileDetails( ).IO.GetAll <DM.Team> ( ).Where(te => te.ShortName.Trim( ) == t.ShortName.Trim( )).FirstOrDefault( ); t.processor = this; Teams.Add(t); } foreach (XmlElement school in doc.SelectSingleNode("EntryForm").SelectSingleNode("Schools").ChildNodes) { IIdentityStorage t = new IIdentityStorage(); t.ShortName = school.InnerText; t.item = FileIO.FConnFile.GetFileDetails( ).IO.GetAll <DM.School> ( ).Where(te => te.ShortName.Trim() == t.ShortName.Trim()).FirstOrDefault( ); t.isSchool = true; t.processor = this; Schools.Add(t); } foreach (XmlElement athlete in doc.SelectSingleNode("EntryForm").SelectSingleNode("Entries").ChildNodes) { try { AthleteStorage a = new AthleteStorage(); a.Name = athlete.Attributes["Name"].Value.ToString( ).Replace(" ", " "); a.DateOfBirth = DateTime.Parse(athlete.Attributes["DateOfBirth"].Value); a.School = FileIO.FConnFile.GetFileDetails( ).IO.GetAll <DM.School> ( ).Where(te => te.ShortName.Trim( ) == athlete.Attributes["SchoolCode"].Value.Trim( )).FirstOrDefault( ); a.Team = FileIO.FConnFile.GetFileDetails( ).IO.GetAll <DM.Team> ( ).Where(te => te.ShortName.Trim( ) == athlete.Attributes["TeamCode"].Value.Trim( )).FirstOrDefault( ); if (athlete.Attributes["GlobalID"].Value != "") { a.GlobalID = int.Parse(athlete.Attributes["GlobalID"].Value); } if (athlete.Attributes["CategoryCode"].Value.Contains("B")) { a.Gender = DM.Gender.Male; } else { a.Gender = DM.Gender.Female; } a.EventCodes = new List <string> ( ); if (athlete.SelectSingleNode("Events").HasChildNodes) { foreach (XmlElement ev in athlete.SelectSingleNode("Events").ChildNodes) { a.EventCodes.Add(ev.Attributes["EventCode"].Value); } } Athletes.Add(a); Console.WriteLine("Athlete Read: " + a.Name); } catch (Exception ex) { MessageBox.Show("Failed to read " + athlete.Attributes["Name"].Value.ToString( ) + "\n" + ex.Message); continue; } } Wizard.changeHappend( ); }
public Handler(IIdentityStorage <ApplicationRole, string> roleStorage, IMapper mapper) { _roleStorage = roleStorage; _mapper = mapper; }
public IdentityStorageLogging(IIdentityStorage storage) => _storage = storage;
public GeneSynthesizerService(IUnitOfWork unitOfWork, IIdentityStorage identityStorage, IChannelConfigurationService channelConfigurationService) : base(unitOfWork, identityStorage) { this.channelConfigurationService = channelConfigurationService; }
public Handler(IIdentityStorage <ApplicationRole, string> roleStorage) { _roleStorage = roleStorage; }
public ManualControlService(IUnitOfWork unitOfWork, IIdentityStorage identityStorage) : base(unitOfWork, identityStorage) { }
public Handler(IIdentityStorage <ApplicationUser, string> userStorage, IMapper mapper) { _userStorage = userStorage; _mapper = mapper; }
public GeneController(IUnitOfWork unitOfWork, IIdentityStorage identityStorage) { this.unitOfWork = unitOfWork; this.identityStorage = identityStorage; }
public IdentityStorageLookup(IIdentityStorage storage) => Storage = storage;
public Handler(IJwtService <ApplicationUser, string, RefreshToken> jwtService, IIdentityStorage <ApplicationUser, string> userStorage) { _jwtService = jwtService; _userStorage = userStorage; }
public DefaultAuthenticationManager(IIdentiryFactory identityFactory, IIdentityStorage identityStorage) { _identityFactory = identityFactory; _identityStorage = identityStorage; }
public Handler(IIdentityStorage <ApplicationUser, string> userStorage) { _userStorage = userStorage; }
protected BaseService(IUnitOfWork unitOfWork, IIdentityStorage identityStorage) { this.unitOfWork = unitOfWork; this.identityStorage = identityStorage; }
public Handler(IIdentityStorage <ApplicationUser, string> userStorage, IUserPasswordService <ApplicationUser, string> userPasswordService) { _userStorage = userStorage; _userPasswordService = userPasswordService; }
public CycleEditorService(IUnitOfWork unitOfWork, IIdentityStorage identityStorage) { this.unitOfWork = unitOfWork; this.identityStorage = identityStorage; }
public KatastralgemeindenController(IUnitOfWork unitOfWork, IIdentityStorage identityStorage) { UnitOfWork = unitOfWork; this.identityStorage = identityStorage; }
public GeneOrderService(IUnitOfWork unitOfWork, IIdentityStorage identityStorage) { this.unitOfWork = unitOfWork; this.identityStorage = identityStorage; }
public ChannelConfigurationService(IUnitOfWork unitOfWork, IIdentityStorage identityStorage) : base(unitOfWork, identityStorage) { }