Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ bld/
[Bb]in/
[Oo]bj/

# Visual Studio 2015 cache/options directory
.vs/

# Roslyn cache directories
*.ide/

Expand Down Expand Up @@ -184,3 +187,6 @@ UpgradeLog*.htm
FakesAssemblies/
/project.lock.json
/.svn

# Visual Studio local files
.vs/
39 changes: 39 additions & 0 deletions Core/ServiceObjects/Items/Booking.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Exchange Web Services Managed API
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
* to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/

namespace Microsoft.Exchange.WebServices.Data
{
using System;

[Attachable]
[ServiceObjectDefinition(XmlElementNames.Booking)]
public class Booking : Appointment
{
public Booking(ExchangeService service)
: base(service)
{
}
}
}
7 changes: 7 additions & 0 deletions Core/ServiceObjects/ServiceObjectInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ private void InitializeServiceObjectClassMap()
delegate(ExchangeService srv) { return new Appointment(srv); },
delegate(ItemAttachment itemAttachment, bool isNew) { return new Appointment(itemAttachment, isNew); });

// Booking
this.AddServiceObjectType(
XmlElementNames.Booking,
typeof(Booking),
delegate (ExchangeService srv) { return new Booking(srv); },
delegate (ItemAttachment itemAttachment, bool isNew) { return new Appointment(itemAttachment, isNew); });

// CalendarFolder
this.AddServiceObjectType(
XmlElementNames.CalendarFolder,
Expand Down
1 change: 1 addition & 0 deletions Core/XmlElementNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ internal static class XmlElementNames
public const string AccessLevel = "AccessLevel";
public const string Presenters = "Presenters";
public const string CalendarItem = "CalendarItem";
public const string Booking = "Booking";
public const string CalendarFolder = "CalendarFolder";
public const string Attendee = "Attendee";
public const string ResponseType = "ResponseType";
Expand Down
111 changes: 50 additions & 61 deletions Microsoft.Exchange.WebServices.NETStandard.csproj
Original file line number Diff line number Diff line change
@@ -1,62 +1,51 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>2.0.0</VersionPrefix>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<AssemblyName>Microsoft.Exchange.WebServices.NETStandard</AssemblyName>
<PackageId>Microsoft.Exchange.WebServices.NETStandard</PackageId>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>sherlock1982</Authors>
<RepositoryUrl>https://github.com/sherlock1982/ews-managed-api</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>ews exchange office365 Microsoft Web API Email Client Library C#</PackageTags>
<PackageProjectUrl>https://github.com/sherlock1982/ews-managed-api</PackageProjectUrl>
<Title>Microsoft.Exchange.WebServices.NETStandard</Title>
<Description>The Exchange Web Services (EWS) Managed API provides a managed interface for developing .NET client applications that use EWS. By using the EWS Managed API, you can access almost all the information stored in an Office 365, Exchange Online, or Exchange Server mailbox.</Description>
<PackageReleaseNotes>removed obsolete WebRequests and switched to HttpClient internally
fixed issue with file attachements downloads
restored ldap autodiscover functionality
merged changes from official Microsoft repository
added cancellation token for most of methods
</PackageReleaseNotes>
<Version>2.0.0-beta2</Version>
<PackageLicenseFile>license.txt</PackageLicenseFile>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<VersionPrefix>2.0.0</VersionPrefix>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Microsoft.Exchange.WebServices.NETStandard</AssemblyName>
<PackageId>Microsoft.Exchange.WebServices.NETStandard</PackageId>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>sherlock1982</Authors>
<RepositoryUrl>https://github.com/sherlock1982/ews-managed-api</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>ews exchange office365 Microsoft Web API Email Client Library C#</PackageTags>
<PackageProjectUrl>https://github.com/sherlock1982/ews-managed-api</PackageProjectUrl>
<Title>Microsoft.Exchange.WebServices.NETStandard</Title>
<Description>The Exchange Web Services (EWS) Managed API provides a managed interface for developing .NET client applications that use EWS. By using the EWS Managed API, you can access almost all the information stored in an Office 365, Exchange Online, or Exchange Server mailbox.</Description>
<PackageReleaseNotes>
removed obsolete WebRequests and switched to HttpClient internally
fixed issue with file attachements downloads
restored ldap autodiscover functionality
merged changes from official Microsoft repository
added cancellation token for most of methods
</PackageReleaseNotes>
<Version>2.0.0-beta6</Version>
<PackageLicenseFile>license.txt</PackageLicenseFile>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<Reference Include="System.Xml" />
<Reference Include="System.Security" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Security.Cryptography.Xml">
<Version>4.7.0</Version>
</PackageReference>
</ItemGroup>

<ItemGroup>
<Compile Remove="Credentials\BasicAuthModuleForUTF8.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.DirectoryServices" Version="4.7.0" />
<PackageReference Include="System.Net.Http" Version="4.3.3" />
</ItemGroup>

<ItemGroup>
<None Include="license.txt">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
<ItemGroup>
<Compile Remove="Credentials\BasicAuthModuleForUTF8.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.DirectoryServices" Version="8.0.0" />
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Security.Cryptography.Xml" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
<None Include="license.txt">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Quick introduction

This is a NET Standard 1.4 port of EWS API. Here are some tips to take into account.
This is a NET Standard 2.0 port of EWS API. Here are some tips to take into account.

- NET Framework version is as functional as original
- Almost all functions involving HTTP requests are now async
Expand Down