Exemplo n.º 1
0
        public static SharepointValidator Create(IConfigurationSession configurationSession, ExchangeRunspaceConfiguration exchangeRunspaceConfig, Task.TaskErrorLoggingDelegate writeErrorDelegate, Action <LocalizedString> writeWarningDelegate, Func <LocalizedString, bool> shouldContinueDelegate, string logTag, SourceValidator.Clients client, int existingSitesCount, ExecutionLog logger)
        {
            bool       boolFromConfig = Utils.GetBoolFromConfig("ValidateSharepointUsingSearch", true);
            ADObjectId executingUserId;

            if (boolFromConfig)
            {
                if (exchangeRunspaceConfig == null || !exchangeRunspaceConfig.TryGetExecutingUserId(out executingUserId))
                {
                    throw new SpValidatorException(Strings.FailedToGetExecutingUser);
                }
            }
            else
            {
                executingUserId = null;
            }
            return(SharepointValidator.Create(configurationSession, executingUserId, writeErrorDelegate, writeWarningDelegate, shouldContinueDelegate, logTag, client, existingSitesCount, logger));
        }
Exemplo n.º 2
0
 public static SharepointValidator Create(IConfigurationSession configurationSession, ADObjectId executingUserId, ExecutionLog logger)
 {
     return(SharepointValidator.Create(configurationSession, executingUserId, null, null, null, "SitePicker validation", SourceValidator.Clients.UccPolicyUI, 0, logger));
 }