public RoleProviderAttribute(ProcessLevel level, ProcessEvent eventType)
 {
     this.name      = level.ToString();
     this.level     = level;
     this.eventType = eventType;
 }
示例#2
0
		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);
		}