-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Restore Runtime.Grpc project and get it building
- Loading branch information
Showing
27 changed files
with
393 additions
and
197 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
6 changes: 4 additions & 2 deletions
6
dotnet/src/Microsoft.AutoGen/Runtime.Grpc/Abstractions/IAgentGrain.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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// IAgentGrain.cs | ||
|
||
using Microsoft.AutoGen.Protobuf; | ||
|
||
namespace Microsoft.AutoGen.Runtime.Grpc.Abstractions; | ||
|
||
internal interface IAgentGrain : IGrainWithStringKey | ||
{ | ||
ValueTask<Contracts.AgentState> ReadStateAsync(); | ||
ValueTask<string> WriteStateAsync(Contracts.AgentState state, string eTag); | ||
ValueTask<AgentState> ReadStateAsync(); | ||
ValueTask<string> WriteStateAsync(AgentState state, string eTag); | ||
} |
18 changes: 14 additions & 4 deletions
18
dotnet/src/Microsoft.AutoGen/Runtime.Grpc/Abstractions/IGateway.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 |
---|---|---|
@@ -1,18 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// IGateway.cs | ||
using Microsoft.AutoGen.Contracts; | ||
using Microsoft.AutoGen.Protobuf; | ||
|
||
namespace Microsoft.AutoGen.Runtime.Grpc.Abstractions; | ||
|
||
public interface IConnection | ||
{ | ||
} | ||
|
||
public interface IGateway : IGrainObserver | ||
{ | ||
ValueTask<RpcResponse> InvokeRequestAsync(RpcRequest request); | ||
ValueTask BroadcastEventAsync(CloudEvent evt); | ||
ValueTask StoreAsync(Contracts.AgentState value); | ||
ValueTask<Contracts.AgentState> ReadAsync(AgentId agentId); | ||
ValueTask<RegisterAgentTypeResponse> RegisterAgentTypeAsync(RegisterAgentTypeRequest request); | ||
|
||
ValueTask<RpcResponse> InvokeRequestAsync(RpcRequest request); | ||
|
||
ValueTask StoreAsync(Protobuf.AgentState value); | ||
ValueTask<Protobuf.AgentState> ReadAsync(Protobuf.AgentId agentId); | ||
|
||
ValueTask<RegisterAgentTypeResponse> RegisterAgentTypeAsync(string requestId, RegisterAgentTypeRequest request); | ||
|
||
ValueTask<AddSubscriptionResponse> SubscribeAsync(AddSubscriptionRequest request); | ||
ValueTask<RemoveSubscriptionResponse> UnsubscribeAsync(RemoveSubscriptionRequest request); | ||
ValueTask<List<Subscription>> GetSubscriptionsAsync(GetSubscriptionsRequest request); | ||
|
||
Task SendMessageAsync(IConnection connection, CloudEvent cloudEvent); | ||
} |
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
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
Oops, something went wrong.