Skip to content

Commit cd96e62

Browse files
authored
Merge pull request #105 from lmagyar/samples-master
Update NuGet packages to v0.3.0
2 parents c595357 + f98787e commit cd96e62

File tree

12 files changed

+20
-23
lines changed

12 files changed

+20
-23
lines changed

Samples/src/Orleans.Activities.Samples.Arithmetical.GrainInterfaces/Orleans.Activities.Samples.Arithmetical.GrainInterfaces.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform>AnyCPU</Platform>
@@ -24,7 +24,6 @@
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
2626
<Prefer32Bit>false</Prefer32Bit>
27-
<NoWarn>CSE0001 CSE0003</NoWarn>
2827
</PropertyGroup>
2928
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3029
<DebugType>pdbonly</DebugType>
@@ -34,7 +33,6 @@
3433
<ErrorReport>prompt</ErrorReport>
3534
<WarningLevel>4</WarningLevel>
3635
<Prefer32Bit>false</Prefer32Bit>
37-
<NoWarn>CSE0001 CSE0003</NoWarn>
3836
</PropertyGroup>
3937
<ItemGroup>
4038
<Reference Include="Microsoft.Extensions.DependencyInjection, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">

Samples/src/Orleans.Activities.Samples.Arithmetical.Grains/AdderGrain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected override Task OnUnhandledExceptionAsync(Exception exception, Activity
4040
// it is propagated back to the caller. If the workflow persist itself but due to a failure it aborts later and propagates the exception back to the caller,
4141
// it will be reloaded when the caller repeats the request or by a reactivation reminder. If the caller repeats the call only after the workflow is reloaded and completed,
4242
// this not a problem, it will get the same output arguments or OperationCanceledException or the exception that caused the workflow to terminate.
43-
public async Task<int> AddAsync(int arg1, int arg2)
43+
async Task<int> IAdder.AddAsync(int arg1, int arg2)
4444
{
4545
// IMPORTANT: Do not copy values from the grain's state into the input arguments, because input arguments will be persisted by the workflow also.
4646
// Closure directly the necessary values from the incoming public grain method call's parameters into the delegate.

Samples/src/Orleans.Activities.Samples.Arithmetical.Grains/MultiplierGrain.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected override Task OnUnhandledExceptionAsync(Exception exception, Activity
4848
}
4949

5050
// MultiplierGrain only executes the workflow until it gets idle, from that moment the workflow executes in the "background" and calls the Completed event when it completes.
51-
public async Task MultiplyAsync(int arg1, int arg2)
51+
async Task IMultiplier.MultiplyAsync(int arg1, int arg2)
5252
{
5353
// IMPORTANT: Do not copy values from the grain's state into the input arguments, because input arguments will be persisted by the workflow also.
5454
// Closure directly the necessary values from the incoming public grain method call's parameters into the delegate.
@@ -71,13 +71,13 @@ public override async Task OnActivateAsync()
7171
subsManager = new ObserverSubscriptionManager<IMultiplierResultReceiver>();
7272
}
7373

74-
public Task SubscribeAsync(IMultiplierResultReceiver observer)
74+
Task IMultiplier.SubscribeAsync(IMultiplierResultReceiver observer)
7575
{
7676
subsManager.Subscribe(observer);
7777
return Task.CompletedTask;
7878
}
7979

80-
public Task UnsubscribeAsync(IMultiplierResultReceiver observer)
80+
Task IMultiplier.UnsubscribeAsync(IMultiplierResultReceiver observer)
8181
{
8282
subsManager.Unsubscribe(observer);
8383
return Task.CompletedTask;

Samples/src/Orleans.Activities.Samples.Arithmetical.Grains/Orleans.Activities.Samples.Arithmetical.Grains.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform>AnyCPU</Platform>
@@ -51,7 +51,7 @@
5151
<HintPath>..\packages\Microsoft.Orleans.Core.1.5.0-beta1\lib\net461\Orleans.dll</HintPath>
5252
</Reference>
5353
<Reference Include="Orleans.Activities, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
54-
<HintPath>..\packages\Orleans.Activities.0.3.0-master-10099\lib\net461\Orleans.Activities.dll</HintPath>
54+
<HintPath>..\packages\Orleans.Activities.0.3.0\lib\net461\Orleans.Activities.dll</HintPath>
5555
</Reference>
5656
<Reference Include="System" />
5757
<Reference Include="Microsoft.CSharp" />

Samples/src/Orleans.Activities.Samples.Arithmetical.Grains/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net461" />
88
<package id="NETStandard.Library" version="1.6.1" targetFramework="net461" />
99
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net461" />
10-
<package id="Orleans.Activities" version="0.3.0-master-10099" targetFramework="net461" />
10+
<package id="Orleans.Activities" version="0.3.0" targetFramework="net461" />
1111
<package id="System.AppContext" version="4.3.0" targetFramework="net461" />
1212
<package id="System.Collections" version="4.3.0" targetFramework="net461" />
1313
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net461" />

Samples/src/Orleans.Activities.Samples.Arithmetical.SiloHost/Orleans.Activities.Samples.Arithmetical.SiloHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform>AnyCPU</Platform>

Samples/src/Orleans.Activities.Samples.HelloWorld.GrainInterfaces/Orleans.Activities.Samples.HelloWorld.GrainInterfaces.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform>AnyCPU</Platform>
@@ -24,7 +24,6 @@
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
2626
<Prefer32Bit>false</Prefer32Bit>
27-
<NoWarn>CSE0001 CSE0003</NoWarn>
2827
</PropertyGroup>
2928
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3029
<DebugType>pdbonly</DebugType>
@@ -34,7 +33,6 @@
3433
<ErrorReport>prompt</ErrorReport>
3534
<WarningLevel>4</WarningLevel>
3635
<Prefer32Bit>false</Prefer32Bit>
37-
<NoWarn>CSE0001 CSE0003</NoWarn>
3836
</PropertyGroup>
3937
<ItemGroup>
4038
<Reference Include="Microsoft.Extensions.DependencyInjection, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">

Samples/src/Orleans.Activities.Samples.HelloWorld.Grains/HelloGrain.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected override Task OnUnhandledExceptionAsync(Exception exception, Activity
5555

5656
// The parameter delegate executed when the workflow accepts the incoming call,
5757
// it can modify the grain's State or do nearly anything a normal grain method can (command pattern).
58-
public async Task<string> SayHelloAsync(string greeting)
58+
async Task<string> IHello.SayHelloAsync(string greeting)
5959
{
6060
Task<string> ProcessRequestAsync(string _request) => Task.FromResult(_request);
6161
Task<string> CreateResponseAsync(string _responseParameter) => Task.FromResult(_responseParameter);
@@ -74,7 +74,7 @@ await WorkflowInterface.GreetClientAsync(
7474

7575
// The parameter delegate executed when the workflow accepts the incoming call,
7676
// it can modify the grain's State or do nearly anything a normal grain method can (command pattern).
77-
public async Task<string> SayByeAsync()
77+
async Task<string> IHello.SayByeAsync()
7878
{
7979
Task ProcessRequestAsync() => Task.CompletedTask;
8080
Task<string> CreateResponseAsync(string _responseParameter) => Task.FromResult(_responseParameter);
@@ -103,8 +103,9 @@ async Task<Func<Task<string>>> IHelloWorkflowCallbackInterface.WhatShouldISayAsy
103103
Task<string> SomeExternalStuffAsync(string _request) => Task.FromResult(string.IsNullOrEmpty(_request) ? "Who are you?" : "Hello!");
104104
Task<string> ProcessResponseAsync(string _response) => Task.FromResult(_response);
105105

106-
Task<string> someExternalStuffTask = SomeExternalStuffAsync(await CreateRequestAsync(clientSaid));
107-
return async () => await ProcessResponseAsync(await someExternalStuffTask);
106+
string request = await CreateRequestAsync(clientSaid);
107+
string response = await SomeExternalStuffAsync(request);
108+
return async () => await ProcessResponseAsync(response);
108109
}
109110
}
110111
}

Samples/src/Orleans.Activities.Samples.HelloWorld.Grains/Orleans.Activities.Samples.HelloWorld.Grains.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform>AnyCPU</Platform>
@@ -51,7 +51,7 @@
5151
<HintPath>..\packages\Microsoft.Orleans.Core.1.5.0-beta1\lib\net461\Orleans.dll</HintPath>
5252
</Reference>
5353
<Reference Include="Orleans.Activities, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
54-
<HintPath>..\packages\Orleans.Activities.0.3.0-master-10099\lib\net461\Orleans.Activities.dll</HintPath>
54+
<HintPath>..\packages\Orleans.Activities.0.3.0\lib\net461\Orleans.Activities.dll</HintPath>
5555
</Reference>
5656
<Reference Include="System" />
5757
<Reference Include="Microsoft.CSharp" />

Samples/src/Orleans.Activities.Samples.HelloWorld.Grains/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net461" />
88
<package id="NETStandard.Library" version="1.6.1" targetFramework="net461" />
99
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net461" />
10-
<package id="Orleans.Activities" version="0.3.0-master-10099" targetFramework="net461" />
10+
<package id="Orleans.Activities" version="0.3.0" targetFramework="net461" />
1111
<package id="System.AppContext" version="4.3.0" targetFramework="net461" />
1212
<package id="System.Collections" version="4.3.0" targetFramework="net461" />
1313
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net461" />

0 commit comments

Comments
 (0)