/// <summary> /// This is main function for this class /// It will create Exchange service object as output /// </summary> /// <param name="context"></param> protected override void Execute(CodeActivityContext context) { // getting the input values ************************ string userEmailaddress = UserEmail.Get(context); string userEmailPassword = new System.Net.NetworkCredential(string.Empty, UserPassword.Get(context)).Password; string url = Url.Get(context); ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013); service.Credentials = new System.Net.NetworkCredential(userEmailaddress, userEmailPassword, ""); service.Url = new Uri(url); ObjExchangeService.Set(context, service); }