Share via


ActorNameFormat.GetFabricServiceUri Method

Definition

Overloads

GetFabricServiceUri(Type)

Gets service Uri which hosts the actor type in Service Fabric cluster.

GetFabricServiceUri(Type, Uri)

Gets service Uri which hosts the actor type in Service Fabric cluster.

GetFabricServiceUri(Type, String, String)

Gets service Uri which hosts the actor type in Service Fabric cluster.

GetFabricServiceUri(Type, Uri, String)

Gets service Uri which hosts the actor type in Service Fabric cluster.

GetFabricServiceUri(Type)

Gets service Uri which hosts the actor type in Service Fabric cluster.

public static Uri GetFabricServiceUri (Type actorInterfaceType);
static member GetFabricServiceUri : Type -> Uri
Public Shared Function GetFabricServiceUri (actorInterfaceType As Type) As Uri

Parameters

actorInterfaceType
Type

Type of the actor interface.

Returns

Uri

Service Fabric service Uri hosting the actor type.

Exceptions

When application name cannot be determined using CodePackageActivationContext.

Remarks

Method will try to get application name from CodePackageActivationContext. If the method still cannot determine application name, ArgumentException is thrown.

Applies to

GetFabricServiceUri(Type, Uri)

Gets service Uri which hosts the actor type in Service Fabric cluster.

public static Uri GetFabricServiceUri (Type actorInterfaceType, Uri applicationUri);
static member GetFabricServiceUri : Type * Uri -> Uri
Public Shared Function GetFabricServiceUri (actorInterfaceType As Type, applicationUri As Uri) As Uri

Parameters

actorInterfaceType
Type

Type of the actor interface.

applicationUri
Uri

Service Fabric application Uri containing the actor service. If this value is null application name is obtained from ApplicationName.

Returns

Uri

Service Fabric service Uri hosting the actor type.

Exceptions

When application name cannot be determined using CodePackageActivationContext.

Remarks

Method will create service name using the actorInterfaceType. If applicationUri is passed as null, an attempt is made to get application name from CodePackageActivationContext. If the method still cannot determine application name, ArgumentException is thrown.

Applies to

GetFabricServiceUri(Type, String, String)

Gets service Uri which hosts the actor type in Service Fabric cluster.

public static Uri GetFabricServiceUri (Type actorInterfaceType, string applicationName = default, string serviceName = default);
static member GetFabricServiceUri : Type * string * string -> Uri
Public Shared Function GetFabricServiceUri (actorInterfaceType As Type, Optional applicationName As String = Nothing, Optional serviceName As String = Nothing) As Uri

Parameters

actorInterfaceType
Type

Type of the actor interface.

applicationName
String

Service Fabric application name containing the actor service. If this value is null application name is obtained from ApplicationName.

serviceName
String

Name of service hosting the actor type. If this value is null then service name is constructed using the actorInterfaceType.

Returns

Uri

Service Fabric service Uri hosting the actor type.

Exceptions

When applicationName cannot be determined using CodePackageActivationContext.

Remarks

If applicationName is passed as null or empty string, an attempt is made to get application name from CodePackageActivationContext. If the method still cannot determine application name, ArgumentException is thrown.

Applies to

GetFabricServiceUri(Type, Uri, String)

Gets service Uri which hosts the actor type in Service Fabric cluster.

public static Uri GetFabricServiceUri (Type actorInterfaceType, Uri applicationUri, string serviceName);
static member GetFabricServiceUri : Type * Uri * string -> Uri
Public Shared Function GetFabricServiceUri (actorInterfaceType As Type, applicationUri As Uri, serviceName As String) As Uri

Parameters

actorInterfaceType
Type

Type of the actor interface.

applicationUri
Uri

Service Fabric application Uri containing the actor service. If this value is null application name is obtained from ApplicationName.

serviceName
String

Name of service hosting the actor type. If this value is null then service name is constructed using the actorInterfaceType.

Returns

Uri

Service Fabric service Uri hosting the actor type.

Exceptions

When application name cannot be determined using CodePackageActivationContext.

Remarks

If applicationUri is passed as null, an attempt is made to get application name from CodePackageActivationContext. If the method still cannot determine application name, ArgumentException is thrown.

Applies to