tailieunhanh - Introducing Windows Azure- P45

Introducing Windows Azure- P45:The cloud platform is getting more and more attractive to the computing world. Today, service-oriented architecture (SOA) and aspect-oriented programming (AOP) techniques are widely used in enterprise solutions. A question an IT management team or a software development team may ask is, what is the next trend going to be? Cloud computing seems to be the right answer. | CHAPTER 7 AZURE .NET SERVICES WORKFLOWS officially signed by Microsoft yet. If you use Red Gate s .NET reflector to load the assembly you will see that it has no strong name key assigned by Microsoft. If the state machine workflow is required from a cloud application the only way to work around this issue is using HttpWebRequest to generate a REST call via HTTP. That is the topic we are going to focus on in the next exercise which provides an example of a work-around to address the issue. Listing 7-3. Define a Custom Workflow Activity to Send a Notification E-mail When a WCF Call Is Received using System using using using using using using using namespace ActivityClassLibrary public class EmailNotificationActivity Activity public string To get set public string From get set public string Subject get set public string MessageBody get set protected override ActivityExecutionStatus Execute ActivityExecutionContext executioncontext SmtpClient smtpClient new SmtpClient false true MailMessage message new MailMessage From To Subject MessageBody try 0 Execute send notification to 1 To message catch Exception ex 0 Execute exception caught 1 218 CHAPTER 7 AZURE .NET SERVICES WORKFLOWS return ActivityExecutionStatus Listing 7-4. Host the Workflow with the Custom-Defined Activity from a Worker Role using System using using using using using using using using namespace Workflow WorkerRole using CustomerRegisterNotification .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.