/// <summary> /// Constructor used for using an existend SqliteConnection /// creates an empty List of Log /// fills properties /// creates the LocalLogger instance /// </summary> /// <param name="fip">FnLogInitPackage</param> /// <param name="con">for integration in a existing sqlite db</param> internal FnLog(FnLogInitPackage fip, SqliteConnector con) { _logs = new List <Log>(); _fnLogInitPackage = fip; fip.FileName = ""; _localLog = new LocalLogger(con); }
/// <summary> /// Constructor /// creates an empty List of Log /// fills properties /// creates the LocalLogger instance /// </summary> /// <param name="fip">FnLogInitPackage</param> internal FnLog(FnLogInitPackage fip) { _logs = new List <Log>(); _fnLogInitPackage = fip; _localLog = new LocalLogger( _fnLogInitPackage.FileName, _fnLogInitPackage.EncryptionKey); }
/// <summary> /// Set Instance for the singleton /// this will use a existing SqliteConnector /// </summary> /// <param name="fip">FnLogInitPackage</param> /// <param name="con">for integration in a existing sqlite db</param> public static void SetInstance(FnLogInitPackage fip, SqliteConnector con) { _instance = new FnLog(fip, con); }
/// <summary> /// Set Instance for the Singleton /// </summary> /// <param name="fip">FnLogInitPackage</param> public static void SetInstance(FnLogInitPackage fip) { _instance = new FnLog(fip); }