Skip to content

Commit

Permalink
Rename Storage -> Core
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Sep 23, 2019
1 parent 453672d commit 294d79e
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Equinox.sln
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Tutorial", "samples\Tutoria
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Equinox.Tools.TestHarness", "tools\Equinox.Tools.TestHarness\Equinox.Tools.TestHarness.fsproj", "{C2EE7D8E-6982-41AD-ADCC-E6F586E93524}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Equinox.Storage", "src\Equinox.Storage\Equinox.Storage.fsproj", "{3021659A-5CA4-4E06-AF00-2457ED3F105B}"
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Equinox.Core", "src\Equinox.Core\Equinox.Core.fsproj", "{3021659A-5CA4-4E06-AF00-2457ED3F105B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
2 changes: 1 addition & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

<Target Name="Pack">
<Exec Command="dotnet pack src/Equinox $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack src/Equinox.Core $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack src/Equinox.Cosmos $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack src/Equinox.EventStore $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack src/Equinox.MemoryStore $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack src/Equinox.Storage $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack tools/Equinox.Tools.TestHarness $(Cfg) $(PackOptions)" />
<Exec Command='dotnet publish tools/Equinox.Tool $(Cfg) -f net461 -o "$(ThisDirAbsolute)/bin/equinox-tool/net461" ' />
<Exec Command="dotnet pack tools/Equinox.Tool $(Cfg) $(PackOptions) /p:PackAsTool=true" />
Expand Down
2 changes: 1 addition & 1 deletion samples/Store/Integration/LogIntegration.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Samples.Store.Integration.LogIntegration

open Equinox.Core
open Equinox.Cosmos.Integration
open Equinox.Storage
open FSharp.UMX
open Swensen.Unquote
open System
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Equinox.Storage
namespace Equinox.Core

/// Asynchronous Lazy<'T> that guarantees workflow will be executed at most once.
type AsyncLazy<'T>(workflow : Async<'T>) =
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[<AutoOpen>]
module internal Equinox.Storage.Infrastructure
module internal Equinox.Core.Infrastructure

open FSharp.Control
open System
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.Storage/Retry.fs → src/Equinox.Core/Retry.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Equinox.Storage
namespace Equinox.Core

/// Exception yielded by after `count` attempts to complete an operation have taken place
type OperationRetriesExceededException(count : int, innerException : exn) =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Low level stream builders, generally consumed via Store-specific Stream Builders that layer policies such as Caching in at the Category level
module Equinox.Storage.Stream
module Equinox.Core.Stream

/// Represents a specific stream in a ICategory
type private Stream<'event, 'state, 'streamId>(category : ICategory<'event, 'state, 'streamId>, streamId: 'streamId) =
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.Storage/Types.fs → src/Equinox.Core/Types.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Equinox.Storage
namespace Equinox.Core

open Serilog
open System
Expand Down
4 changes: 2 additions & 2 deletions src/Equinox.Cosmos/Cosmos.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Equinox.Cosmos.Store

open Equinox.Storage
open Equinox.Core
open FsCodec
open Microsoft.Azure.Documents
open Newtonsoft.Json
Expand Down Expand Up @@ -768,8 +768,8 @@ module Internal =
namespace Equinox.Cosmos

open Equinox
open Equinox.Core
open Equinox.Cosmos.Store
open Equinox.Storage
open FsCodec
open FSharp.Control
open Microsoft.Azure.Documents
Expand Down
4 changes: 2 additions & 2 deletions src/Equinox.Cosmos/Equinox.Cosmos.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Equinox.Storage\Infrastructure.fs" Link="Infrastructure.fs" />
<Compile Include="..\Equinox.Core\Infrastructure.fs" Link="Infrastructure.fs" />
<Compile Include="Cosmos.fs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Equinox.Storage\Equinox.Storage.fsproj" />
<ProjectReference Include="..\Equinox.Core\Equinox.Core.fsproj" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Equinox.EventStore/Equinox.EventStore.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Equinox.Storage\Infrastructure.fs" Link="Infrastructure.fs" />
<Compile Include="..\Equinox.Core\Infrastructure.fs" Link="Infrastructure.fs" />
<Compile Include="EventStore.fs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Equinox.Storage\Equinox.Storage.fsproj" />
<ProjectReference Include="..\Equinox.Core\Equinox.Core.fsproj" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.EventStore/EventStore.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Equinox.EventStore

open Equinox
open Equinox.Storage
open Equinox.Core
open EventStore.ClientAPI
open Serilog // NB must shadow EventStore.ClientAPI.ILogger
open System
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.MemoryStore/Equinox.MemoryStore.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Equinox.Storage\Equinox.Storage.fsproj" />
<ProjectReference Include="..\Equinox.Core\Equinox.Core.fsproj" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.MemoryStore/MemoryStore.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Equinox.MemoryStore

open Equinox
open Equinox.Storage
open Equinox.Core
open Serilog
open System.Runtime.InteropServices

Expand Down
4 changes: 2 additions & 2 deletions src/Equinox/Equinox.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Equinox

open Equinox.Storage
open Equinox.Core
open System.Runtime.InteropServices

// Exception yielded by Stream.Transact after `count` attempts have yielded conflicts at the point of syncing with the Store
Expand All @@ -9,7 +9,7 @@ type MaxResyncsExhaustedException(count) =

/// Central Application-facing API. Wraps the handling of decision or query flows in a manner that is store agnostic
type Stream<'event, 'state>
( log, stream : Storage.IStream<'event, 'state>, maxAttempts : int,
( log, stream : IStream<'event, 'state>, maxAttempts : int,
[<Optional; DefaultParameterValue(null)>]?mkAttemptsExhaustedException,
[<Optional; DefaultParameterValue(null)>]?resyncPolicy) =
let transact f =
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox/Flow.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Internal data structures/impl. While these are intended to be legible, understanding the abstractions involved is only necessary if you are implementing a Store or a decorator thereof.
/// i.e., if you're seeking to understand the main usage flows of the Equinox library, that's in Equinox.fs, not here
namespace Equinox.Storage
namespace Equinox.Core

open Serilog

Expand Down
2 changes: 1 addition & 1 deletion tests/Equinox.Cosmos.Integration/CacheCellTests.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Equinox.Cosmos.Integration.CacheCellTests

open Equinox.Storage
open Equinox.Core
open Swensen.Unquote
open System.Threading
open Xunit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Equinox.EventStore.Tests.EventStoreTokenTests

open Equinox.Core
open Equinox.EventStore
open Equinox.Storage
open FsCheck.Xunit
open Swensen.Unquote.Assertions
open Xunit
Expand Down

0 comments on commit 294d79e

Please sign in to comment.