public EnumValueExecutor(IRuntimeLogger r, Introspector i, Type type, String propertyName)
        {
            runtimeLogger = r;
            introspector = i;

            Discover(type, propertyName);
        }
示例#2
0
        public EnumValueExecutor(IRuntimeLogger r, Introspector i, Type type, String propertyName)
        {
            runtimeLogger = r;
            introspector  = i;

            Discover(type, propertyName);
        }
示例#3
0
 /// <summary> Creates a new LogMessage that wraps a PrimordialLogChute.</summary>
 /// <param name="rlog">
 /// </param>
 public RuntimeLoggerLog(IRuntimeLogger rlog)
 {
     if (rlog == null)
     {
         throw new System.NullReferenceException("RuntimeLogger cannot be null!");
     }
     this.rlog = rlog;
 }
示例#4
0
 public GetExecutor(IRuntimeLogger r, Introspector i, Type c, string key)
 {
     this.rlog    = r;
     this.args[0] = key;
     this.method  = i.GetMethod(c, "get_Item", this.args);
     if (this.method == null)
     {
         this.method = i.GetMethod(c, "Get", this.args);
         if (this.method == null)
         {
             this.method = i.GetMethod(c, "get", this.args);
         }
     }
 }
示例#5
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public GetExecutor(IRuntimeLogger r, Introspector i, Type c, String key)
        {
            runtimeLogger = r;
            arguments[0]  = key;

            // NOTE: changed from get to get to get_Item - assumption is that get would be converted to an indexer in .Net
            // to keep some resemblance to the Java version, look for "Get" and "get" methods as well (both cases for .Net style and java)
            method = i.GetMethod(c, "get_Item", arguments);
            if (method == null)
            {
                method = i.GetMethod(c, "Get", arguments);
                if (method == null)
                {
                    method = i.GetMethod(c, "get", arguments);
                }
            }
        }
示例#6
0
		/// <summary>
		/// Default constructor.
		/// </summary>
		public GetExecutor(IRuntimeLogger r, Introspector i, Type c, String key)
		{
			runtimeLogger = r;
			arguments[0] = key;

			// NOTE: changed from get to get to get_Item - assumption is that get would be converted to an indexer in .Net
			// to keep some resemblance to the Java version, look for "Get" and "get" methods as well (both cases for .Net style and java)
			method = i.GetMethod(c, "get_Item", arguments);
			if (method == null)
			{
				method = i.GetMethod(c, "Get", arguments);
				if (method == null)
				{
					method = i.GetMethod(c, "get", arguments);
				}
			}
		}
示例#7
0
 /// <summary>  Receives our RuntimeServices object
 /// </summary>
 public Introspector(IRuntimeLogger r)
 {
     rlog = r;
 }
 public BooleanPropertyExecutor(IRuntimeLogger r, Introspector i, Type type, String propertyName)
     : base(r, i, type, propertyName)
 {
 }
示例#9
0
		/// <summary>  Recieves our RuntimeServices object
		/// </summary>
		public Introspector(IRuntimeLogger r)
		{
			rlog = r;
		}
		public BooleanPropertyExecutor(IRuntimeLogger r, Introspector i, Type type, String propertyName)
			: base(r, i, type, propertyName)
		{
		}
示例#11
0
 public PropertyExecutor(IRuntimeLogger r, Introspector i, Type clazz, string propertyName)
 {
     this.rlog         = r;
     this.introspector = i;
     this.Discover(clazz, propertyName);
 }
 public void SetLogger(IRuntimeLogger logger)
 {
     runtimeLogger = logger;
     logger.LogMessage += (sender, e) => LogMessage(this, e);
     logger.MinLogSeverity = optionsController.MinLogSeverity;
 }
示例#13
0
 public void SetLogger(IRuntimeLogger logger)
 {
     runtimeLogger         = logger;
     logger.LogMessage    += (sender, e) => LogMessage(this, e);
     logger.MinLogSeverity = optionsController.MinLogSeverity;
 }