コード例 #1
0
 /// <summary>
 /// Deletes a Service Fabric service resource.
 /// </summary>
 /// <remarks>
 /// Delete a Service Fabric service resource with the specified name.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster resource.
 /// </param>
 /// <param name='applicationName'>
 /// The name of the application resource.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the service resource in the format of
 /// {applicationName}~{serviceName}.
 /// </param>
 public static void BeginDelete(this IServicesOperations operations, string resourceGroupName, string clusterName, string applicationName, string serviceName)
 {
     operations.BeginDeleteAsync(resourceGroupName, clusterName, applicationName, serviceName).GetAwaiter().GetResult();
 }
コード例 #2
0
 /// <summary>
 /// Delete DMS Service Instance
 /// </summary>
 /// <remarks>
 /// The services resource is the top-level resource that represents the
 /// Database Migration Service. The DELETE method deletes a service. Any
 /// running tasks will be canceled.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupName'>
 /// Name of the resource group
 /// </param>
 /// <param name='serviceName'>
 /// Name of the service
 /// </param>
 /// <param name='deleteRunningTasks'>
 /// Delete the resource even if it contains running tasks
 /// </param>
 public static void BeginDelete(this IServicesOperations operations, string groupName, string serviceName, bool?deleteRunningTasks = default(bool?))
 {
     operations.BeginDeleteAsync(groupName, serviceName, deleteRunningTasks).GetAwaiter().GetResult();
 }