Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Core/Hypance.Application/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Hypance.Application;
public class Class1
{

}

9 changes: 9 additions & 0 deletions Core/Hypance.Application/Hypance.Application.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions Core/Hypance.Contracts/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Hypance.Contracts;
public class Class1
{

}

9 changes: 9 additions & 0 deletions Core/Hypance.Contracts/Hypance.Contracts.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions Core/Hypance.Domain/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Hypance.Domain;
public class Class1
{

}

9 changes: 9 additions & 0 deletions Core/Hypance.Domain/Hypance.Domain.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
10 changes: 10 additions & 0 deletions Core/Hypance.SharedKernel/Domain/BaseEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.ComponentModel.DataAnnotations;

namespace Hypance.SharedKernel.Domain
{
public class BaseEntity
{
[Key]
public int Id { get; set; }
}
}
15 changes: 15 additions & 0 deletions Core/Hypance.SharedKernel/Hypance.SharedKernel.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<None Remove="Result\" />
</ItemGroup>
<ItemGroup>
<Folder Include="Result\" />
</ItemGroup>
</Project>
16 changes: 16 additions & 0 deletions Core/Hypance.SharedKernel/Repositories/IRepository.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Linq.Expressions;
using Hypance.SharedKernel.Domain;
using Hypance.SharedKernel.Results;

namespace Hypance.SharedKernel.Repositories
{
public interface IRepository<T> where T : BaseEntity
{
IDataResult<T> Get(Expression<Func<T, bool>> filter);
IDataResult<List<T>> GetAll(Expression<Func<T, bool>> filter = null);
IResult Add(T entity);
IResult Update(T entity);
IResult Delete(int entityId);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Hypance.Core.Utilites
namespace Hypance.SharedKernel.Results
{
public class DataResult<T> : Result, IDataResult<T>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Hypance.Core.Utilites
namespace Hypance.SharedKernel.Results
{
public class ErrorDataResult<T> : DataResult<T>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Hypance.Core.Utilites
namespace Hypance.SharedKernel.Results
{
public class ErrorResult : Result
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Hypance.Core.Utilites
namespace Hypance.SharedKernel.Results
{
public interface IDataResult<out T> : IResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Hypance.Core.Utilites
namespace Hypance.SharedKernel.Results
{
public interface IResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Hypance.Core.Utilites
namespace Hypance.SharedKernel.Results
{
public class Result : IResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Hypance.Core.Utilites
namespace Hypance.SharedKernel.Results
{
public class SuccessDataResult<T> : DataResult<T>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Hypance.Core.Utilites
namespace Hypance.SharedKernel.Results
{
public class SuccessResult : Result
{
Expand Down
46 changes: 46 additions & 0 deletions Hypance-Backend.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ScheduledTask", "ScheduledT
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypance.ScheduledTask", "ScheduledTask\Hypance.ScheduledTask\Hypance.ScheduledTask.csproj", "{529E57BB-137F-45ED-8D68-0E1643334C1C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{D0FD4D26-1367-49EE-8A5F-EBF7791980B4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypance.Domain", "Core\Hypance.Domain\Hypance.Domain.csproj", "{9862D51C-1FA4-4187-9E58-A6C734C040AD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypance.Application", "Core\Hypance.Application\Hypance.Application.csproj", "{7C00FED1-91BA-4BD9-ACC9-E5F1CB4A4B38}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypance.SharedKernel", "Core\Hypance.SharedKernel\Hypance.SharedKernel.csproj", "{5448C411-703B-4EBB-B8F2-F664DF253282}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypance.Contracts", "Core\Hypance.Contracts\Hypance.Contracts.csproj", "{30D57BD9-4E74-48E2-A4AF-4F33AED77E48}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infrastructure", "Infrastructure", "{03A8470D-E194-4853-84BF-062E962B4A01}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypance.Persistence", "Infrastructure\Hypance.Persistence\Hypance.Persistence.csproj", "{8654FCE3-6100-4725-BAD5-504DE88480AB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hypance.Infrastructure", "Infrastructure\Hypance.Infrastructure\Hypance.Infrastructure.csproj", "{80BE653A-419B-4E1E-8EE3-5C301AB8A85E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -45,6 +61,30 @@ Global
{529E57BB-137F-45ED-8D68-0E1643334C1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{529E57BB-137F-45ED-8D68-0E1643334C1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{529E57BB-137F-45ED-8D68-0E1643334C1C}.Release|Any CPU.Build.0 = Release|Any CPU
{9862D51C-1FA4-4187-9E58-A6C734C040AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9862D51C-1FA4-4187-9E58-A6C734C040AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9862D51C-1FA4-4187-9E58-A6C734C040AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9862D51C-1FA4-4187-9E58-A6C734C040AD}.Release|Any CPU.Build.0 = Release|Any CPU
{7C00FED1-91BA-4BD9-ACC9-E5F1CB4A4B38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7C00FED1-91BA-4BD9-ACC9-E5F1CB4A4B38}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7C00FED1-91BA-4BD9-ACC9-E5F1CB4A4B38}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7C00FED1-91BA-4BD9-ACC9-E5F1CB4A4B38}.Release|Any CPU.Build.0 = Release|Any CPU
{5448C411-703B-4EBB-B8F2-F664DF253282}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5448C411-703B-4EBB-B8F2-F664DF253282}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5448C411-703B-4EBB-B8F2-F664DF253282}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5448C411-703B-4EBB-B8F2-F664DF253282}.Release|Any CPU.Build.0 = Release|Any CPU
{30D57BD9-4E74-48E2-A4AF-4F33AED77E48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{30D57BD9-4E74-48E2-A4AF-4F33AED77E48}.Debug|Any CPU.Build.0 = Debug|Any CPU
{30D57BD9-4E74-48E2-A4AF-4F33AED77E48}.Release|Any CPU.ActiveCfg = Release|Any CPU
{30D57BD9-4E74-48E2-A4AF-4F33AED77E48}.Release|Any CPU.Build.0 = Release|Any CPU
{8654FCE3-6100-4725-BAD5-504DE88480AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8654FCE3-6100-4725-BAD5-504DE88480AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8654FCE3-6100-4725-BAD5-504DE88480AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8654FCE3-6100-4725-BAD5-504DE88480AB}.Release|Any CPU.Build.0 = Release|Any CPU
{80BE653A-419B-4E1E-8EE3-5C301AB8A85E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80BE653A-419B-4E1E-8EE3-5C301AB8A85E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80BE653A-419B-4E1E-8EE3-5C301AB8A85E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{80BE653A-419B-4E1E-8EE3-5C301AB8A85E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -58,5 +98,11 @@ Global
{25F0F8C2-CF61-4B50-AB62-9D62FD5308E8} = {8F83706A-B74D-49BF-BD78-4001EC8EF7DF}
{D2EB1F1F-DC79-4229-AC70-2B0C3F0C88B4} = {FF2C3635-23E1-46FE-B091-7FF905785C8B}
{529E57BB-137F-45ED-8D68-0E1643334C1C} = {2717AC29-9F24-4C1F-A7CC-6B98DC73A679}
{9862D51C-1FA4-4187-9E58-A6C734C040AD} = {D0FD4D26-1367-49EE-8A5F-EBF7791980B4}
{7C00FED1-91BA-4BD9-ACC9-E5F1CB4A4B38} = {D0FD4D26-1367-49EE-8A5F-EBF7791980B4}
{5448C411-703B-4EBB-B8F2-F664DF253282} = {D0FD4D26-1367-49EE-8A5F-EBF7791980B4}
{30D57BD9-4E74-48E2-A4AF-4F33AED77E48} = {D0FD4D26-1367-49EE-8A5F-EBF7791980B4}
{8654FCE3-6100-4725-BAD5-504DE88480AB} = {03A8470D-E194-4853-84BF-062E962B4A01}
{80BE653A-419B-4E1E-8EE3-5C301AB8A85E} = {03A8470D-E194-4853-84BF-062E962B4A01}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions Infrastructure/Hypance.Infrastructure/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Hypance.Infrastructure;
public class Class1
{

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions Infrastructure/Hypance.Persistence/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Hypance.Persistence;
public class Class1
{

}

9 changes: 9 additions & 0 deletions Infrastructure/Hypance.Persistence/Hypance.Persistence.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
2 changes: 2 additions & 0 deletions Libraries/Hypance.Core/Hypance.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@

<ItemGroup>
<None Remove="Domain\Indicators\" />
<None Remove="Utilites\" />
</ItemGroup>
<ItemGroup>
<Folder Include="Domain\Indicators\" />
<Folder Include="Utilites\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<ProjectReference Include="..\..\Libraries\Hypance.Services\Hypance.Services.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="7.0.0" />
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="7.0.0" />
</ItemGroup>
</Project>