Skip to content

Commit

Permalink
taking shape
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-dumitru committed Nov 25, 2024
1 parent 380c48a commit 6da3415
Show file tree
Hide file tree
Showing 35 changed files with 594 additions and 602 deletions.
8 changes: 7 additions & 1 deletion src/CoreIpc.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# 17
# Visual Studio Version 17
VisualStudioVersion = 17.0.31919.166
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UiPath.CoreIpc", "UiPath.CoreIpc\UiPath.CoreIpc.csproj", "{58200319-1F71-4E22-894D-7E69E0CD0B57}"
Expand All @@ -17,6 +17,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UiPath.CoreIpc.Http", "UiPa
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UiPath.Ipc.Tests", "UiPath.Ipc.Tests\UiPath.Ipc.Tests.csproj", "{E238E183-92CF-48A6-890F-C422853D6656}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UiPath.CoreIpc.Extensions.Abstractions", "UiPath.CoreIpc.Extensions.Abstractions\UiPath.CoreIpc.Extensions.Abstractions.csproj", "{F519AE2B-88A6-482E-A6E2-B525F71F566D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -39,6 +41,10 @@ Global
{E238E183-92CF-48A6-890F-C422853D6656}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E238E183-92CF-48A6-890F-C422853D6656}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E238E183-92CF-48A6-890F-C422853D6656}.Release|Any CPU.Build.0 = Release|Any CPU
{F519AE2B-88A6-482E-A6E2-B525F71F566D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F519AE2B-88A6-482E-A6E2-B525F71F566D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F519AE2B-88A6-482E-A6E2-B525F71F566D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F519AE2B-88A6-482E-A6E2-B525F71F566D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
43 changes: 17 additions & 26 deletions src/Playground/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private static async Task Main(string[] args)
typeof(Contracts.IServerOperations), // DEVINE
new EndpointSettings(typeof(Contracts.IServerOperations)) // ASTALALT
{
BeforeCall = async (callInfo, _) =>
BeforeIncommingCall = async (callInfo, _) =>
{
Console.WriteLine($"Server: {callInfo.Method.Name}");
}
Expand Down Expand Up @@ -76,36 +76,30 @@ private static async Task Main(string[] args)

var c1 = new IpcClient()
{
Config = new()
Callbacks = new()
{
Callbacks = new()
{
typeof(Contracts.IClientOperations),
{ typeof(Contracts.IClientOperations2), new Impl.Client2() },
},
ServiceProvider = clientSP,
Scheduler = clientScheduler,
typeof(Contracts.IClientOperations),
{ typeof(Contracts.IClientOperations2), new Impl.Client2() },
},
ServiceProvider = clientSP,
Scheduler = clientScheduler,
Transport = new NamedPipeClientTransport()
{
PipeName = Contracts.PipeName,
ServerName = ".",
AllowImpersonation = false,
},
}
};

var c2 = new IpcClient()
{
Config = new()
ServiceProvider = clientSP,
Callbacks = new()
{
ServiceProvider = clientSP,
Callbacks = new()
{
typeof(Contracts.IClientOperations),
{ typeof(Contracts.IClientOperations2), new Impl.Client2() },
},
Scheduler = clientScheduler,
typeof(Contracts.IClientOperations),
{ typeof(Contracts.IClientOperations2), new Impl.Client2() },
},
Scheduler = clientScheduler,
Transport = new NamedPipeClientTransport()
{
PipeName = Contracts.PipeName,
Expand All @@ -116,16 +110,13 @@ private static async Task Main(string[] args)

var proxy1 = new IpcClient()
{
Config = new()
ServiceProvider = clientSP,
Callbacks = new()
{
ServiceProvider = clientSP,
Callbacks = new()
{
typeof(Contracts.IClientOperations),
{ typeof(Contracts.IClientOperations2), new Impl.Client2() },
},
Scheduler = clientScheduler,
typeof(Contracts.IClientOperations),
{ typeof(Contracts.IClientOperations2), new Impl.Client2() },
},
Scheduler = clientScheduler,
Transport = new NamedPipeClientTransport()
{
PipeName = Contracts.PipeName,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net461;net6.0-windows</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
<Nullable>enable</Nullable>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\UiPath.CoreIpc\UiPath.CoreIpc.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit 6da3415

Please sign in to comment.