I am working with Calendar event syncing process, but stuck at one level and need your help,
I am authenticating Web Credentials using
exchangeService.Credentials = new WebCredentials("user@domain", "pwd");
By using this i can sync calendar app with my office365 account. But problem occour when configure other Microsoft Exchange account.
How to identify, whether to use username with domain or user name without domain, because office365 except user name with domain (Email Address), where any other Microsoft outlook webapp not require.
exchangeService.Credentials = new WebCredentials("user", "pwd", "domain");
By using this problem is resolve, data sync with exchange server, But question is
How can we handle/check whether to use user name with domain(for outlook.office365 Login) or user name without domain(for Microsoft outlook webapp login)
Which condition/logic is used to identify whether it is office365 or other domain ?