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