Ejemplo n.º 1
0
 public WPUserService(WPCacheService cache, WPProxySettings settings, WPProxySiteSettingsAccessor siteSettings, WPApiClient wpApi)
 {
     Cache        = cache;
     Settings     = settings;
     SiteSettings = siteSettings;
     WPApi        = wpApi;
 }
Ejemplo n.º 2
0
 public WPCacheService(IMemoryCache memoryCache, IDistributedCache distributedCache, WPProxySettings settings, WPProxySiteSettingsAccessor siteSettings, WPApiClient client)
 {
     MemoryCache      = memoryCache;
     DistributedCache = distributedCache;
     Settings         = settings;
     SiteSettings     = siteSettings;
     Wordpress        = client;
 }
Ejemplo n.º 3
0
 public WPMessageHandler(IFileStore fileStore, IHttpContextAccessor httpContext, WPCacheService cache, WPUserService userService, WPProxySettings settings, WPProxySiteSettingsAccessor siteSettings) : base(new SocketsHttpHandler()
 {
     UseProxy               = false,
     AllowAutoRedirect      = false,
     AutomaticDecompression = DecompressionMethods.All,
     UseCookies             = false
 })
 {
     FileStore    = fileStore;
     Context      = httpContext;
     Cache        = cache;
     UserService  = userService;
     Settings     = settings;
     SiteSettings = siteSettings;
 }
Ejemplo n.º 4
0
 public WPProxyConfig(WPProxySettings settings)
 {
     Settungs = settings;
 }
Ejemplo n.º 5
0
 public WPProxyConfigProvider(WPProxySettings settings)
 {
     _config = new WPProxyConfig(settings);
 }
Ejemplo n.º 6
0
 public WPProxySiteSettingsAccessor(IHttpContextAccessor httpContext, WPProxySettings settings)
 {
     HttpContext = httpContext;
     Settings    = settings;
 }
Ejemplo n.º 7
0
 public WPApiClient(WPProxySettings settings, WPProxySiteSettingsAccessor siteSettings, IHttpClientFactory clientFactory)
 {
     SiteSettings  = siteSettings;
     ClientFactory = clientFactory;
     Settings      = settings;
 }
Ejemplo n.º 8
0
 public GCPStorageStore(WPProxySettings settings, IDistributedCache distributedCache)
 {
     Settings         = settings;
     DistributedCache = distributedCache;
 }