public AuthenticationAppService(IConfigurationRoot configuration, IAuthenticationDomainService service, IAuthorizationDomainServices serviceAuthorization, IOptions <JwtIssuerOptions> jwtOptions) { this.configuration = configuration; this.service = service; this.serviceAuthorization = serviceAuthorization; this.jwtOptions = jwtOptions.Value; this.jwtOptions.ValidFor = TimeSpan.FromSeconds(double.Parse(this.configuration["ExpirationJWT"])); this.ThrowIfInvalidOptions(this.jwtOptions); this.serializerSettings = new JsonSerializerSettings { Formatting = Formatting.Indented }; }
public AuthorizationAppService(IAuthorizationDomainServices service) { this.service = service; }