public EnumValueExecutor(IRuntimeLogger r, Introspector i, Type type, String propertyName) { runtimeLogger = r; introspector = i; Discover(type, propertyName); }
/// <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; }
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); } } }
/// <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); } } }
/// <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) { }
/// <summary> Recieves our RuntimeServices object /// </summary> public Introspector(IRuntimeLogger r) { rlog = r; }
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; }