Ejemplo n.º 1
0
 public Envelope <TOther> To <TOther>() where TOther : class
 {
     return(new Envelope <TOther>(payload as TOther, headers.Clone()));
 }
Ejemplo n.º 2
0
 public Envelope <TOther> To <TOther>() where TOther : class, IEvent
 {
     return(new Envelope <TOther>((payload as TOther) !, headers.Clone()));
 }