-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sean McBeth
committed
Dec 3, 2023
1 parent
ff1a0c5
commit acd4f8a
Showing
357 changed files
with
1,440 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Juniper.Root/IO/AbstractStreamSource.cs → src/Juniper.Caching/AbstractStreamSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/Juniper.Root/IO/ContentReference.cs → src/Juniper.Caching/ContentReference.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Juniper.Root/IO/ICacheDestinationLayer.cs → ...Juniper.Caching/ICacheDestinationLayer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Juniper.IO; | ||
namespace Juniper.Caching; | ||
|
||
public interface ICacheDestinationLayer : ICacheSourceLayer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Juniper.Root/IO/ICacheSourceLayer.cs → src/Juniper.Caching/ICacheSourceLayer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using Juniper.Progress; | ||
|
||
namespace Juniper.IO; | ||
namespace Juniper.Caching; | ||
|
||
public interface ICacheSourceLayer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>Juniper.Caching</AssemblyName> | ||
<RootNamespace>Juniper.Caching</RootNamespace> | ||
<PackageId>SeanMcBeth.Juniper.Caching</PackageId> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<Authors>Sean T. McBeth</Authors> | ||
<Copyright>Copyright © Sean T. McBeth 2019</Copyright> | ||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> | ||
<Description>General purpose code</Description> | ||
<PackageProjectUrl>https://github.com/capnmidnight/Juniper</PackageProjectUrl> | ||
<PackageIcon>logo_juniper.min.png</PackageIcon> | ||
<RepositoryUrl>https://github.com/capnmidnight/Juniper</RepositoryUrl> | ||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Platforms>AnyCPU;x64</Platforms> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<DebugType>portable</DebugType> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<DebugType>none</DebugType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\.editorconfig" Link=".editorconfig" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Juniper.IO\Juniper.IO.csproj" /> | ||
<ProjectReference Include="..\Juniper.MediaType\Juniper.MediaType.csproj" /> | ||
<ProjectReference Include="..\Juniper.Progress\Juniper.Progress.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/Juniper.Root/IO/StreamSourceExt.cs → src/Juniper.Caching/StreamSourceExt.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/Juniper.Root/IO/StreamSourceLayer.cs → src/Juniper.Caching/StreamSourceLayer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
src/Juniper.Root/Collections/Graph.cs → src/Juniper.Collections/Graph.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>Juniper.Collections</AssemblyName> | ||
<RootNamespace>Juniper.Collections</RootNamespace> | ||
<PackageId>SeanMcBeth.Juniper.Collections</PackageId> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<Authors>Sean T. McBeth</Authors> | ||
<Copyright>Copyright © Sean T. McBeth 2019</Copyright> | ||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> | ||
<Description>General purpose code</Description> | ||
<PackageProjectUrl>https://github.com/capnmidnight/Juniper</PackageProjectUrl> | ||
<PackageIcon>logo_juniper.min.png</PackageIcon> | ||
<RepositoryUrl>https://github.com/capnmidnight/Juniper</RepositoryUrl> | ||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Platforms>AnyCPU;x64</Platforms> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<DebugType>portable</DebugType> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<DebugType>none</DebugType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\.editorconfig" Link=".editorconfig" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Juniper.IO\Juniper.IO.csproj" /> | ||
<ProjectReference Include="..\Juniper.Logic\Juniper.Logic.csproj" /> | ||
<ProjectReference Include="..\Juniper.MediaType\Juniper.MediaType.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
using Juniper.HTTP; | ||
|
||
using System.Net.WebSockets; | ||
using System.Text; | ||
|
||
namespace Juniper.IO; | ||
|
||
public static class ISerializerExt | ||
{ | ||
public static void Serialize<T, M>(this ISerializer<T, M> serializer, HttpRequestMessage request, MediaType type, T value) | ||
where M : MediaType | ||
{ | ||
if (serializer is null) | ||
{ | ||
throw new ArgumentNullException(nameof(serializer)); | ||
} | ||
|
||
if (request is null) | ||
{ | ||
throw new ArgumentNullException(nameof(request)); | ||
} | ||
|
||
var stream = serializer.GetStream(value); | ||
request.Body(new StreamContent(stream), type); | ||
} | ||
|
||
public static Task SerializeAsync<T, M, U>(this ISerializer<T, M> serializer, WebSocketConnection<U> socket, T value) | ||
where M : MediaType | ||
where U : WebSocket | ||
{ | ||
if (serializer is null) | ||
{ | ||
throw new ArgumentNullException(nameof(serializer)); | ||
} | ||
|
||
if (socket is null) | ||
{ | ||
throw new ArgumentNullException(nameof(socket)); | ||
} | ||
|
||
var data = serializer.Serialize(value); | ||
return socket.SendAsync(data); | ||
} | ||
|
||
public static Task SerializeAsync<T, M, U>(this ISerializer<T, M> serializer, WebSocketConnection<U> socket, string message, T value) | ||
where M : MediaType | ||
where U : WebSocket | ||
{ | ||
if (serializer is null) | ||
{ | ||
throw new ArgumentNullException(nameof(serializer)); | ||
} | ||
|
||
if (socket is null) | ||
{ | ||
throw new ArgumentNullException(nameof(socket)); | ||
} | ||
|
||
if (message is null) | ||
{ | ||
throw new ArgumentNullException(nameof(message)); | ||
} | ||
|
||
return socket.SendAsync(message, value, serializer); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>Juniper.HTTP</AssemblyName> | ||
<RootNamespace>Juniper.HTTP</RootNamespace> | ||
<PackageId>SeanMcBeth.Juniper.HTTP</PackageId> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<Authors>Sean T. McBeth</Authors> | ||
<Copyright>Copyright © Sean T. McBeth 2019</Copyright> | ||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> | ||
<Description>General purpose code</Description> | ||
<PackageProjectUrl>https://github.com/capnmidnight/Juniper</PackageProjectUrl> | ||
<PackageIcon>logo_juniper.min.png</PackageIcon> | ||
<RepositoryUrl>https://github.com/capnmidnight/Juniper</RepositoryUrl> | ||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Platforms>AnyCPU;x64</Platforms> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<DebugType>portable</DebugType> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<DebugType>none</DebugType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\.editorconfig" Link=".editorconfig" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Juniper.Caching\Juniper.Caching.csproj" /> | ||
<ProjectReference Include="..\Juniper.IO\Juniper.IO.csproj" /> | ||
<ProjectReference Include="..\Juniper.MediaType\Juniper.MediaType.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...Juniper.Root/HTTP/REST/AbstractRequest.cs → src/Juniper.HTTP/REST/AbstractRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using Juniper.Caching; | ||
using Juniper.IO; | ||
using Juniper.Progress; | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.