示例#1
0
 public EmailSupervisorActor()
 {
     MailActor = Context.System.CreateActor <TEmailActor>();
     Receive <SendEmailMessage>(message =>
     {
         MailActor.Forward(message);
     });
 }
 public EmailSupervisorActor()
 {
     MailActor = Context.System.CreateActor <TEmailActor>();
     Receive <SendEmailMessage>(message =>
     {
         MailActor.Forward(message);
         Sender.Tell(new EmailReadyToSendMessage(message.EmailAddress));
     });
 }