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.
The text was updated successfully, but these errors were encountered:
chunyu3
changed the title
[feature] adopt @methodLocation to bump a operation paramter to client level
[feature] bump a operation paramter to client level
Aug 28, 2024
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.
The text was updated successfully, but these errors were encountered: