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