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; }
public SaasKitEngine(SaasKitConfiguration configuration) : this(configuration, new MemoryCacheInstanceStore(InstanceLifetimeOptions.Default)) { }