/// <summary> /// Set root paths /// </summary> /// <param name="rootPaths">root paths</param> void SetRootPaths(List <string> rootPaths) { if (rootPaths.IsNullOrEmpty()) { return; } _rootPaths = rootPaths; dataSelectionProvider = new DataSelectionProvider <string>(_rootPaths); }
static AuthorizationManager() { var authorizationConfiguration = ContainerManager.Resolve <IOptions <AuthorizationConfiguration> >()?.Value ?? new AuthorizationConfiguration(); AuthorizationConfiguration = authorizationConfiguration; if ((!authorizationConfiguration?.Servers.IsNullOrEmpty()) ?? false) { DataSelectionProvider = new DataSelectionProvider <string>(authorizationConfiguration.Servers); } }