Esempio n. 1
0
        public SaasKitEngine(SaasKitConfiguration configuration, IInstanceStore instanceStore)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            if (instanceStore == null)
            {
                throw new ArgumentNullException("instanceStore");
            }

            if (!configuration.IsValid)
            {
                throw new InvalidOperationException("Configuration is invalid.");
            }

            this.configuration = configuration;
            this.runningInstances = instanceStore;
        }
Esempio n. 2
0
        public SaasKitEngine(SaasKitConfiguration configuration, IInstanceStore instanceStore)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            if (instanceStore == null)
            {
                throw new ArgumentNullException("instanceStore");
            }

            if (!configuration.IsValid)
            {
                throw new InvalidOperationException("Configuration is invalid.");
            }

            this.configuration    = configuration;
            this.runningInstances = instanceStore;
        }
Esempio n. 3
0
        public SaasKitEngine(SaasKitConfiguration configuration)
            : this(configuration, new MemoryCacheInstanceStore(InstanceLifetimeOptions.Default))
        {

        }
Esempio n. 4
0
 public SaasKitEngine(SaasKitConfiguration configuration)
     : this(configuration, new MemoryCacheInstanceStore(InstanceLifetimeOptions.Default))
 {
 }