/// <summary> /// Create container factory /// </summary> /// <param name="server"></param> /// <param name="config"></param> public ItemContainerFactory(IDatabaseServer server, IItemContainerConfig config = null) { _server = server ?? throw new ArgumentNullException(nameof(server)); _config = config; }
/// <summary> /// Create container factory /// </summary> /// <param name="server"></param> /// <param name="config"></param> /// <param name="process"></param> public ItemContainerFactory(IDatabaseServer server, IItemContainerConfig config = null, IProcessIdentity process = null) : this(server, config?.DatabaseName, config?.ContainerName ?? process?.ServiceId) { }