From f9db92caaecee45f06847f0ff82fbb7b38ea2bff Mon Sep 17 00:00:00 2001 From: Yevhen Bobrov Date: Sat, 21 Dec 2019 14:38:47 +0200 Subject: [PATCH] Upgrade to Orleans 3.0.2 --- Directory.Build.props | 10 +++++----- Source/Orleans.Internals/Orleans.Internals.csproj | 2 +- .../Orleankka.Tests/Features/Reminders_idempotency.cs | 4 ++-- Tests/Orleankka.Tests/Features/Stream_subscriptions.cs | 1 + Tests/Orleankka.Tests/Testing/TestActions.cs | 9 ++------- 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 6e88028d..5f85595d 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -45,11 +45,11 @@ - 2.4.4 - 2.4.4 - 2.4.4 - 2.4.4 - 2.4.4 + 3.0.2 + 3.0.2 + 3.0.2 + 3.0.2 + 3.0.2 2.1.1 diff --git a/Source/Orleans.Internals/Orleans.Internals.csproj b/Source/Orleans.Internals/Orleans.Internals.csproj index c4e0285b..43cf2abd 100644 --- a/Source/Orleans.Internals/Orleans.Internals.csproj +++ b/Source/Orleans.Internals/Orleans.Internals.csproj @@ -2,7 +2,7 @@ - OrleansManager + TesterInternal Orleankka.Runtime.Legacy.Support Supporting package for Orleankka.Runtime.Legacy Do not reference this package directly, instead reference Orleankka.Runtime.Legacy diff --git a/Tests/Orleankka.Tests/Features/Reminders_idempotency.cs b/Tests/Orleankka.Tests/Features/Reminders_idempotency.cs index e96cf6e7..399d0c04 100644 --- a/Tests/Orleankka.Tests/Features/Reminders_idempotency.cs +++ b/Tests/Orleankka.Tests/Features/Reminders_idempotency.cs @@ -89,8 +89,8 @@ static async Task CleanRemindersTable() { var getGrainGeneric = typeof(IGrainFactory).GetMethod("GetGrain", new[]{typeof(long), typeof(string)}); var getGrain = getGrainGeneric.MakeGenericMethod(typeof(IReminderTable).Assembly.GetType("Orleans.IReminderTableGrain")); - var grain = (IReminderTable)getGrain.Invoke(TestActorSystem.Client, new object[]{12345, null}); - await grain.TestOnlyClearTable(); + var grain = getGrain.Invoke(TestActorSystem.Client, new object[]{12345, null}); + await (Task) grain.GetType().GetMethod("TestOnlyClearTable").Invoke(grain, new object[0]); } } } diff --git a/Tests/Orleankka.Tests/Features/Stream_subscriptions.cs b/Tests/Orleankka.Tests/Features/Stream_subscriptions.cs index 79e94016..e3b8df73 100644 --- a/Tests/Orleankka.Tests/Features/Stream_subscriptions.cs +++ b/Tests/Orleankka.Tests/Features/Stream_subscriptions.cs @@ -60,6 +60,7 @@ public override async Task Receive(object message) } [TestFixture] + [RequiresSilo] class Tests { static readonly TimeSpan timeout = TimeSpan.FromMilliseconds(100); diff --git a/Tests/Orleankka.Tests/Testing/TestActions.cs b/Tests/Orleankka.Tests/Testing/TestActions.cs index 11a5e90a..1de657a7 100644 --- a/Tests/Orleankka.Tests/Testing/TestActions.cs +++ b/Tests/Orleankka.Tests/Testing/TestActions.cs @@ -2,9 +2,8 @@ using System.Collections.Generic; using System.Linq; using System.Net; - +using Microsoft.Azure.Storage; using Microsoft.Extensions.DependencyInjection; -using Microsoft.WindowsAzure.Storage; using NUnit.Framework; using NUnit.Framework.Interfaces; @@ -19,9 +18,6 @@ using Orleankka.Features.Intercepting_requests; using Orleankka.Legacy.Cluster; -using Orleans.Providers.Streams.AzureQueue; -using Orleans.Streaming; - [assembly: TeardownSilo] namespace Orleankka.Testing @@ -63,9 +59,8 @@ public override void BeforeTest(ITest test) .AddMemoryGrainStorageAsDefault() .AddMemoryGrainStorage("PubSubStore") .UseInMemoryReminderService() - .AddAzureQueueStreams("aqp", (SiloAzureQueueStreamConfigurator x) => + .AddAzureQueueStreams("aqp", x => { - x.ConfigureCache(1024); x.ConfigureAzureQueue(b => b.Configure(options => { options.ConnectionString = CloudStorageAccount.DevelopmentStorageAccount.ToString();