Share via


RestartDeployedCodePackageContent(String, String, String, String) Constructor

Definition

Initializes a new instance of RestartDeployedCodePackageContent.

public RestartDeployedCodePackageContent(string nodeName, string serviceManifestName, string codePackageName, string codePackageInstanceId);
new Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent : string * string * string * string -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent
Public Sub New (nodeName As String, serviceManifestName As String, codePackageName As String, codePackageInstanceId As String)

Parameters

nodeName
String

The name of the node where the code package needs to be restarted. Use '*' to restart on all nodes where the code package is running.

serviceManifestName
String

The name of the service manifest as specified in the code package.

codePackageName
String

The name of the code package as specified in the service manifest.

codePackageInstanceId
String

The instance ID for currently running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry point executable is run, its instance ID will change. If 0 is passed in as the code package instance ID, the API will restart the code package with whatever instance ID it is currently running. If an instance ID other than 0 is passed in, the API will restart the code package only if the current Instance ID matches the passed in instance ID. Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one restart of the code package.

Exceptions

nodeName, serviceManifestName, codePackageName or codePackageInstanceId is null.

Applies to