All of your API is async task. Does it mean Authenticate is done after I await for the Task ? Or, the only way to know is to submit to AuthenticateUpdate and AuthenticateError ? If it is the case then why not make it a normal function but a async task ? 2 API, one for submit callback (Initialize or some thing) and one for actually ask for Authenticate ? And, is Authenticate the special case I have to handle or other API will behave the same, I mean await for them does not equal of job done, data ready and my c# can move on ?
All of your API is async task. Does it mean Authenticate is done after I await for the Task ? Or, the only way to know is to submit to AuthenticateUpdate and AuthenticateError ? If it is the case then why not make it a normal function but a async task ? 2 API, one for submit callback (Initialize or some thing) and one for actually ask for Authenticate ? And, is Authenticate the special case I have to handle or other API will behave the same, I mean await for them does not equal of job done, data ready and my c# can move on ?