你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceRuntime 类

定义

静态类,提供向 Service Fabric 运行时注册可靠服务的方法。

public static class ServiceRuntime
type ServiceRuntime = class
Public Class ServiceRuntime
继承
ServiceRuntime

方法

RegisterServiceAsync(String, Func<StatefulServiceContext,StatefulServiceBase>, TimeSpan, CancellationToken)

向 Service Fabric 运行时注册可靠的有状态服务。

RegisterServiceAsync(String, Func<StatelessServiceContext,StatelessService>, TimeSpan, CancellationToken)

向 Service Fabric 运行时注册可靠的无状态服务。

适用于