예제 #1
0
 public CachedMobileAppInstallRegistrator(MobileAppInstallRegistrator registrator, TimeSpan cacheExpiration, TenantManager tenantManager, ICache cache)
 {
     Cache                = cache;
     TenantManager        = tenantManager;
     this.registrator     = registrator ?? throw new ArgumentNullException("registrator");
     this.cacheExpiration = cacheExpiration;
 }
 public CachedMobileAppInstallRegistrator(IMobileAppInstallRegistrator registrator, TimeSpan cacheExpiration)
 {
     if (registrator == null)
     {
         throw new ArgumentNullException("registrator");
     }
     this.registrator     = registrator;
     this.cacheExpiration = cacheExpiration;
 }
 public CachedMobileAppInstallRegistrator(IMobileAppInstallRegistrator registrator, TimeSpan cacheExpiration)
 {
     if (registrator == null)
     {
         throw new ArgumentNullException("registrator");
     }
     this.registrator = registrator;
     this.cacheExpiration = cacheExpiration;
 }
예제 #4
0
 public PortalController(
     IOptionsMonitor <ILog> options,
     ApiContext apiContext,
     UserManager userManager,
     TenantManager tenantManager,
     PaymentManager paymentManager,
     CommonLinkUtility commonLinkUtility,
     UrlShortener urlShortener,
     AuthContext authContext,
     WebItemSecurity webItemSecurity,
     SecurityContext securityContext,
     SettingsManager settingsManager,
     IMobileAppInstallRegistrator mobileAppInstallRegistrator,
     TenantExtra tenantExtra,
     IConfiguration configuration,
     CoreBaseSettings coreBaseSettings,
     LicenseReader licenseReader,
     SetupInfo setupInfo,
     DocumentServiceLicense documentServiceLicense
     )
 {
     Log                         = options.CurrentValue;
     ApiContext                  = apiContext;
     UserManager                 = userManager;
     TenantManager               = tenantManager;
     PaymentManager              = paymentManager;
     CommonLinkUtility           = commonLinkUtility;
     UrlShortener                = urlShortener;
     AuthContext                 = authContext;
     WebItemSecurity             = webItemSecurity;
     SecurityContext             = securityContext;
     SettingsManager             = settingsManager;
     MobileAppInstallRegistrator = mobileAppInstallRegistrator;
     Configuration               = configuration;
     CoreBaseSettings            = coreBaseSettings;
     LicenseReader               = licenseReader;
     SetupInfo                   = setupInfo;
     DocumentServiceLicense      = documentServiceLicense;
     TenantExtra                 = tenantExtra;
 }
 public PortalApi(ApiContext context)
 {
     mobileAppRegistrator = new CachedMobileAppInstallRegistrator(new MobileAppInstallRegistrator());
 }
예제 #6
0
 public CachedMobileAppInstallRegistrator(IMobileAppInstallRegistrator registrator, TenantManager tenantManager)
     : this(registrator, TimeSpan.FromMinutes(30), tenantManager)
 {
 }
 public CachedMobileAppInstallRegistrator(IMobileAppInstallRegistrator registrator)
     : this(registrator, TimeSpan.FromMinutes(30))
 {
 }
예제 #8
0
 public PortalApi(ApiContext context)
 {
     mobileAppRegistrator = new CachedMobileAppInstallRegistrator(new MobileAppInstallRegistrator());
 }
 public CachedMobileAppInstallRegistrator(IMobileAppInstallRegistrator registrator)
     : this(registrator, TimeSpan.FromMinutes(30))
 {
 }