public RoleProviderAttribute(ProcessLevel level, ProcessEvent eventType) { this.name = level.ToString(); this.level = level; this.eventType = eventType; }
private static IPolicyResponseObject GetPolicyResponseFromScanner(IBaseContentScanner scanner, IUniversalRequestObject uro, ProcessLevel level, bool skipDiscovery) { Workshare.Policy.Interfaces.ProcessLevel translatedProcessLevel = (Workshare.Policy.Interfaces.ProcessLevel) Enum.Parse(typeof(Workshare.Policy.Interfaces.ProcessLevel), level.ToString()); Logger.LogDebug(string.Format(CultureInfo.InvariantCulture, Properties.Resources.LOG_CALLING_SCANNER, scanner)); scanner.SkipDiscovery = skipDiscovery; return scanner.Scan(uro, translatedProcessLevel); }