Skip to content

Commit

Permalink
Merge pull request #6 from felixcho-msft/master
Browse files Browse the repository at this point in the history
Renamed method
  • Loading branch information
felixcho-work committed Apr 18, 2016
2 parents 3ad959b + c443c17 commit a417bc2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ public partial interface IObjectDataTypeOperations
/// <returns>
/// The response model for the list fields operation.
/// </returns>
Task<TypeFieldListResponse> ListFieldsTypeAsync(string resourceGroupName, string automationAccount, string typeName, CancellationToken cancellationToken);
Task<TypeFieldListResponse> ListFieldsByTypeAsync(string resourceGroupName, string automationAccount, string typeName, CancellationToken cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public async Task<TypeFieldListResponse> ListFieldsByModuleAndTypeAsync(string r
/// <returns>
/// The response model for the list fields operation.
/// </returns>
public async Task<TypeFieldListResponse> ListFieldsTypeAsync(string resourceGroupName, string automationAccount, string typeName, CancellationToken cancellationToken)
public async Task<TypeFieldListResponse> ListFieldsByTypeAsync(string resourceGroupName, string automationAccount, string typeName, CancellationToken cancellationToken)
{
// Validate
if (resourceGroupName == null)
Expand All @@ -321,7 +321,7 @@ public async Task<TypeFieldListResponse> ListFieldsTypeAsync(string resourceGrou
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccount", automationAccount);
tracingParameters.Add("typeName", typeName);
TracingAdapter.Enter(invocationId, this, "ListFieldsTypeAsync", tracingParameters);
TracingAdapter.Enter(invocationId, this, "ListFieldsByTypeAsync", tracingParameters);
}

// Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ public static Task<TypeFieldListResponse> ListFieldsByModuleAndTypeAsync(this IO
/// <returns>
/// The response model for the list fields operation.
/// </returns>
public static TypeFieldListResponse ListFieldsType(this IObjectDataTypeOperations operations, string resourceGroupName, string automationAccount, string typeName)
public static TypeFieldListResponse ListFieldsByType(this IObjectDataTypeOperations operations, string resourceGroupName, string automationAccount, string typeName)
{
return Task.Factory.StartNew((object s) =>
{
return ((IObjectDataTypeOperations)s).ListFieldsTypeAsync(resourceGroupName, automationAccount, typeName);
return ((IObjectDataTypeOperations)s).ListFieldsByTypeAsync(resourceGroupName, automationAccount, typeName);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
Expand All @@ -147,9 +147,9 @@ public static TypeFieldListResponse ListFieldsType(this IObjectDataTypeOperation
/// <returns>
/// The response model for the list fields operation.
/// </returns>
public static Task<TypeFieldListResponse> ListFieldsTypeAsync(this IObjectDataTypeOperations operations, string resourceGroupName, string automationAccount, string typeName)
public static Task<TypeFieldListResponse> ListFieldsByTypeAsync(this IObjectDataTypeOperations operations, string resourceGroupName, string automationAccount, string typeName)
{
return operations.ListFieldsTypeAsync(resourceGroupName, automationAccount, typeName, CancellationToken.None);
return operations.ListFieldsByTypeAsync(resourceGroupName, automationAccount, typeName, CancellationToken.None);
}
}
}

0 comments on commit a417bc2

Please sign in to comment.