Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Jan 17, 2024
2 parents 8e740be + 5c79600 commit 72ea7c3
Show file tree
Hide file tree
Showing 330 changed files with 2,002 additions and 17,629 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ${{ matrix.os }}
outputs:
is_push_to_default_branch: ${{ steps.conditionals_handler.outputs.is_push_to_default_branch }}
os: ${{ matrix.os }}
run_number: ${{ github.run_number }}
steps:
- name: Data gatherer
id: data_gatherer
Expand Down Expand Up @@ -54,7 +56,7 @@ jobs:
- name: Setup .NET Core
id: setup_dotnet_core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
include-prerelease: true
Expand Down Expand Up @@ -86,16 +88,16 @@ jobs:
- name: Upload build artifacts
id: upload_build_artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Build artifacts
name: Build artifacts-${{ matrix.os }}-${{ github.run_number }}
path: Artifacts/

- name: Upload publish artifacts
id: upload_publish_artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Publish artifacts
name: Publish artifacts-${{ matrix.os }}-${{ github.run_number }}
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/WebApp/

cd:
Expand All @@ -106,14 +108,14 @@ jobs:
steps:
- name: Download publish artifacts
id: dl_publish_artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Publish artifacts
name: Publish artifacts-${{ needs.ci.outputs.os }}-${{ needs.ci.outputs.run_number }}
path: WebApp/

- name: Azure webapp deploy with Publish Profile
id: azure_webapp_deploy_with_publish_profile
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZUREWEBAPPPUBLISHPROFILE }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
include-prerelease: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
include-prerelease: true
Expand All @@ -30,7 +30,7 @@ jobs:

# Deploy to Azure WebApps using Publish Profile
- name: 'Azure webapp deploy with Publish Profile'
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZUREWEBAPPPUBLISHPROFILE }}
Expand Down
30 changes: 0 additions & 30 deletions DevBetterWeb.sln
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevBetterWeb.Vimeo", "src\DevBetterWeb.Vimeo\DevBetterWeb.Vimeo.csproj", "{07B190B4-A1AD-4967-896B-A1A7040DDB76}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevBetterWeb.Vimeo.Tests", "tests\DevBetterWeb.Vimeo.Tests\DevBetterWeb.Vimeo.Tests.csproj", "{77FEAB83-ACCB-4287-8011-84426B8636BB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevBetterWeb.UnitTests", "tests\DevBetterWeb.UnitTests\DevBetterWeb.UnitTests.csproj", "{0AB375BC-E7AD-4BD9-8D28-AC07351CE37A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevBetterWeb.FunctionalTests", "tests\DevBetterWeb.FunctionalTests\DevBetterWeb.FunctionalTests.csproj", "{26C52F3F-8053-4891-9D9D-E8BB99D566A5}"
Expand Down Expand Up @@ -95,30 +91,6 @@ Global
{AEE17BAB-D187-4BC5-B640-40CC0749566C}.Release|x64.Build.0 = Release|Any CPU
{AEE17BAB-D187-4BC5-B640-40CC0749566C}.Release|x86.ActiveCfg = Release|Any CPU
{AEE17BAB-D187-4BC5-B640-40CC0749566C}.Release|x86.Build.0 = Release|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Debug|Any CPU.Build.0 = Debug|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Debug|x64.ActiveCfg = Debug|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Debug|x64.Build.0 = Debug|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Debug|x86.ActiveCfg = Debug|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Debug|x86.Build.0 = Debug|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Release|Any CPU.ActiveCfg = Release|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Release|Any CPU.Build.0 = Release|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Release|x64.ActiveCfg = Release|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Release|x64.Build.0 = Release|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Release|x86.ActiveCfg = Release|Any CPU
{07B190B4-A1AD-4967-896B-A1A7040DDB76}.Release|x86.Build.0 = Release|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Debug|x64.ActiveCfg = Debug|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Debug|x64.Build.0 = Debug|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Debug|x86.ActiveCfg = Debug|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Debug|x86.Build.0 = Debug|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Release|Any CPU.Build.0 = Release|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Release|x64.ActiveCfg = Release|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Release|x64.Build.0 = Release|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Release|x86.ActiveCfg = Release|Any CPU
{77FEAB83-ACCB-4287-8011-84426B8636BB}.Release|x86.Build.0 = Release|Any CPU
{0AB375BC-E7AD-4BD9-8D28-AC07351CE37A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0AB375BC-E7AD-4BD9-8D28-AC07351CE37A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0AB375BC-E7AD-4BD9-8D28-AC07351CE37A}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -152,8 +124,6 @@ Global
{220361D6-9C76-4E3F-BD34-3C7B50E2CA4D} = {106AE906-5075-410A-B941-912F811848EE}
{C9751CB7-4CD6-4633-A99A-4F6ADD525437} = {106AE906-5075-410A-B941-912F811848EE}
{AEE17BAB-D187-4BC5-B640-40CC0749566C} = {B31B4797-1D9F-4288-808C-BE9A31A98C7D}
{07B190B4-A1AD-4967-896B-A1A7040DDB76} = {106AE906-5075-410A-B941-912F811848EE}
{77FEAB83-ACCB-4287-8011-84426B8636BB} = {B31B4797-1D9F-4288-808C-BE9A31A98C7D}
{0AB375BC-E7AD-4BD9-8D28-AC07351CE37A} = {B31B4797-1D9F-4288-808C-BE9A31A98C7D}
{26C52F3F-8053-4891-9D9D-E8BB99D566A5} = {B31B4797-1D9F-4288-808C-BE9A31A98C7D}
EndGlobalSection
Expand Down
55 changes: 28 additions & 27 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<PackageVersion Include="Ardalis.ApiClient" Version="0.2.3" />
<PackageVersion Include="Ardalis.ApiEndpoints" Version="4.1.0" />
<PackageVersion Include="Ardalis.EFCore.Extensions" Version="6.0.0" />
<PackageVersion Include="Ardalis.GuardClauses" Version="4.1.1" />
<PackageVersion Include="Ardalis.HttpClientTestExtensions" Version="4.1.0" />
<PackageVersion Include="Ardalis.GuardClauses" Version="4.2.0" />
<PackageVersion Include="Ardalis.HttpClientTestExtensions" Version="4.2.0" />
<PackageVersion Include="Ardalis.ListStartupServices" Version="1.1.4" />
<PackageVersion Include="Ardalis.Result" Version="7.1.0" />
<PackageVersion Include="Ardalis.Result.AspNetCore" Version="7.1.0" />
<PackageVersion Include="Ardalis.Result.AspNetCore" Version="7.2.0" />
<PackageVersion Include="Ardalis.SmartEnum" Version="7.0.0" />
<PackageVersion Include="Ardalis.Specification" Version="7.0.0" />
<PackageVersion Include="Ardalis.Specification.EntityFrameworkCore" Version="7.0.0" />
Expand All @@ -26,12 +26,12 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageVersion>
<PackageVersion Include="CSharpFunctionalExtensions" Version="2.40.1" />
<PackageVersion Include="Dapper" Version="2.0.151" />
<PackageVersion Include="CSharpFunctionalExtensions" Version="2.40.3" />
<PackageVersion Include="Dapper" Version="2.1.15" />
<PackageVersion Include="FastEndpoints" Version="5.18.0" />
<PackageVersion Include="FastEndpoints.ApiExplorer" Version="2.2.0" />
<PackageVersion Include="FastEndpoints.Swagger" Version="5.18.0" />
<PackageVersion Include="FastEndpoints.Swagger.Swashbuckle" Version="2.0.1" />
<PackageVersion Include="FastEndpoints.Swagger.Swashbuckle" Version="2.2.0" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="Flurl" Version="3.0.7" />
<PackageVersion Include="Flurl.Http" Version="3.2.4" />
Expand All @@ -41,29 +41,30 @@
<PackageVersion Include="MediaInfo.Wrapper.Core" Version="21.9.3" />
<PackageVersion Include="MediatR" Version="12.1.1" />
<PackageVersion Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.21.0" />
<PackageVersion Include="Microsoft.AspNetCore.AzureAppServices.HostingStartup" Version="7.0.10" />
<PackageVersion Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.10" />
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.10" />
<PackageVersion Include="Microsoft.AspNetCore.Identity.UI" Version="7.0.10" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.8" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.10" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.10" />
<PackageVersion Include="Microsoft.CodeCoverage" Version="17.7.2" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.10" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.10" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.10" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" PrivateAssets="all" Version="7.0.10" />
<PackageVersion Include="Microsoft.AspNetCore.AzureAppServices.HostingStartup" Version="7.0.13" />
<PackageVersion Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.13" />
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.13" />
<PackageVersion Include="Microsoft.AspNetCore.Identity.UI" Version="7.0.13" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.13" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.13" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.13" />
<PackageVersion Include="Microsoft.CodeCoverage" Version="17.8.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.13" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.13" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.13" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" PrivateAssets="all" Version="7.0.13" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Identity.Core" Version="7.0.10" />
<PackageVersion Include="Microsoft.Extensions.Identity.Stores" Version="7.0.10" />
<PackageVersion Include="Microsoft.Extensions.Identity.Core" Version="7.0.13" />
<PackageVersion Include="Microsoft.Extensions.Identity.Stores" Version="7.0.13" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.AzureAppServices" Version="7.0.10" />
<PackageVersion Include="Microsoft.Extensions.Logging.AzureAppServices" Version="7.0.13" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageVersion Include="Microsoft.Web.LibraryManager.Build" Version="2.1.175" />
<PackageVersion Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.9" />
<PackageVersion Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.13" />
<PackageVersion Include="Moq" Version="4.18.4" />
<PackageVersion Include="NETStandard.Library" Version="2.0.3" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="NimblePros.Vimeo" Version="1.0.6" />
<PackageVersion Include="NSubstitute" Version="5.1.0" />
<PackageVersion Include="ReportGenerator" Version="5.1.25" />
<PackageVersion Include="Sendgrid" Version="9.28.1" />
Expand All @@ -82,13 +83,13 @@
<PackageVersion Include="TagHelperSamples.Authorization" Version="3.0.56" />
<PackageVersion Include="Westwind.AspNetCore.Markdown" Version="3.12.0" />
<PackageVersion Include="WindowsAzure.Storage" Version="9.3.3" />
<PackageVersion Include="xunit" Version="2.5.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.0" />
<PackageVersion Include="xunit.runner.console" Version="2.5.0">
<PackageVersion Include="xunit" Version="2.6.6" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.3" />
<PackageVersion Include="xunit.runner.console" Version="2.6.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="xunit.runner.reporters" Version="2.5.0" />
<PackageVersion Include="XunitXml.TestLogger" Version="3.1.11" />
<PackageVersion Include="xunit.runner.reporters" Version="2.6.4" />
<PackageVersion Include="XunitXml.TestLogger" Version="3.1.17" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/DevBetterWeb.Core/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static class Constants
public static class ConfigKeys
{
public const string FileStorageConnectionString = "storageconnectionstring";
public const string VimeoToken = "VIMEO_TOKEN";
public const string ApiKey = "API_KEY";
public const string VimeoSettings = "VimeoSettings";
}
}
6 changes: 2 additions & 4 deletions src/DevBetterWeb.Core/DevBetterWeb.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
<PackageReference Include="Ardalis.Specification" />
<PackageReference Include="CSharpFunctionalExtensions" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" />
<PackageReference Include="Microsoft.Extensions.Identity.Core" />
<PackageReference Include="NimblePros.Vimeo" />
<PackageReference Include="System.ComponentModel.Annotations" />
<PackageReference Include="NETStandard.Library" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DevBetterWeb.Vimeo\DevBetterWeb.Vimeo.csproj" />
</ItemGroup>

</Project>
3 changes: 1 addition & 2 deletions src/DevBetterWeb.Core/Entities/BillingActivity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using DevBetterWeb.Core.Interfaces;
using DevBetterWeb.Core.Interfaces;
using DevBetterWeb.Core.SharedKernel;
using DevBetterWeb.Core.ValueObjects;

Expand Down
2 changes: 0 additions & 2 deletions src/DevBetterWeb.Core/Entities/Book.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using DevBetterWeb.Core.Interfaces;
using DevBetterWeb.Core.Services;
using DevBetterWeb.Core.SharedKernel;

namespace DevBetterWeb.Core.Entities;
Expand Down
1 change: 0 additions & 1 deletion src/DevBetterWeb.Core/Entities/BookCategory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Linq;
using DevBetterWeb.Core.Interfaces;
using DevBetterWeb.Core.SharedKernel;

Expand Down
7 changes: 5 additions & 2 deletions src/DevBetterWeb.Core/Entities/Member.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ internal Member(string userId, string firstName, string lastName)
public string? TwitchUrl { get; private set; }
public string? YouTubeUrl { get; private set; }
public string? TwitterUrl { get; private set; }
public string? BlueskyUrl { get; private set; }
public string? CodinGameUrl { get; private set; }
public string? DiscordUsername { get; private set; }
public string? MastodonUrl { get; private set; } // added and deployed 5 Jan 2022 but site broke
Expand Down Expand Up @@ -225,27 +226,29 @@ public void UpdatePEInfo(string? peFriendCode, string? peUsername, bool isEvent
}

public void UpdateLinks(string? blogUrl,
string? codinGameUrl,
string? codinGameUrl,
string? gitHubUrl,
string? linkedInUrl,
string? otherUrl,
string? twitchUrl,
string? youtubeUrl,
string? twitterUrl,
string? blueskyUrl,
string? mastodonUrl,
bool isEvent = true)
{
HashSet<(PropertyInfo prop, string? paramValue)> propInfosAndParamValues = new()
{
(GetProperty(nameof(BlogUrl)), blogUrl),
(GetProperty(nameof(BlueskyUrl)), blueskyUrl),
(GetProperty(nameof(CodinGameUrl)), codinGameUrl),
(GetProperty(nameof(GitHubUrl)), gitHubUrl),
(GetProperty(nameof(LinkedInUrl)), linkedInUrl),
(GetProperty(nameof(MastodonUrl)), mastodonUrl),
(GetProperty(nameof(OtherUrl)), otherUrl),
(GetProperty(nameof(TwitchUrl)), twitchUrl),
(GetProperty(nameof(TwitterUrl)), twitterUrl),
(GetProperty(nameof(YouTubeUrl)), youtubeUrl),
(GetProperty(nameof(YouTubeUrl)), youtubeUrl)
};

var valuesChanged = propInfosAndParamValues
Expand Down
3 changes: 1 addition & 2 deletions src/DevBetterWeb.Core/Entities/QuestionVote.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using DevBetterWeb.Core.Interfaces;
using DevBetterWeb.Core.Interfaces;
using DevBetterWeb.Core.SharedKernel;

namespace DevBetterWeb.Core.Entities;
Expand Down
1 change: 0 additions & 1 deletion src/DevBetterWeb.Core/Entities/VideoComment.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Ardalis.GuardClauses;
using DevBetterWeb.Core.Interfaces;
using DevBetterWeb.Core.SharedKernel;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using DevBetterWeb.Core.Entities;

namespace DevBetterWeb.Core.Interfaces;
public interface IAddCreatedVideoToFolderService
{
Task<bool> ExecuteAsync(bool isBaseFolder, long? folderId, ArchiveVideo archiveVideo, CancellationToken cancellationToken = default);
}
14 changes: 14 additions & 0 deletions src/DevBetterWeb.Core/Interfaces/ICreateVideoService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NimblePros.Vimeo.VideoTusService;

namespace DevBetterWeb.Core.Interfaces;
public interface ICreateVideoService
{
Task<string> StartAsync(string videoName, long videoSize, string domain, CancellationToken cancellationToken = default);
Task<UploadChunkStatus> UploadChunkAsync(bool isBaseFolder, string sessionId, string chunk, string? description, long? folderId, CancellationToken cancellationToken = default);
}
5 changes: 1 addition & 4 deletions src/DevBetterWeb.Core/Interfaces/IMapCoordinateService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks;

namespace DevBetterWeb.Core.Interfaces;

Expand Down
11 changes: 0 additions & 11 deletions src/DevBetterWeb.Core/Interfaces/IVideosCacheService.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/DevBetterWeb.Core/Interfaces/IVideosService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ namespace DevBetterWeb.Core.Interfaces;
public interface IVideosService
{
Task UpdateVideosThumbnail(AppendOnlyStringList? messages, CancellationToken cancellationToken = default);
Task UpdateVideosCache(AppendOnlyStringList? messages);
Task DeleteVideosNotExistOnVimeoFromDatabase(AppendOnlyStringList? messages);
Task DeleteVideosNotExistOnVimeoFromVimeo(AppendOnlyStringList? messages);
Task AddArchiveVideoInfo(ArchiveVideo archiveVideo, CancellationToken cancellationToken = default);
Expand Down
Loading

0 comments on commit 72ea7c3

Please sign in to comment.