Skip to content

Commit

Permalink
update Akka to 1.3.3
Browse files Browse the repository at this point in the history
update all packages
  • Loading branch information
vasily-kirichenko committed Jan 20, 2018
1 parent 03d5238 commit 7df17a7
Show file tree
Hide file tree
Showing 17 changed files with 249 additions and 139 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -187,4 +187,5 @@ paket-files
docs/content/license.md
docs/content/release-notes.md
\.fake/
release.cmd
release.cmd
.idea/
13 changes: 12 additions & 1 deletion .paket/Paket.Restore.targets
Expand Up @@ -18,6 +18,14 @@
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>

<!-- .net core fdd -->
<_PaketExeExtension>$([System.IO.Path]::GetExtension("$(PaketExePath)"))</_PaketExeExtension>
<PaketCommand Condition=" '$(_PaketExeExtension)' == '.dll' ">dotnet "$(PaketExePath)"</PaketCommand>

<!-- no extension is a shell script -->
<PaketCommand Condition=" '$(_PaketExeExtension)' == '' ">"$(PaketExePath)"</PaketCommand>

<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' AND Exists('$(PaketRootPath)paket.bootstrapper.exe')">$(PaketRootPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)"</PaketBootStrapperCommand>
Expand Down Expand Up @@ -114,9 +122,11 @@
<PaketReferencesFileLinesInfo Include="@(PaketReferencesFileLines)" >
<PackageName>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName>
<PackageVersion>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion>
<AllPrivateAssets>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4])</AllPrivateAssets>
</PaketReferencesFileLinesInfo>
<PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)">
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version>
<PrivateAssets Condition="%(PaketReferencesFileLinesInfo.AllPrivateAssets) == 'true'">All</PrivateAssets>
</PackageReference>
</ItemGroup>

Expand All @@ -138,9 +148,10 @@
</DotNetCliToolReference>
</ItemGroup>

<!-- Disabled for now until we know what to do with runtime deps - https://github.com/fsprojects/Paket/issues/2964
<PropertyGroup>
<RestoreConfigFile>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config</RestoreConfigFile>
</PropertyGroup>
</PropertyGroup> -->

</Target>

Expand Down
165 changes: 86 additions & 79 deletions paket.lock

Large diffs are not rendered by default.

43 changes: 38 additions & 5 deletions src/Akkling.Cluster.Sharding/Akkling.Cluster.Sharding.fsproj
Expand Up @@ -87,6 +87,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Configuration">
<Paket>True</Paket>
</Reference>
<Reference Include="Akka">
<HintPath>..\..\packages\Akka\lib\net45\Akka.dll</HintPath>
<Private>True</Private>
Expand All @@ -109,6 +112,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Data.DataSetExtensions">
<Paket>True</Paket>
</Reference>
<Reference Include="Akka.Cluster.Sharding">
<HintPath>..\..\packages\Akka.Cluster.Sharding\lib\net45\Akka.Cluster.Sharding.dll</HintPath>
<Private>True</Private>
Expand All @@ -128,6 +134,17 @@
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Akka.DistributedData">
<HintPath>..\..\packages\Akka.DistributedData\lib\net45\Akka.DistributedData.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
Expand Down Expand Up @@ -217,19 +234,24 @@
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Google.Protobuf">
<HintPath>..\..\packages\Google.Protobuf\lib\net451\Google.Protobuf.dll</HintPath>
<HintPath>..\..\packages\Google.Protobuf\lib\net45\Google.Protobuf.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5'">
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Google.Protobuf">
<HintPath>..\..\packages\Google.Protobuf\lib\netstandard1.0\Google.Protobuf.dll</HintPath>
<Reference Include="Microsoft.CSharp">
<Paket>True</Paket>
</Reference>
<Reference Include="Hyperion">
<HintPath>..\..\packages\Hyperion\lib\net45\Hyperion.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
Expand Down Expand Up @@ -267,6 +289,17 @@
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Runtime.CompilerServices.Unsafe">
<HintPath>..\..\packages\System.Runtime.CompilerServices.Unsafe\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
Expand Down
30 changes: 19 additions & 11 deletions src/Akkling.DistributedData/Akkling.DistributedData.fsproj
Expand Up @@ -78,6 +78,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Configuration">
<Paket>True</Paket>
</Reference>
<Reference Include="Akka">
<HintPath>..\..\packages\Akka\lib\net45\Akka.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -186,19 +189,10 @@
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Google.Protobuf">
<HintPath>..\..\packages\Google.Protobuf\lib\net451\Google.Protobuf.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5'">
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Google.Protobuf">
<HintPath>..\..\packages\Google.Protobuf\lib\netstandard1.0\Google.Protobuf.dll</HintPath>
<HintPath>..\..\packages\Google.Protobuf\lib\net45\Google.Protobuf.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
Expand All @@ -208,6 +202,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Microsoft.CSharp">
<Paket>True</Paket>
</Reference>
<Reference Include="Hyperion">
<HintPath>..\..\packages\Hyperion\lib\net45\Hyperion.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -247,6 +244,17 @@
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Runtime.CompilerServices.Unsafe">
<HintPath>..\..\packages\System.Runtime.CompilerServices.Unsafe\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
Expand Down
16 changes: 5 additions & 11 deletions src/Akkling.Persistence/Akkling.Persistence.fsproj
Expand Up @@ -83,6 +83,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Configuration">
<Paket>True</Paket>
</Reference>
<Reference Include="Akka">
<HintPath>..\..\packages\Akka\lib\net45\Akka.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -136,19 +139,10 @@
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Google.Protobuf">
<HintPath>..\..\packages\Google.Protobuf\lib\net451\Google.Protobuf.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5'">
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Google.Protobuf">
<HintPath>..\..\packages\Google.Protobuf\lib\netstandard1.0\Google.Protobuf.dll</HintPath>
<HintPath>..\..\packages\Google.Protobuf\lib\net45\Google.Protobuf.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
Expand Down
4 changes: 2 additions & 2 deletions src/Akkling.Persistence/AtLeastOnceDelivery.fs
Expand Up @@ -51,8 +51,8 @@ type AtLeastOnceDeliverySemantic (semantic: Akka.Persistence.AtLeastOnceDelivery
with
| :? MaxUnconfirmedMessagesExceededException -> false
/// Partial behavior responsible for handling the at-least-once-delivery semantics messages.
member __.Receive : Receive<obj, 'Context> =
fun (ctx: 'Context) (msg: obj) ->
member __.Receive : Receive<obj, Actor<obj>> =
fun (ctx: Actor<obj>) (msg: obj) ->
match msg with
| LifecycleEvent e ->
match e with
Expand Down
3 changes: 3 additions & 0 deletions src/Akkling.Streams/Akkling.Streams.fsproj
Expand Up @@ -84,6 +84,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Configuration">
<Paket>True</Paket>
</Reference>
<Reference Include="Akka">
<HintPath>..\..\packages\Akka\lib\net45\Akka.dll</HintPath>
<Private>True</Private>
Expand Down
6 changes: 0 additions & 6 deletions src/Akkling.Streams/Source.fs
Expand Up @@ -401,12 +401,6 @@ module Source =
let inline buffer (strategy: OverflowStrategy) (n: int) (source) : Source<'t, 'mat> =
SourceOperations.Buffer(source, n, strategy)

/// Generic transformation of a stream with a custom processing stage.
/// This operator makes it possible to extend the flow API when there is no specialized
/// operator that performs the transformation.
let inline transform (stageFac: unit -> #IStage<'u, 't>) (source) : Source<'t, 'mat> =
SourceOperations.Transform(source, Func<_>(fun () -> upcast stageFac()))

/// Takes up to n elements from the stream and returns a pair containing a strict sequence of the taken element
/// and a stream representing the remaining elements. If <paramref name="n"/> is zero or negative, then this will return a pair
/// of an empty collection and a stream containing the whole upstream unchanged.
Expand Down
7 changes: 5 additions & 2 deletions src/Akkling.TestKit/Akkling.TestKit.fsproj
Expand Up @@ -79,6 +79,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Configuration">
<Paket>True</Paket>
</Reference>
<Reference Include="Akka">
<HintPath>..\..\packages\Akka\lib\net45\Akka.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -130,10 +133,10 @@
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5.2'">
<ItemGroup>
<Reference Include="FsCheck.Xunit">
<HintPath>..\..\packages\FsCheck.Xunit\lib\net45\FsCheck.Xunit.dll</HintPath>
<HintPath>..\..\packages\FsCheck.Xunit\lib\net452\FsCheck.Xunit.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
Expand Down
6 changes: 6 additions & 0 deletions src/Akkling/Akkling.fsproj
Expand Up @@ -89,6 +89,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="System.Configuration">
<Paket>True</Paket>
</Reference>
<Reference Include="Akka">
<HintPath>..\..\packages\Akka\lib\net45\Akka.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -176,6 +179,9 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="Microsoft.CSharp">
<Paket>True</Paket>
</Reference>
<Reference Include="Hyperion">
<HintPath>..\..\packages\Hyperion\lib\net45\Hyperion.dll</HintPath>
<Private>True</Private>
Expand Down
5 changes: 3 additions & 2 deletions src/Akkling/Props.fs
Expand Up @@ -11,6 +11,7 @@ module Akkling.Props

open System
open Akka.Actor
open Akka.Routing
open Microsoft.FSharp.Quotations
open Microsoft.FSharp.Linq.QuotationEvaluation

Expand Down Expand Up @@ -110,7 +111,7 @@ type Props<'Message> =
Deploy = Some props.Deploy
Dispatcher = if props.Dispatcher = Deploy.NoDispatcherGiven then None else Some props.Dispatcher
Mailbox = if props.Mailbox = Deploy.NoMailboxGiven then None else Some props.Mailbox
Router = if props.RouterConfig = Akka.Routing.RouterConfig.NoRouter then None else Some props.RouterConfig
Router = if props.RouterConfig.Equals NoRouter.Instance then None else Some props.RouterConfig
SupervisionStrategy = if props.SupervisorStrategy = null then None else Some props.SupervisorStrategy
}

Expand All @@ -120,7 +121,7 @@ type Props<'Message> =
Deploy = Some props.Deploy
Dispatcher = if props.Dispatcher = Deploy.NoDispatcherGiven then None else Some props.Dispatcher
Mailbox = if props.Mailbox = Deploy.NoMailboxGiven then None else Some props.Mailbox
Router = if props.RouterConfig = Akka.Routing.RouterConfig.NoRouter then None else Some props.RouterConfig
Router = if props.RouterConfig.Equals NoRouter.Instance then None else Some props.RouterConfig
SupervisionStrategy = if props.SupervisorStrategy = null then None else Some props.SupervisorStrategy
}

Expand Down
2 changes: 1 addition & 1 deletion src/Akkling/Spawning.fs
Expand Up @@ -45,7 +45,7 @@ module System =
let _ = Akka.Serialization.HyperionSerializer // I don't know why, but without this system cannot instantiate serializer
let system = ActorSystem.Create(name, config.WithFallback Configuration.extendedConfig)
let exprSerializer = Akkling.Serialization.ExprSerializer(system :?> ExtendedActorSystem)
system.Serialization.AddSerializer(exprSerializer)
system.Serialization.AddSerializer("ExpSerializer", exprSerializer)
system.Serialization.AddSerializationMap(typeof<Expr>, exprSerializer)
system

Expand Down

0 comments on commit 7df17a7

Please sign in to comment.