public AsEvent ( IEventSource source = null ) : |
||
source | IEventSource | The source of the error. |
Résultat |
public static void RegisterError(this IQueryContext context, string message, Exception error) { var errorEx = new ErrorException(EventClasses.Runtime, Int32.MinValue, message, error); var errorEvent = errorEx.AsEvent(context.Session); context.RegisterEvent(errorEvent); }
public static void RegisterError(this IQueryContext context, ErrorException error) { var errorEvent = error.AsEvent(context.Session); context.RegisterEvent(errorEvent); }
public static void Error(this IEventRegistry registry, IEventSource source, ErrorException ex) { registry.RegisterEvent(ex.AsEvent(source)); }