|
|
@@ -1116,7 +1116,7 @@ namespace MECF.Framework.Common.Routine
|
|
|
|
|
|
protected void Notify(string message)
|
|
|
{
|
|
|
- LOG.WriteLog(eEvent.EV_ROUTINE_NOTIFY, _module, _name, message);
|
|
|
+ LOG.WriteBackgroundLog(eEvent.EV_ROUTINE_NOTIFY, _module, _name, message);
|
|
|
}
|
|
|
protected void Alarm(string message,bool error=true)
|
|
|
{
|
|
|
@@ -1131,26 +1131,4 @@ namespace MECF.Framework.Common.Routine
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- static public class HOFs
|
|
|
- {
|
|
|
- public static Func<R> Apply<T1, R>(this Func<T1, R> func, T1 t1)
|
|
|
- => () => func(t1);
|
|
|
-
|
|
|
- public static Func<R> Apply<T1, T2, R>(this Func<T1, T2, R> func, T1 t1, T2 t2)
|
|
|
- => () => func(t1, t2);
|
|
|
-
|
|
|
- public static Func<R> Apply<T1, T2, T3, R>(this Func<T1, T2, T3, R> func, T1 t1, T2 t2, T3 t3)
|
|
|
- => () => func(t1, t2, t3);
|
|
|
-
|
|
|
- public static Func<bool> WrapAction(this Action action)
|
|
|
- => () => { action(); return true; };
|
|
|
- public static Func<bool> WrapAction<T1>(this Action<T1> action, T1 t1)
|
|
|
- => () => { action(t1); return true; };
|
|
|
- public static Func<bool> WrapAction<T1, T2>(this Action<T1, T2> action, T1 t1, T2 t2)
|
|
|
- => () => { action(t1, t2); return true; };
|
|
|
-
|
|
|
- public static Func<bool> WrapAction<T1, T2, T3>(this Action<T1, T2, T3> action, T1 t1, T2 t2, T3 t3)
|
|
|
- => () => { action(t1, t2, t3); return true; };
|
|
|
- }
|
|
|
}
|