Skip to content

Commit e49b882

Browse files
committed
using
aws delete fix Testcontainers - images projects tests project clean-up docs nuget tests tessts controller nuget storage fix nuget test nuget new version nuget
1 parent 3ccaa9a commit e49b882

File tree

134 files changed

+2105
-1870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+2105
-1870
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup .NET
2323
uses: actions/setup-dotnet@v3
2424
with:
25-
dotnet-version: 7.0.x
25+
dotnet-version: 8.0.x
2626

2727
- name: Restore dependencies
2828
run: dotnet restore

.github/workflows/nuget.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
# name: nuget
2-
#
3-
# on:
4-
# push:
5-
# branches: [ main ]
6-
#
7-
# # Allows you to run this workflow manually from the Actions tab
8-
# workflow_dispatch:
9-
#
10-
# jobs:
11-
# nuget-pack:
12-
#
13-
# runs-on: ubuntu-latest
14-
#
15-
# steps:
16-
# - uses: actions/checkout@v3
17-
# - name: Setup .NET
18-
# uses: actions/setup-dotnet@v3
19-
# with:
20-
# dotnet-version: 7.0.x
21-
#
22-
# - name: Restore dependencies
23-
# run: dotnet restore
24-
# - name: Build
25-
# run: dotnet build --configuration Release
26-
# - name: Pack
27-
# run: dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --configuration Release
28-
#
29-
# - name: publish nuget packages
30-
# run: |
31-
# shopt -s globstar
32-
# for file in **/*.nupkg
33-
# do
34-
# dotnet nuget push "$file" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
35-
# done
1+
name: nuget
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
nuget-pack:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: '8.0.x'
21+
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
25+
- name: Build
26+
run: dotnet build --configuration Release
27+
28+
# - name: Test
29+
# run: dotnet test --configuration Release
30+
31+
- name: Pack
32+
run: dotnet pack --configuration Release -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg -o "packages"
33+
34+
- name: Push
35+
run: dotnet nuget push "packages/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

Directory.Build.props

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
<Project>
2-
3-
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<LangVersion>12</LangVersion>
6-
<EnableNETAnalyzers>true</EnableNETAnalyzers>
7-
<DebugType>embedded</DebugType>
8-
<Nullable>enable</Nullable>
9-
</PropertyGroup>
10-
11-
<!--NuGet-->
12-
<PropertyGroup>
13-
<Authors>ManagedCode</Authors>
14-
<Copyright>Copyright © 2021-$([System.DateTime]::Now.ToString(`yyyy`)) ManagedCode SAS</Copyright>
15-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
16-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
17-
<IncludeSymbols>true</IncludeSymbols>
18-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
19-
<RepositoryType>Github</RepositoryType>
20-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
21-
<PackageIcon>logo.png</PackageIcon>
22-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
23-
<EnablePackageValidation>true</EnablePackageValidation>
24-
<PackageReadmeFile>README.md</PackageReadmeFile>
252

26-
<RepositoryUrl>https://github.com/managedcode/Storage</RepositoryUrl>
27-
<PackageProjectUrl>https://github.com/managedcode/Storage</PackageProjectUrl>
28-
<Product>Managed Code - Storage</Product>
29-
<Version>2.1.16</Version>
30-
<PackageVersion>2.1.16</PackageVersion>
3+
<PropertyGroup>
4+
<TargetFrameworks>net8.0;net6.0;net7.0</TargetFrameworks>
5+
<LangVersion>12</LangVersion>
6+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
7+
<DebugType>embedded</DebugType>
8+
<Nullable>enable</Nullable>
9+
</PropertyGroup>
3110

32-
</PropertyGroup>
33-
34-
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
35-
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
36-
</PropertyGroup>
37-
<ItemGroup>
38-
<None Include="$(SolutionDir)\logo.png" Pack="true" Visible="false" PackagePath="\"/>
39-
<None Include="$(SolutionDir)\README.md" Pack="true" Visible="false" PackagePath="\"/>
40-
</ItemGroup>
41-
<ItemGroup>
42-
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
43-
<PrivateAssets>all</PrivateAssets>
44-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
45-
</PackageReference>
46-
</ItemGroup>
47-
</Project>
11+
<!--NuGet-->
12+
<PropertyGroup>
13+
<Authors>ManagedCode</Authors>
14+
<Copyright>Copyright © 2021-$([System.DateTime]::Now.ToString(`yyyy`)) ManagedCode SAS</Copyright>
15+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
16+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
17+
<IncludeSymbols>true</IncludeSymbols>
18+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
19+
<RepositoryType>Github</RepositoryType>
20+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
21+
<PackageIcon>logo.png</PackageIcon>
22+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
23+
<EnablePackageValidation>true</EnablePackageValidation>
24+
<PackageReadmeFile>README.md</PackageReadmeFile>
25+
26+
<RepositoryUrl>https://github.com/managedcode/Storage</RepositoryUrl>
27+
<PackageProjectUrl>https://github.com/managedcode/Storage</PackageProjectUrl>
28+
<Product>Managed Code - Storage</Product>
29+
<Version>2.1.18</Version>
30+
<PackageVersion>2.1.18</PackageVersion>
31+
32+
</PropertyGroup>
33+
34+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
35+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
36+
</PropertyGroup>
37+
<ItemGroup>
38+
<None Include="$(SolutionDir)\logo.png" Pack="true" Visible="false" PackagePath="\"/>
39+
<None Include="$(SolutionDir)\README.md" Pack="true" Visible="false" PackagePath="\"/>
40+
</ItemGroup>
41+
<ItemGroup>
42+
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
43+
<PrivateAssets>all</PrivateAssets>
44+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
45+
</PackageReference>
46+
</ItemGroup>
47+
</Project>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
namespace ManagedCode.Storage.Client.SignalR;
2+
3+
public class Class1
4+
{
5+
}

ManagedCode.Storage.Client.SignalR/ManagedCode.Storage.Client.SignalR.csproj renamed to Integraions/ManagedCode.Storage.Client.SignalR/ManagedCode.Storage.Client.SignalR.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="..\ManagedCode.Storage.Core\ManagedCode.Storage.Core.csproj" />
17+
<ProjectReference Include="..\..\ManagedCode.Storage.Core\ManagedCode.Storage.Core.csproj"/>
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="ManagedCode.MimeTypes" Version="1.0.0" />
22-
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="7.0.12" />
21+
<PackageReference Include="ManagedCode.MimeTypes" Version="1.0.0"/>
22+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="8.0.6" />
2323
</ItemGroup>
2424

2525
</Project>

ManagedCode.Storage.Client/IStorageClient.cs renamed to Integraions/ManagedCode.Storage.Client/IStorageClient.cs

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@
33
using System.Threading;
44
using System.Threading.Tasks;
55
using ManagedCode.Communication;
6-
using ManagedCode.Storage.Core;
76
using ManagedCode.Storage.Core.Models;
87

98
namespace ManagedCode.Storage.Client;
109

1110
public interface IStorageClient
1211
{
1312
void SetChunkSize(long size);
14-
15-
/// <summary>
16-
/// Event triggered when the progress status changes during an upload or download operation.
17-
/// </summary>
18-
/// <remarks>
19-
/// The event handler receives an argument of type <see cref="ProgressStatus"/> which contains detailed information about the progress of the operation.
20-
/// This includes the file name, progress percentage, total bytes, transferred bytes, elapsed time, remaining time, speed, and any error message.
21-
/// </remarks>
13+
2214
event EventHandler<ProgressStatus> OnProgressStatusChanged;
2315

2416
Task<Result<BlobMetadata>> UploadFile(string base64, string apiUrl, string contentName, CancellationToken cancellationToken = default);
@@ -31,22 +23,8 @@ public interface IStorageClient
3123

3224
Task<Result<LocalFile>> DownloadFile(string fileName, string apiUrl, string? path = null, CancellationToken cancellationToken = default);
3325

34-
Task<Result<uint>> UploadLargeFile(Stream file,
35-
string uploadApiUrl,
36-
string completeApiUrl,
37-
Action<double>? onProgressChanged,
26+
Task<Result<uint>> UploadLargeFile(Stream file, string uploadApiUrl, string completeApiUrl, Action<double>? onProgressChanged,
3827
CancellationToken cancellationToken = default);
3928

4029
Task<Result<Stream>> GetFileStream(string fileName, string apiUrl, CancellationToken cancellationToken = default);
41-
}
42-
43-
44-
public record ProgressStatus(
45-
string File,
46-
float Progress,
47-
long TotalBytes,
48-
long TransferredBytes,
49-
TimeSpan Elapsed,
50-
TimeSpan Remaining,
51-
string Speed,
52-
string? Error = null);
30+
}

ManagedCode.Storage.Client/ManagedCode.Storage.Client.csproj renamed to Integraions/ManagedCode.Storage.Client/ManagedCode.Storage.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="..\ManagedCode.Storage.Core\ManagedCode.Storage.Core.csproj" />
17+
<ProjectReference Include="..\..\ManagedCode.Storage.Core\ManagedCode.Storage.Core.csproj"/>
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="ManagedCode.MimeTypes" Version="1.0.0" />
21+
<PackageReference Include="ManagedCode.MimeTypes" Version="1.0.0"/>
2222
</ItemGroup>
2323

2424
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
3+
namespace ManagedCode.Storage.Client;
4+
5+
public record ProgressStatus(
6+
string File,
7+
float Progress,
8+
long TotalBytes,
9+
long TransferredBytes,
10+
TimeSpan Elapsed,
11+
TimeSpan Remaining,
12+
string Speed,
13+
string? Error = null);

0 commit comments

Comments
 (0)