public static void AddAlertFunction(this IAlertProvider alertProvider, string alert, AlertFunction func) { alertProvider.Functions.Add("alert_" + alert, (settings) => { return func(settings as AlertSettings); }); }
public ServerModuleWrapper(ServerAppInterface parentApp) { parent = parentApp; server = DLLWrapper.CreateCWXmlServerModule(); exportAlert = new AlertFunction(this.alertFromDLL); exportAlertReport = new AlertFunction(this.reportFromDLL); // ADD-START 08072007 EG exportAlertError = new AlertFunction(this.alertErrorFromDLL); // ADD-END 08072007 EG // MOD-START 08072007 EG DLLWrapper.SetAlertCallBackPointer(server, exportAlert); DLLWrapper.SetReportCallBackPointer(server, exportAlertReport); DLLWrapper.SetErrorCallBackPointer(server, exportAlertError, 1); // MOD-END 08072007 EG }
public static void AddAlertFunction(this IAlertProvider alertProvider, AlertFunction func) { alertProvider.AddAlertFunction("default", func); }
public static extern void SetReportCallBackPointer(IntPtr server, AlertFunction fxnPtr);
public static extern void SetErrorCallBackPointer(IntPtr module, AlertFunction fxnPtr, int moduletype);