OfficeDev / ews-managed-api

Other
585 stars 319 forks source link

Any plan to have a portable version (accross Windows Phone / Windows Store) ? #5

Open japf opened 10 years ago

japf commented 10 years ago

At the exact same time you release this, I'm building my own EWS portable implementation to be able to use it from Windows Phone and Windows Store apps :-)

Do you have any plan to make EWS Managed API portable ?

vboctor commented 10 years ago

Have you already done the investigation relating to the work necessary to become portable? If so, it would be great if you can share it here.

japf commented 10 years ago

Victor,

The very basic analysis I did is highlighting lack of support in portable projects for the following items:

teharris1 commented 10 years ago

I am interested in the same thing. Your assessment seems the same as my assessment. To add a little more information: • Timezone management: Probably could be worked around but is a good amount of work • Proxy management: Meaningful gap in the PCL • Cryptography: Only needed for cert based authentication so not a big deal • Dns: Only needed for DnsSrvRecord look up in Autodiscovery so not a big deal • Certificate: Same as Cryptography • XML management: Meaningful change to go from XmlDocument something else (i.e. XDocument or XElement) which could be a big change to XML loading and serialization / deserialization.

Also, since HttpWebRequest in PCL to by async there is a decent amount of work to change the web calls to handle async management all the way through. Finally, since PCL will not support many of the items above like DNS SRV records, a multi target approach is needed to allow for .NET vs Windows Phone or Windows Runtime apps to coexist.

vboctor commented 9 years ago

Is there a reason why you are opting away from using EWS Managed API service side in an Azure Website that exposes the Web API that your Windows Phone app needs? It would be good to understand the reasons for this to see if it is worth worrying about this and potential pain that may come with it.

I'm inclined to say "won't fix".

japf commented 9 years ago

I'm moving away from the "gateway" approach with an Azure Website for 3 main reasons:

Please let me know if that helps :-)

dclaux commented 9 years ago

Your points 1 and especially 2 are very fair. Point 3 is a real problem with "occasionally connected" devices, that said it has solutions. For instance, your client could send a unique operation Id with every action it performs (as a custom HTTP header for instance) and your service would maintain an "action outcome" table that stores the result of all actions keyed using the Id sent by the client. In the event of a disconnection that prevents the client from knowing the outcome of an action it just posted, it could query that table and get the result no matter how long after the action has completed.

aersam commented 9 years ago

My Company is in the same situation: We would like to make a Store App that accesses an MS Exchange Server. Portable EWS would be a huge help.

veler commented 8 years ago

Hi,

Any news about that? I also really need an Exchange api for my Universal App.

Thanks

davetse commented 8 years ago

https://github.com/davetse/ews-managed-api/ contains a version that works with Universal Apps for Windows 10.

Now you can do stuff like this in your Universal app:

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); service.Credentials = new WebCredentials(user@domain.com, ); service.AutodiscoverUrl("user@domain.com"); EmailMessage email = new EmailMessage(service); email.Subject = "Test"; email.Body = new MessageBody("This is an email message"); email.ToRecipients.Add("", "user@domain.com"); email.Send();

Its a work in progress. In its current state we've successfully used it to send email, retrieve email, retrieve calendar info, setup streaming subscriptions.

Welcome folks try it out and let us know how it goes.

PospisilBohumir commented 8 years ago

hi, is it possible to provide some binaries of this version of "ews-managed-api"? I failed to compile your project. Technically I failed to even load project in visual studio. :-(. Are there some automatic builds?

Thanks

charfreitag commented 8 years ago

Install latest SDK - Windows Insider Preview - Windows 10 Anniversary SDK Preview Build 14366 Windows 10 Anniversary SDK Preview Build 14366 more install information is here - TechForums

Please let me know if that helps :-)

Jaroslav

zuckerthoben commented 8 years ago

I would really appreciate a portable EWS Managed API. Opens up a lot of possibilities for corporate apps.