Пример #1
0
 /// <summary>
 /// Lists all DICOM Services for the given workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the service instance.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DicomService> > ListByWorkspaceAsync(this IDicomServicesOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByWorkspaceWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Patch DICOM Service details.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the service instance.
 /// </param>
 /// <param name='dicomServiceName'>
 /// The name of DICOM Service resource.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='dicomservicePatchResource'>
 /// The parameters for updating a Dicom Service.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DicomService> BeginUpdateAsync(this IDicomServicesOperations operations, string resourceGroupName, string dicomServiceName, string workspaceName, DicomServicePatchResource dicomservicePatchResource, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, dicomServiceName, workspaceName, dicomservicePatchResource, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #3
0
 /// <summary>
 /// Lists all DICOM Services for the given workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DicomService> > ListByWorkspaceNextAsync(this IDicomServicesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByWorkspaceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #4
0
 /// <summary>
 /// Gets the properties of the specified DICOM Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the service instance.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='dicomServiceName'>
 /// The name of DICOM Service resource.
 /// </param>
 public static DicomService Get(this IDicomServicesOperations operations, string resourceGroupName, string workspaceName, string dicomServiceName)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName, dicomServiceName).GetAwaiter().GetResult());
 }
Пример #5
0
 /// <summary>
 /// Lists all DICOM Services for the given workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <DicomService> ListByWorkspaceNext(this IDicomServicesOperations operations, string nextPageLink)
 {
     return(operations.ListByWorkspaceNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Пример #6
0
 /// <summary>
 /// Deletes a DICOM Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the service instance.
 /// </param>
 /// <param name='dicomServiceName'>
 /// The name of DICOM Service resource.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IDicomServicesOperations operations, string resourceGroupName, string dicomServiceName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, dicomServiceName, workspaceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Пример #7
0
 /// <summary>
 /// Deletes a DICOM Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the service instance.
 /// </param>
 /// <param name='dicomServiceName'>
 /// The name of DICOM Service resource.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 public static void BeginDelete(this IDicomServicesOperations operations, string resourceGroupName, string dicomServiceName, string workspaceName)
 {
     operations.BeginDeleteAsync(resourceGroupName, dicomServiceName, workspaceName).GetAwaiter().GetResult();
 }
Пример #8
0
 /// <summary>
 /// Lists all DICOM Services for the given workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the service instance.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 public static IPage <DicomService> ListByWorkspace(this IDicomServicesOperations operations, string resourceGroupName, string workspaceName)
 {
     return(operations.ListByWorkspaceAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult());
 }
Пример #9
0
 /// <summary>
 /// Patch DICOM Service details.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the service instance.
 /// </param>
 /// <param name='dicomServiceName'>
 /// The name of DICOM Service resource.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='dicomservicePatchResource'>
 /// The parameters for updating a Dicom Service.
 /// </param>
 public static DicomService BeginUpdate(this IDicomServicesOperations operations, string resourceGroupName, string dicomServiceName, string workspaceName, DicomServicePatchResource dicomservicePatchResource)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, dicomServiceName, workspaceName, dicomservicePatchResource).GetAwaiter().GetResult());
 }