You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to move parameters that persist on each operation to the client instead with a decorator of some sort? In EventGrid this shows up in the case of
tcgc will introduce a decorator @clientInitialization to bump a operation parameter to client level, Azure/typespec-azure#914
.NET codegen will adopt the bump information to generate the client with the bumped parameter, methods will not take this parameter in signature.
When the client is sub-client, the bumped parameter will be the parameter in the GetAccossor method in parent client
e.g.
parent.GetSubClient(topic_name)
The text was updated successfully, but these errors were encountered:
Is it possible to move parameters that persist on each operation to the client instead with a decorator of some sort? In EventGrid this shows up in the case of
client()
publish(topic_name, events)
receive(topic_name, subscription_name, max_events)
ack(topic_name, subscription_name, lock_tokens)
to
client(topic_name, subscription_name)
publish(events)
receive(max_events)
ack(lock_tokens)
tcgc will introduce a decorator @clientInitialization to bump a operation parameter to client level, Azure/typespec-azure#914
.NET codegen will adopt the bump information to generate the client with the bumped parameter, methods will not take this parameter in signature.
When the client is sub-client, the bumped parameter will be the parameter in the GetAccossor method in parent client
e.g.
parent.GetSubClient(topic_name)
The text was updated successfully, but these errors were encountered: