-
Notifications
You must be signed in to change notification settings - Fork 331
Open
Labels
emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpIssue for the C# client emitter: @typespec/http-client-csharp
Description
If clientName decorator isn't used to name a client, i.e. just using namespace to define a subclient, the C# namespace and type name will conflict, leading to us adding an underscore to the namespace. It would be better to avoid this as this will be a fairly common scenario. One idea would be to always suffix the client with Client event for subclients. We do this already for top-level clients. Doing this would give us better evolvability if clientInitialization is used in the future for a particular subclient to allow it to be initialized independently. The downside is that we would have many more types suffixed with Client even for the case where only 1 of them is directly constructable.
Metadata
Metadata
Assignees
Labels
emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpIssue for the C# client emitter: @typespec/http-client-csharp