Пример #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="blazorProxyService">The <see cref="Service"/></param>
 /// <param name="config">The <see cref="ProxyConfig"/></param>
 /// <param name="httpClient">HttpClient for forwarding requests.</param>
 /// <param name="forwarder">The YARP forwarder.</param>
 /// <param name="cache">The cache used for storing session information.</param>
 /// <param name="aesCipher">The <see cref="AesCipher"/> used for cookie encryption.</param>
 /// <param name="dnsClient">The <see cref="LookupClient"/> for service discovery.</param>
 /// <param name="sessionTransformer">The <see cref="SessionTransformer"/>.</param>
 public BlazorController(
     Service blazorProxyService,
     ProxyConfig config,
     HttpMessageInvoker httpClient,
     IHttpForwarder forwarder,
     IDistributedCache cache,
     AesCipher aesCipher,
     LookupClient dnsClient,
     SessionTransformer sessionTransformer)
 {
     this.blazorProxyService = blazorProxyService;
     this.config             = config;
     this.httpClient         = httpClient;
     this.forwarder          = forwarder;
     this.cache       = cache;
     this.cipher      = aesCipher;
     this.transformer = sessionTransformer;
     this.dnsClient   = dnsClient;
 }
Пример #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="NeonSsoSessionProxyService"></param>
 /// <param name="httpClient"></param>
 /// <param name="forwarder"></param>
 /// <param name="cache"></param>
 /// <param name="aesCipher"></param>
 /// <param name="dexClient"></param>
 public AuthController(
     Service NeonSsoSessionProxyService,
     HttpMessageInvoker httpClient,
     IHttpForwarder forwarder,
     IDistributedCache cache,
     AesCipher aesCipher,
     DexClient dexClient,
     SessionTransformer sessionTransformer,
     DistributedCacheEntryOptions cacheOptions
     )
 {
     this.NeonSsoSessionProxyService = NeonSsoSessionProxyService;
     this.httpClient   = httpClient;
     this.forwarder    = forwarder;
     this.cache        = cache;
     this.cipher       = aesCipher;
     this.transformer  = sessionTransformer;
     this.dexClient    = dexClient;
     this.cacheOptions = cacheOptions;
 }