Share via


StatelessServiceProperties Constructors

Definition

Overloads

StatelessServiceProperties()

Initializes a new instance of the StatelessServiceProperties class.

StatelessServiceProperties(String, IList<ServiceCorrelationDescription>, IList<ServiceLoadMetricDescription>, IList<ServicePlacementPolicyDescription>, String, String, String, PartitionSchemeDescription, String, String, Nullable<Int32>, String)

Initializes a new instance of the StatelessServiceProperties class.

StatelessServiceProperties()

Initializes a new instance of the StatelessServiceProperties class.

public StatelessServiceProperties ();
Public Sub New ()

Applies to

StatelessServiceProperties(String, IList<ServiceCorrelationDescription>, IList<ServiceLoadMetricDescription>, IList<ServicePlacementPolicyDescription>, String, String, String, PartitionSchemeDescription, String, String, Nullable<Int32>, String)

Initializes a new instance of the StatelessServiceProperties class.

public StatelessServiceProperties (string placementConstraints = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServiceCorrelationDescription> correlationScheme = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServiceLoadMetricDescription> serviceLoadMetrics = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServicePlacementPolicyDescription> servicePlacementPolicies = default, string defaultMoveCost = default, string provisioningState = default, string serviceTypeName = default, Microsoft.Azure.Management.ServiceFabric.Models.PartitionSchemeDescription partitionDescription = default, string servicePackageActivationMode = default, string serviceDnsName = default, int? instanceCount = default, string instanceCloseDelayDuration = default);
new Microsoft.Azure.Management.ServiceFabric.Models.StatelessServiceProperties : string * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServiceCorrelationDescription> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServiceLoadMetricDescription> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServicePlacementPolicyDescription> * string * string * string * Microsoft.Azure.Management.ServiceFabric.Models.PartitionSchemeDescription * string * string * Nullable<int> * string -> Microsoft.Azure.Management.ServiceFabric.Models.StatelessServiceProperties
Public Sub New (Optional placementConstraints As String = Nothing, Optional correlationScheme As IList(Of ServiceCorrelationDescription) = Nothing, Optional serviceLoadMetrics As IList(Of ServiceLoadMetricDescription) = Nothing, Optional servicePlacementPolicies As IList(Of ServicePlacementPolicyDescription) = Nothing, Optional defaultMoveCost As String = Nothing, Optional provisioningState As String = Nothing, Optional serviceTypeName As String = Nothing, Optional partitionDescription As PartitionSchemeDescription = Nothing, Optional servicePackageActivationMode As String = Nothing, Optional serviceDnsName As String = Nothing, Optional instanceCount As Nullable(Of Integer) = Nothing, Optional instanceCloseDelayDuration As String = Nothing)

Parameters

placementConstraints
String

The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".

correlationScheme
IList<ServiceCorrelationDescription>

A list that describes the correlation of the service with other services.

serviceLoadMetrics
IList<ServiceLoadMetricDescription>

The service load metrics is given as an array of ServiceLoadMetricDescription objects.

servicePlacementPolicies
IList<ServicePlacementPolicyDescription>

A list that describes the correlation of the service with other services.

defaultMoveCost
String

Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'

provisioningState
String

The current deployment or provisioning state, which only appears in the response

serviceTypeName
String

The name of the service type

partitionDescription
PartitionSchemeDescription

Describes how the service is partitioned.

servicePackageActivationMode
String

The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess'

serviceDnsName
String

Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name.

instanceCount
Nullable<Int32>

The instance count.

instanceCloseDelayDuration
String

Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.

Applies to