Skip to content

Introduce a Append method in ResourceIdentifier class and use it in singleton resource construction #2537

@ArcturusZhang

Description

@ArcturusZhang

When constructing singleton resources, we are using this:

return new SingletonResource(Client, new ResourceIdentifier(Id.ToString() + "/singletonResources/current"));

We could introduce a Append method in the ResourceIdentifier class to reduce the validation and parsing cost in resource ids.
We already have them:

Metadata

Metadata

Assignees

Labels

MgmtThis issue is related to a management-plane library.v3Version 3 of AutoRest C# generator.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions