-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix marshalability of IWorkspaceProject.StartBatchAsync
We have to make this return an interface marked with [RpcMarshalable], and since that can't really use IAsyncDisposable to say when it's done, I'm adding an explicit Apply method to make up for it.
- Loading branch information
1 parent
3aa2c51
commit 18feba0
Showing
4 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/Workspaces/Remote/Core/ProjectSystem/IWorkspaceProjectBatch.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using StreamJsonRpc; | ||
|
||
namespace Microsoft.CodeAnalysis.Remote.ProjectSystem; | ||
|
||
[RpcMarshalable] | ||
internal interface IWorkspaceProjectBatch : IDisposable | ||
{ | ||
Task ApplyAsync(CancellationToken cancellationToken); | ||
} |