From 6fa837e80ada8070ab211bc59c41f38895861138 Mon Sep 17 00:00:00 2001 From: Matej Hertis Date: Tue, 27 Oct 2020 19:36:36 +0100 Subject: [PATCH] Introduce Orleankka.Client package (#169) * Introduce Orleankka.Client * Update Directory.Build.props reverted formatting * Amended Orleankka.Client description --- Directory.Build.props | 3 +++ Orleankka.sln | 6 +++++ .../Demo/Demo.App.Tests/Demo.App.Tests.csproj | 2 +- Samples/CSharp/Demo/Demo.App/Demo.App.csproj | 1 + .../EventSourcing/Idiomatic/Idiomatic.csproj | 1 + .../EventSourcing/Persistence/GES/GES.csproj | 2 +- .../Streamstone/Streamstone.csproj | 2 +- Samples/CSharp/FSM/Lightbulb/Lightbulb.csproj | 1 + .../FSM/ProcessManager/ProcessManager.csproj | 1 + Samples/CSharp/HelloWorld/HelloWorld.csproj | 1 + .../Observers/Chat.Client/Chat.Client.csproj | 1 + Samples/CSharp/Reentrant/Reentrant.csproj | 3 ++- .../Serialization/Hyperion/Hyperion.csproj | 1 + .../Serialization/ProtoBuf/ProtoBuf.csproj | 3 ++- .../Streams/Chat.Client/Chat.Client.csproj | 2 +- .../ClientOptions.cs | 0 .../Orleankka.Client/Orleankka.Client.csproj | 22 +++++++++++++++++++ Source/Orleankka/Client/ClientActorSystem.cs | 2 +- Source/Orleankka/Orleankka.csproj | 3 ++- 19 files changed, 49 insertions(+), 8 deletions(-) rename Source/{Orleankka/Client => Orleankka.Client}/ClientOptions.cs (100%) create mode 100644 Source/Orleankka.Client/Orleankka.Client.csproj diff --git a/Directory.Build.props b/Directory.Build.props index a1c5a181..98e927e8 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -54,6 +54,8 @@ 3.3.0 3.3.0 + 3.3.0 + 3.3.0 3.3.0 3.3.0 3.3.0 @@ -61,6 +63,7 @@ 3.0.0 3.0.0 + 3.1.9 3.9.0 diff --git a/Orleankka.sln b/Orleankka.sln index e2882863..1133e96c 100644 --- a/Orleankka.sln +++ b/Orleankka.sln @@ -72,6 +72,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Orleankka.Legacy.Runtime", EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Legacy", "Legacy", "{A996FEF3-9B45-4C3C-9FF0-614A51F5175D}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Orleankka.Client", "Source\Orleankka.Client\Orleankka.Client.csproj", "{E26F63B1-3747-4A63-80BB-B50951FBD52C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -174,6 +176,10 @@ Global {4B6DC915-C701-402C-B3C6-E7EB0E54F670}.Debug|Any CPU.Build.0 = Debug|Any CPU {4B6DC915-C701-402C-B3C6-E7EB0E54F670}.Release|Any CPU.ActiveCfg = Release|Any CPU {4B6DC915-C701-402C-B3C6-E7EB0E54F670}.Release|Any CPU.Build.0 = Release|Any CPU + {E26F63B1-3747-4A63-80BB-B50951FBD52C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E26F63B1-3747-4A63-80BB-B50951FBD52C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E26F63B1-3747-4A63-80BB-B50951FBD52C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E26F63B1-3747-4A63-80BB-B50951FBD52C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Samples/CSharp/Demo/Demo.App.Tests/Demo.App.Tests.csproj b/Samples/CSharp/Demo/Demo.App.Tests/Demo.App.Tests.csproj index 40dea4e1..750860fb 100644 --- a/Samples/CSharp/Demo/Demo.App.Tests/Demo.App.Tests.csproj +++ b/Samples/CSharp/Demo/Demo.App.Tests/Demo.App.Tests.csproj @@ -15,9 +15,9 @@ + - diff --git a/Samples/CSharp/Demo/Demo.App/Demo.App.csproj b/Samples/CSharp/Demo/Demo.App/Demo.App.csproj index 1f340c03..27abdd34 100644 --- a/Samples/CSharp/Demo/Demo.App/Demo.App.csproj +++ b/Samples/CSharp/Demo/Demo.App/Demo.App.csproj @@ -18,6 +18,7 @@ + diff --git a/Samples/CSharp/EventSourcing/Idiomatic/Idiomatic.csproj b/Samples/CSharp/EventSourcing/Idiomatic/Idiomatic.csproj index 7eb37133..5e0cfb70 100644 --- a/Samples/CSharp/EventSourcing/Idiomatic/Idiomatic.csproj +++ b/Samples/CSharp/EventSourcing/Idiomatic/Idiomatic.csproj @@ -21,6 +21,7 @@ + diff --git a/Samples/CSharp/EventSourcing/Persistence/GES/GES.csproj b/Samples/CSharp/EventSourcing/Persistence/GES/GES.csproj index 06cb61f7..a852c8ac 100644 --- a/Samples/CSharp/EventSourcing/Persistence/GES/GES.csproj +++ b/Samples/CSharp/EventSourcing/Persistence/GES/GES.csproj @@ -22,7 +22,7 @@ - + diff --git a/Samples/CSharp/EventSourcing/Persistence/Streamstone/Streamstone.csproj b/Samples/CSharp/EventSourcing/Persistence/Streamstone/Streamstone.csproj index 1758a293..ca46b014 100644 --- a/Samples/CSharp/EventSourcing/Persistence/Streamstone/Streamstone.csproj +++ b/Samples/CSharp/EventSourcing/Persistence/Streamstone/Streamstone.csproj @@ -21,7 +21,7 @@ - + diff --git a/Samples/CSharp/FSM/Lightbulb/Lightbulb.csproj b/Samples/CSharp/FSM/Lightbulb/Lightbulb.csproj index d579df96..c926a21c 100644 --- a/Samples/CSharp/FSM/Lightbulb/Lightbulb.csproj +++ b/Samples/CSharp/FSM/Lightbulb/Lightbulb.csproj @@ -19,6 +19,7 @@ + diff --git a/Samples/CSharp/FSM/ProcessManager/ProcessManager.csproj b/Samples/CSharp/FSM/ProcessManager/ProcessManager.csproj index 012fe1f2..06aa1e79 100644 --- a/Samples/CSharp/FSM/ProcessManager/ProcessManager.csproj +++ b/Samples/CSharp/FSM/ProcessManager/ProcessManager.csproj @@ -9,6 +9,7 @@ + diff --git a/Samples/CSharp/HelloWorld/HelloWorld.csproj b/Samples/CSharp/HelloWorld/HelloWorld.csproj index 53c1dac3..49a80224 100644 --- a/Samples/CSharp/HelloWorld/HelloWorld.csproj +++ b/Samples/CSharp/HelloWorld/HelloWorld.csproj @@ -14,6 +14,7 @@ + diff --git a/Samples/CSharp/Observers/Chat.Client/Chat.Client.csproj b/Samples/CSharp/Observers/Chat.Client/Chat.Client.csproj index d04f69ad..8f4f572c 100644 --- a/Samples/CSharp/Observers/Chat.Client/Chat.Client.csproj +++ b/Samples/CSharp/Observers/Chat.Client/Chat.Client.csproj @@ -14,6 +14,7 @@ + diff --git a/Samples/CSharp/Reentrant/Reentrant.csproj b/Samples/CSharp/Reentrant/Reentrant.csproj index fb09d4c7..75852519 100644 --- a/Samples/CSharp/Reentrant/Reentrant.csproj +++ b/Samples/CSharp/Reentrant/Reentrant.csproj @@ -19,8 +19,9 @@ - + + diff --git a/Samples/CSharp/Serialization/Hyperion/Hyperion.csproj b/Samples/CSharp/Serialization/Hyperion/Hyperion.csproj index 17e4df0d..14b79c15 100644 --- a/Samples/CSharp/Serialization/Hyperion/Hyperion.csproj +++ b/Samples/CSharp/Serialization/Hyperion/Hyperion.csproj @@ -21,6 +21,7 @@ + diff --git a/Samples/CSharp/Serialization/ProtoBuf/ProtoBuf.csproj b/Samples/CSharp/Serialization/ProtoBuf/ProtoBuf.csproj index d8d9c32e..a9ed2145 100644 --- a/Samples/CSharp/Serialization/ProtoBuf/ProtoBuf.csproj +++ b/Samples/CSharp/Serialization/ProtoBuf/ProtoBuf.csproj @@ -21,8 +21,9 @@ - + + diff --git a/Samples/CSharp/Streams/Chat.Client/Chat.Client.csproj b/Samples/CSharp/Streams/Chat.Client/Chat.Client.csproj index cf895218..91ab5bfe 100644 --- a/Samples/CSharp/Streams/Chat.Client/Chat.Client.csproj +++ b/Samples/CSharp/Streams/Chat.Client/Chat.Client.csproj @@ -14,8 +14,8 @@ + - diff --git a/Source/Orleankka/Client/ClientOptions.cs b/Source/Orleankka.Client/ClientOptions.cs similarity index 100% rename from Source/Orleankka/Client/ClientOptions.cs rename to Source/Orleankka.Client/ClientOptions.cs diff --git a/Source/Orleankka.Client/Orleankka.Client.csproj b/Source/Orleankka.Client/Orleankka.Client.csproj new file mode 100644 index 00000000..c53125e4 --- /dev/null +++ b/Source/Orleankka.Client/Orleankka.Client.csproj @@ -0,0 +1,22 @@ + + + + Orleankka.Client + Orleankka client library + Functional API for MSR Orleans. Client-side library. + + + + bin\Release\Orleankka.Client.xml + + + + + + + + + + + + diff --git a/Source/Orleankka/Client/ClientActorSystem.cs b/Source/Orleankka/Client/ClientActorSystem.cs index 76c374a8..5b53819b 100644 --- a/Source/Orleankka/Client/ClientActorSystem.cs +++ b/Source/Orleankka/Client/ClientActorSystem.cs @@ -27,7 +27,7 @@ public sealed class ClientActorSystem : ActorSystem, IClientActorSystem { readonly IGrainFactory grainFactory; - internal ClientActorSystem(Assembly[] assemblies, IServiceProvider serviceProvider) + public ClientActorSystem(Assembly[] assemblies, IServiceProvider serviceProvider) : base(assemblies, serviceProvider) { grainFactory = serviceProvider.GetService(); diff --git a/Source/Orleankka/Orleankka.csproj b/Source/Orleankka/Orleankka.csproj index fff305ca..b5941fdc 100644 --- a/Source/Orleankka/Orleankka.csproj +++ b/Source/Orleankka/Orleankka.csproj @@ -12,7 +12,8 @@ - + + \ No newline at end of file