예제 #1
0
 /// <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);
 }
예제 #2
0
        static AuthorizationManager()
        {
            var authorizationConfiguration = ContainerManager.Resolve <IOptions <AuthorizationConfiguration> >()?.Value ?? new AuthorizationConfiguration();

            AuthorizationConfiguration = authorizationConfiguration;
            if ((!authorizationConfiguration?.Servers.IsNullOrEmpty()) ?? false)
            {
                DataSelectionProvider = new DataSelectionProvider <string>(authorizationConfiguration.Servers);
            }
        }