Skip to content

Commit

Permalink
Merge of #1245. Thanks @JakeStanger
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenbe committed Aug 17, 2023
1 parent 29ad66b commit 8c7d8b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

### Added

- Support for using the `ILongRunningOperation` interface to track the progress of long running operations #1245 [JakeStanger - Jake Stanger]

### Changed

- Fixed Graph paging for US Government, Germany and China clouds + removed some hardcoded references to graph.microsoft.com [jansenbe - Bert Jansen]
Expand Down
7 changes: 7 additions & 0 deletions src/sdk/PnP.Core/Services/Core/IPnPContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ public interface IPnPContext : IDisposable
/// </summary>
bool HasPendingRequests { get; }

/// <summary>
/// Gets an ongoing Graph long-running operation.
/// </summary>
/// <param name="location">The location of the operation</param>
/// <returns>An <see cref="ILongRunningOperation"/> associated with the location</returns>
ILongRunningOperation GetLongRunningOperation(string location);

/// <summary>
/// Method to execute the current batch
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/PnP.Core/Services/Core/PnPContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public Batch NewBatch()
/// Gets an ongoing Graph long-running operation.
/// </summary>
/// <param name="location">The location of the operation</param>
/// <returns>An `ILongRunningOperation` associated with the location</returns>
/// <returns>An <see cref="ILongRunningOperation"/> associated with the location</returns>
public ILongRunningOperation GetLongRunningOperation(string location)
{
return new LongRunningOperation(location, this);
Expand Down

0 comments on commit 8c7d8b0

Please sign in to comment.