/// <summary>
 /// Gets an ActivityType instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IActivityTypeOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. The name of the data factory.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters specifying how to get an ActivityType
 /// definition.
 /// </param>
 /// <returns>
 /// The Get ActivityType operation response.
 /// </returns>
 public static Task<ActivityTypeGetResponse> GetAsync(
     this IActivityTypeOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     ActivityTypeGetParameters parameters)
 {
     return operations.GetAsync(resourceGroupName, dataFactoryName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Gets an ActivityType instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IActivityTypeOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. The name of the data factory.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters specifying how to get an ActivityType
 /// definition.
 /// </param>
 /// <returns>
 /// The Get ActivityType operation response.
 /// </returns>
 public static ActivityTypeGetResponse Get(
     this IActivityTypeOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     ActivityTypeGetParameters parameters)
 {
     return Task.Factory.StartNew(
         s => ((IActivityTypeOperations)s).GetAsync(resourceGroupName, dataFactoryName, parameters),
             operations,
             CancellationToken.None,
             TaskCreationOptions.None,
             TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }