protected virtual void Initialize(DateTime date, LogSource source, string resultPath) { this.date = date; this.source = source; this.resultPath = resultPath; }
public static QueryBase CreateInstance(Type type, DateTime date, LogSource source, string resultPath) { var instance = (QueryBase)Activator.CreateInstance(type); instance.Initialize(date, source, resultPath); return instance; }