コード例 #1
0
 /// <summary>
 /// Get a list of the inputs defined in a stream analytics job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the stream analytics job.
 /// </param>
 /// <param name='jobName'>
 /// Required. The name of the stream analytics job.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to list all the inputs in the
 /// specified stream analytics job.
 /// </param>
 /// <returns>
 /// The response of the input list operation.
 /// </returns>
 public static Task <InputListResponse> ListInputInJobAsync(this IInputOperations operations, string resourceGroupName, string jobName, InputListParameters parameters)
 {
     return(operations.ListInputInJobAsync(resourceGroupName, jobName, parameters, CancellationToken.None));
 }
コード例 #2
0
 /// <summary>
 /// Get a list of the inputs defined in a stream analytics job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the stream analytics job.
 /// </param>
 /// <param name='jobName'>
 /// Required. The name of the stream analytics job.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to list all the inputs in the
 /// specified stream analytics job.
 /// </param>
 /// <returns>
 /// The response of the input list operation.
 /// </returns>
 public static InputListResponse ListInputInJob(this IInputOperations operations, string resourceGroupName, string jobName, InputListParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IInputOperations)s).ListInputInJobAsync(resourceGroupName, jobName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }