Skip to content

Commit 64bf98c

Browse files
Merge pull request #57 from microsoftgraph/MIchaelMainer/working
.Net client library update for the Microsoft Graph November 2016 update
2 parents c3ca20c + 117d81d commit 64bf98c

File tree

231 files changed

+12520
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+12520
-160
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,15 @@ var rootItem = await graphClient.Me.Drive.Root.Request().GetAsync();
8080
For a general overview of how the SDK is designed, see [overview](docs/overview.md).
8181

8282
The following sample applications are also available:
83-
* [Microsoft Graph UWP Connect Library](https://github.com/OfficeDev/Microsoft-Graph-UWP-Connect-Library) - Windows Universal app
83+
* [Microsoft Graph UWP Connect Sample](https://github.com/microsoftgraph/uwp-csharp-connect-sample)
84+
* [Microsoft Graph UWP Snippets Sample](https://github.com/microsoftgraph/uwp-csharp-snippets-sample)
85+
* [Microsoft Graph MeetingBot sample for UWP](https://github.com/microsoftgraph/uwp-csharp-meetingbot-sample)
86+
* [Microsoft Graph Connect Sample for ASP.NET 4.6](https://github.com/microsoftgraph/aspnet-connect-sample)
87+
* [Microsoft Graph Snippets Sample for ASP.NET 4.6](https://github.com/microsoftgraph/aspnet-snippets-sample)
88+
* [Microsoft Graph SDK Snippets Library for Xamarin.Forms](https://github.com/microsoftgraph/xamarin-csharp-snippets-sample)
89+
* [Microsoft Graph Connect Sample for Xamarin Forms](https://github.com/microsoftgraph/xamarin-csharp-connect-sample)
90+
* [Microsoft Graph Meeting Manager Sample for Xamarin.Forms](https://github.com/microsoftgraph/xamarin-csharp-meetingmanager-sample)
91+
* [Microsoft Graph Property Manager Sample for Xamarin Native](https://github.com/microsoftgraph/xamarin-csharp-propertymanager-sample)
8492

8593
## Documentation and resources
8694

src/Microsoft.Graph.Core/Microsoft.Graph.Core.nuspec

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
<copyright>Copyright (c) Microsoft Corporation</copyright>
1313
<projectUrl>https://graph.microsoft.io</projectUrl>
1414
<licenseUrl>http://aka.ms/devservicesagreement</licenseUrl>
15+
<releaseNotes>
16+
November 2016 Release Summary (version 1.3.0)
17+
18+
New features
19+
20+
* Added LINQ support for $select and $expand query options.
21+
22+
Bug fixes
23+
24+
* Fixed an issue in BaseRequest.cs so that query options can support a sub-query option.
25+
* Added missing configureAwait(false) in BaseRequest.cs to address potential deadlock scenario.
26+
</releaseNotes>
1527
<tags>Microsoft Office365 Graph GraphServiceClient Outlook OneDrive AzureAD GraphAPI Productivity SharePoint SDK</tags>
1628
<dependencies>
1729
<dependency id="Newtonsoft.Json" version="[6.0.1,10)" />

src/Microsoft.Graph.Core/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
//
2525
// You can specify all the values or you can default the Build and Revision Numbers
2626
// by using the '*' as shown below:
27-
[assembly: AssemblyVersion("1.2.1")]
28-
[assembly: AssemblyFileVersion("1.2.1.0")]
27+
[assembly: AssemblyVersion("1.3.0")]
28+
[assembly: AssemblyFileVersion("1.3.0.0")]
2929

3030
#if DEBUG
3131
[assembly: InternalsVisibleTo("Microsoft.Graph.Core.Test")]

src/Microsoft.Graph.Core/Requests/BaseRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public async Task<T> SendAsync<T>(
129129
{
130130
if (response.Content != null)
131131
{
132-
var responseString = await response.Content.ReadAsStringAsync();
132+
var responseString = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
133133
return this.Client.HttpProvider.Serializer.DeserializeObject<T>(responseString);
134134
}
135135

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<Compile Include="Enums\GraphErrorCode.cs" />
4444
<Compile Include="Models\Generated\*.cs" />
4545
<Compile Include="Properties\AssemblyInfo.cs" />
46+
<Compile Include="Requests\Helpers\ChunkedUploadProvider.cs" />
4647
<Compile Include="Requests\Extensions\DriveSpecialCollectionRequestBuilderExtensions.cs" />
4748
<Compile Include="Requests\Extensions\IDriveSpecialCollectionRequestBuilderExtensions.cs" />
4849
<Compile Include="Requests\Extensions\IUserMailFoldersCollectionRequestBuilderExtensions.cs" />
@@ -55,6 +56,9 @@
5556
<Compile Include="Requests\Extensions\ThumbnailSetExtensions.cs" />
5657
<Compile Include="Requests\Extensions\ThumbnailSetRequestBuilderExtensions.cs" />
5758
<Compile Include="Requests\Generated\*.cs" />
59+
<Compile Include="Requests\IUploadChunkRequest.cs" />
60+
<Compile Include="Requests\UploadChunkRequest.cs" />
61+
<Compile Include="Requests\UploadSessionRequest.cs" />
5862
</ItemGroup>
5963
<ItemGroup>
6064
<ProjectReference Include="..\Microsoft.Graph.Core\Microsoft.Graph.Core.csproj">

src/Microsoft.Graph/Microsoft.Graph.nuspec

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,25 @@
1212
<copyright>Copyright (c) Microsoft Corporation</copyright>
1313
<projectUrl>https://graph.microsoft.io</projectUrl>
1414
<licenseUrl>http://aka.ms/devservicesagreement</licenseUrl>
15-
<releaseNotes>## September 2016 Release Summary (version 1.1.1)
15+
<releaseNotes>
16+
November 2016 Release Summary (version 1.2.0)
1617

17-
We've got a new addition to the .Net Microsoft Graph client API family. Excel files stored in OneDrive can now be accessed from .Net applications. We've refactored the base classes to be included in the Microsoft.Graph.Core assembly so that custom clients can target specific workloads. Here are the changes made with this release.
18+
New features
1819

19-
* Excel REST API support
20-
* Refactor base classes to Microsoft.Graph.Core
21-
* Nuspec updated to target Xamarin
22-
* Bug fixes
20+
* Get a user's mailbox settings and drives.
21+
* Extended properties on calendars, events, messages, contacts, posts, contact folders, and mail folders.
22+
* OnlineMeetingUrl on event entities.
23+
* Attachments on messages.
24+
* New properties on drive items: content, cTag, package, parentReference, root, sharePointIds, size, webDavUrl, and permissions.
25+
* Upload large files to OneDrive in chunks.
26+
* Search OneDrive files.
27+
* Send OneDrive file sharing invite to other people.
28+
* LINQ enabled on select and expand query parameters.
2329

24-
## Excel REST API
25-
The Excel REST API provides many new opportunities to enhance your workflow around Excel spreadsheets. There are hundreds of new APIs that support accessing Excel features.
30+
Bug fixes
2631

27-
## Refactor base classes to Microsoft.Graph.Core
28-
This will support workload specific client libraries.
29-
30-
## Nuspec updated to target Xamarin
31-
32-
## Bug fixes
33-
34-
* Add support for updating user references. For example, you can now update a user's manager.
35-
* Updated to use NewtonSoft 9.0.1 from 6.0.2. Tested. Set allowed package version range to greater than or equal to 9 and less than 10.
36-
* Updated the data contracts to only use NewtonSoft.</releaseNotes>
32+
* Added missing configureAwait(false) in BaseRequest.cs to address potential deadlock scenario.
33+
</releaseNotes>
3734
<tags>Microsoft Office365 Graph GraphServiceClient Outlook OneDrive AzureAD GraphAPI Productivity SharePoint SDK</tags>
3835
<dependencies>
3936
<dependency id="Newtonsoft.Json" version="[6.0.1,10)" />
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
7+
8+
namespace Microsoft.Graph
9+
{
10+
using System;
11+
using System.Collections.Generic;
12+
using System.IO;
13+
using System.Runtime.Serialization;
14+
using Newtonsoft.Json;
15+
16+
/// <summary>
17+
/// The type AutomaticRepliesSetting.
18+
/// </summary>
19+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
20+
[JsonConverter(typeof(DerivedTypeConverter))]
21+
public partial class AutomaticRepliesSetting
22+
{
23+
24+
/// <summary>
25+
/// Gets or sets status.
26+
/// </summary>
27+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "status", Required = Required.Default)]
28+
public AutomaticRepliesStatus? Status { get; set; }
29+
30+
/// <summary>
31+
/// Gets or sets externalAudience.
32+
/// </summary>
33+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "externalAudience", Required = Required.Default)]
34+
public ExternalAudienceScope? ExternalAudience { get; set; }
35+
36+
/// <summary>
37+
/// Gets or sets scheduledStartDateTime.
38+
/// </summary>
39+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "scheduledStartDateTime", Required = Required.Default)]
40+
public DateTimeTimeZone ScheduledStartDateTime { get; set; }
41+
42+
/// <summary>
43+
/// Gets or sets scheduledEndDateTime.
44+
/// </summary>
45+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "scheduledEndDateTime", Required = Required.Default)]
46+
public DateTimeTimeZone ScheduledEndDateTime { get; set; }
47+
48+
/// <summary>
49+
/// Gets or sets internalReplyMessage.
50+
/// </summary>
51+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "internalReplyMessage", Required = Required.Default)]
52+
public string InternalReplyMessage { get; set; }
53+
54+
/// <summary>
55+
/// Gets or sets externalReplyMessage.
56+
/// </summary>
57+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "externalReplyMessage", Required = Required.Default)]
58+
public string ExternalReplyMessage { get; set; }
59+
60+
/// <summary>
61+
/// Gets or sets additional data.
62+
/// </summary>
63+
[JsonExtensionData(ReadData = true)]
64+
public IDictionary<string, object> AdditionalData { get; set; }
65+
66+
}
67+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
7+
8+
9+
namespace Microsoft.Graph
10+
{
11+
using Newtonsoft.Json;
12+
13+
/// <summary>
14+
/// The enum AutomaticRepliesStatus.
15+
/// </summary>
16+
[JsonConverter(typeof(EnumConverter))]
17+
public enum AutomaticRepliesStatus
18+
{
19+
20+
/// <summary>
21+
/// disabled
22+
/// </summary>
23+
Disabled,
24+
25+
/// <summary>
26+
/// always Enabled
27+
/// </summary>
28+
AlwaysEnabled,
29+
30+
/// <summary>
31+
/// scheduled
32+
/// </summary>
33+
Scheduled,
34+
35+
}
36+
}

src/Microsoft.Graph/Models/Generated/Calendar.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ public partial class Calendar : Entity
5050
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "calendarView", Required = Required.Default)]
5151
public ICalendarCalendarViewCollectionPage CalendarView { get; set; }
5252

53+
/// <summary>
54+
/// Gets or sets single value extended properties.
55+
/// </summary>
56+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "singleValueExtendedProperties", Required = Required.Default)]
57+
public ICalendarSingleValueExtendedPropertiesCollectionPage SingleValueExtendedProperties { get; set; }
58+
59+
/// <summary>
60+
/// Gets or sets multi value extended properties.
61+
/// </summary>
62+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "multiValueExtendedProperties", Required = Required.Default)]
63+
public ICalendarMultiValueExtendedPropertiesCollectionPage MultiValueExtendedProperties { get; set; }
64+
5365
}
5466
}
5567

src/Microsoft.Graph/Models/Generated/Contact.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,18 @@ public partial class Contact : OutlookItem
224224
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "extensions", Required = Required.Default)]
225225
public IContactExtensionsCollectionPage Extensions { get; set; }
226226

227+
/// <summary>
228+
/// Gets or sets single value extended properties.
229+
/// </summary>
230+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "singleValueExtendedProperties", Required = Required.Default)]
231+
public IContactSingleValueExtendedPropertiesCollectionPage SingleValueExtendedProperties { get; set; }
232+
233+
/// <summary>
234+
/// Gets or sets multi value extended properties.
235+
/// </summary>
236+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "multiValueExtendedProperties", Required = Required.Default)]
237+
public IContactMultiValueExtendedPropertiesCollectionPage MultiValueExtendedProperties { get; set; }
238+
227239
/// <summary>
228240
/// Gets or sets photo.
229241
/// </summary>

0 commit comments

Comments
 (0)