autorest icon indicating copy to clipboard operation
autorest copied to clipboard

credentials::InitializeServiceClient not called

Open matt-gibbs opened this issue 11 years ago • 2 comments

generate with Azure.CSharp. The generated client constructors with a ServiceClientCredentials parameter invoke this(handlers) which calls this.Initialize. This happens before the body of the constructor where the credentials property is set. The initialize method can't call this.Credentials.InitializeServiceClient because Credentials hasn't been set yet.

matt-gibbs avatar Aug 29 '15 00:08 matt-gibbs

Thank you, @matt-gibbs. This is definitely a priority issue.

devigned avatar Aug 30 '15 15:08 devigned

https://github.com/Azure/autorest/pull/419

stankovski avatar Oct 23 '15 19:10 stankovski