mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 14:51:44 +01:00
Test RPC Event
This commit is contained in:
parent
0eb3997d54
commit
eaa18af8c2
@ -31,6 +31,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.editorconfig = .editorconfig
|
||||
.gitlab-ci.yml = .gitlab-ci.yml
|
||||
.gitmodules = .gitmodules
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
|
@ -8,6 +8,7 @@ using Borepin.Service.Storage;
|
||||
using Borepin.Model.Storage;
|
||||
using Borepin.Service.BFFH.Exceptions;
|
||||
using Borepin.Service.Storage.Exceptions;
|
||||
using Capnp.Rpc;
|
||||
|
||||
namespace Borepin.Service.BFFH
|
||||
{
|
||||
@ -60,6 +61,11 @@ namespace Borepin.Service.BFFH
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
private void StateChanged(Object sender, ConnectionStateEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all known Connections from Storage
|
||||
/// </summary>
|
||||
@ -297,9 +303,10 @@ namespace Borepin.Service.BFFH
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
private static async Task<Capnp.Rpc.TcpRpcClient> _ConnectAsync(string host, int port)
|
||||
private async Task<TcpRpcClient> _ConnectAsync(string host, int port)
|
||||
{
|
||||
Capnp.Rpc.TcpRpcClient rpcClient = new Capnp.Rpc.TcpRpcClient();
|
||||
TcpRpcClient rpcClient = new TcpRpcClient();
|
||||
rpcClient.ConnectionStateChanged += StateChanged;
|
||||
rpcClient.Connect(host, port);
|
||||
await rpcClient.WhenConnected.ConfigureAwait(false);
|
||||
|
||||
|
2
external/capnproto-dotnetcore
vendored
2
external/capnproto-dotnetcore
vendored
@ -1 +1 @@
|
||||
Subproject commit 1ba1b6fbe0d9a278445ef7fde7624f218171156b
|
||||
Subproject commit 086bbc2497785d2cc63e9252df6f6d3ee7599579
|
Loading…
x
Reference in New Issue
Block a user