导出 (0) 打印
全部展开

RoleEntryPoint 类

Provides methods to run code when a role instance is initialized, run, and stopped.

命名空间: Microsoft.WindowsAzure.ServiceRuntime
程序集: Microsoft.WindowsAzure.ServiceRuntime(在 microsoft.windowsazure.serviceruntime.dll 中)

用法
Dim instance As RoleEntryPoint

public abstract class RoleEntryPoint
public abstract class RoleEntryPoint
public abstract class RoleEntryPoint

Worker roles must extend the RoleEntryPoint class to add functionality to the role instances. Web roles can optionally extend the RoleEntryPoint class, or can use the ASP.NET lifecycle management methods to handle the start and stop sequences. For a VM role, Windows Services are used instead of the RoleEntryPoint class. For more information about how to create a Windows Service for a VM role, see How to Develop an Adapter for a VM Role in Windows Azure.

For more information about life cycle management, see Overview of Building an Application that Runs in a Hosted Service.


System.Object
  Microsoft.WindowsAzure.ServiceRuntime.RoleEntryPoint

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不保证所有实例成员都是线程安全的。

开发平台

Windows XP Home Edition, Windows XP Professional, Windows Server 2003、Windows Server 2008 和 Windows 2000

目标平台

社区附加资源

显示:
© 2014 Microsoft