public static IEnumerable <object> MapCorrectiveEventIds(this ErrorDeclaration errorDeclaration, long eventId) { return(errorDeclaration.CorrectiveEventIds.Select(x => new { EventId = eventId, ReferencedId = x })); }
public static object Map(this ErrorDeclaration errorDeclaration, long eventId) { return(new { EventId = eventId, errorDeclaration.DeclarationTime, errorDeclaration.Reason, errorDeclaration.CustomFields }); }
public virtual TReturn Visit(ErrorDeclaration node, TParam param) => throw new NotImplementedException();
public virtual TReturn Visit(ErrorDeclaration node, TParam param) { return(DefaultReturn); }