Ejemplo n.º 1
0
        // public Repository(IOptions<AuthenticationSettings> authenticationSettings)
        // {
        //     _authenticationSettings = (authenticationSettings ?? throw new ArgumentNullException(nameof(authenticationSettings))).Value;
        // }

        public Repository(AuthenticationSettings authenticationSettings)
        {
            _authenticationSettings = authenticationSettings ?? throw new ArgumentNullException(nameof(authenticationSettings));
        }
Ejemplo n.º 2
0
 public Repository(IOptions <AuthenticationSettings> authenticationSettings)
 {
     _authenticationSettings = (authenticationSettings ?? throw new ArgumentNullException(nameof(authenticationSettings))).Value;
 }