Compare commits
	
		
			No commits in common. 'master' and 'main' have entirely different histories. 
		
	
	
		
	
				 18 changed files with 127 additions and 236 deletions
			
			
		@ -1,63 +0,0 @@ | 
				
			|||
############################################################################### | 
				
			|||
# Set default behavior to automatically normalize line endings. | 
				
			|||
############################################################################### | 
				
			|||
* text=auto | 
				
			|||
 | 
				
			|||
############################################################################### | 
				
			|||
# Set default behavior for command prompt diff. | 
				
			|||
# | 
				
			|||
# This is need for earlier builds of msysgit that does not have it on by | 
				
			|||
# default for csharp files. | 
				
			|||
# Note: This is only used by command line | 
				
			|||
############################################################################### | 
				
			|||
#*.cs     diff=csharp | 
				
			|||
 | 
				
			|||
############################################################################### | 
				
			|||
# Set the merge driver for project and solution files | 
				
			|||
# | 
				
			|||
# Merging from the command prompt will add diff markers to the files if there | 
				
			|||
# are conflicts (Merging from VS is not affected by the settings below, in VS | 
				
			|||
# the diff markers are never inserted). Diff markers may cause the following  | 
				
			|||
# file extensions to fail to load in VS. An alternative would be to treat | 
				
			|||
# these files as binary and thus will always conflict and require user | 
				
			|||
# intervention with every merge. To do so, just uncomment the entries below | 
				
			|||
############################################################################### | 
				
			|||
#*.sln       merge=binary | 
				
			|||
#*.csproj    merge=binary | 
				
			|||
#*.vbproj    merge=binary | 
				
			|||
#*.vcxproj   merge=binary | 
				
			|||
#*.vcproj    merge=binary | 
				
			|||
#*.dbproj    merge=binary | 
				
			|||
#*.fsproj    merge=binary | 
				
			|||
#*.lsproj    merge=binary | 
				
			|||
#*.wixproj   merge=binary | 
				
			|||
#*.modelproj merge=binary | 
				
			|||
#*.sqlproj   merge=binary | 
				
			|||
#*.wwaproj   merge=binary | 
				
			|||
 | 
				
			|||
############################################################################### | 
				
			|||
# behavior for image files | 
				
			|||
# | 
				
			|||
# image files are treated as binary by default. | 
				
			|||
############################################################################### | 
				
			|||
#*.jpg   binary | 
				
			|||
#*.png   binary | 
				
			|||
#*.gif   binary | 
				
			|||
 | 
				
			|||
############################################################################### | 
				
			|||
# diff behavior for common document formats | 
				
			|||
#  | 
				
			|||
# Convert binary document formats to text before diffing them. This feature | 
				
			|||
# is only available from the command line. Turn it on by uncommenting the  | 
				
			|||
# entries below. | 
				
			|||
############################################################################### | 
				
			|||
#*.doc   diff=astextplain | 
				
			|||
#*.DOC   diff=astextplain | 
				
			|||
#*.docx  diff=astextplain | 
				
			|||
#*.DOCX  diff=astextplain | 
				
			|||
#*.dot   diff=astextplain | 
				
			|||
#*.DOT   diff=astextplain | 
				
			|||
#*.pdf   diff=astextplain | 
				
			|||
#*.PDF   diff=astextplain | 
				
			|||
#*.rtf   diff=astextplain | 
				
			|||
#*.RTF   diff=astextplain | 
				
			|||
@ -1,31 +0,0 @@ | 
				
			|||
 | 
				
			|||
Microsoft Visual Studio Solution File, Format Version 12.00 | 
				
			|||
# Visual Studio Version 17 | 
				
			|||
VisualStudioVersion = 17.5.33530.505 | 
				
			|||
MinimumVisualStudioVersion = 10.0.40219.1 | 
				
			|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientManager", "ClientManager\ClientManager.csproj", "{AD0879FE-FBA8-4CD1-B95A-93E0277FD40F}" | 
				
			|||
EndProject | 
				
			|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerManager", "ServerManager\ServerManager.csproj", "{7A6AAC33-5ED1-4CAD-AA67-E107245354B3}" | 
				
			|||
EndProject | 
				
			|||
Global | 
				
			|||
	GlobalSection(SolutionConfigurationPlatforms) = preSolution | 
				
			|||
		Debug|Any CPU = Debug|Any CPU | 
				
			|||
		Release|Any CPU = Release|Any CPU | 
				
			|||
	EndGlobalSection | 
				
			|||
	GlobalSection(ProjectConfigurationPlatforms) = postSolution | 
				
			|||
		{AD0879FE-FBA8-4CD1-B95A-93E0277FD40F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 
				
			|||
		{AD0879FE-FBA8-4CD1-B95A-93E0277FD40F}.Debug|Any CPU.Build.0 = Debug|Any CPU | 
				
			|||
		{AD0879FE-FBA8-4CD1-B95A-93E0277FD40F}.Release|Any CPU.ActiveCfg = Release|Any CPU | 
				
			|||
		{AD0879FE-FBA8-4CD1-B95A-93E0277FD40F}.Release|Any CPU.Build.0 = Release|Any CPU | 
				
			|||
		{7A6AAC33-5ED1-4CAD-AA67-E107245354B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 
				
			|||
		{7A6AAC33-5ED1-4CAD-AA67-E107245354B3}.Debug|Any CPU.Build.0 = Debug|Any CPU | 
				
			|||
		{7A6AAC33-5ED1-4CAD-AA67-E107245354B3}.Release|Any CPU.ActiveCfg = Release|Any CPU | 
				
			|||
		{7A6AAC33-5ED1-4CAD-AA67-E107245354B3}.Release|Any CPU.Build.0 = Release|Any CPU | 
				
			|||
	EndGlobalSection | 
				
			|||
	GlobalSection(SolutionProperties) = preSolution | 
				
			|||
		HideSolutionNode = FALSE | 
				
			|||
	EndGlobalSection | 
				
			|||
	GlobalSection(ExtensibilityGlobals) = postSolution | 
				
			|||
		SolutionGuid = {B70A1395-0B43-467D-83F6-552CD8A92A8B} | 
				
			|||
	EndGlobalSection | 
				
			|||
EndGlobal | 
				
			|||
@ -0,0 +1,31 @@ | 
				
			|||
 | 
				
			|||
Microsoft Visual Studio Solution File, Format Version 12.00 | 
				
			|||
# Visual Studio Version 17 | 
				
			|||
VisualStudioVersion = 17.5.33530.505 | 
				
			|||
MinimumVisualStudioVersion = 10.0.40219.1 | 
				
			|||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerManager", "ServerManager\ServerManager.csproj", "{48786C44-14A8-4510-9DC2-167C431DDE95}" | 
				
			|||
EndProject | 
				
			|||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Biskilog_ServerManager.Shared", "Shared\Biskilog_ServerManager.Shared.csproj", "{8D3C9816-1976-4CEC-A958-6A6532B8AC14}" | 
				
			|||
EndProject | 
				
			|||
Global | 
				
			|||
	GlobalSection(SolutionConfigurationPlatforms) = preSolution | 
				
			|||
		Debug|Any CPU = Debug|Any CPU | 
				
			|||
		Release|Any CPU = Release|Any CPU | 
				
			|||
	EndGlobalSection | 
				
			|||
	GlobalSection(ProjectConfigurationPlatforms) = postSolution | 
				
			|||
		{48786C44-14A8-4510-9DC2-167C431DDE95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 
				
			|||
		{48786C44-14A8-4510-9DC2-167C431DDE95}.Debug|Any CPU.Build.0 = Debug|Any CPU | 
				
			|||
		{48786C44-14A8-4510-9DC2-167C431DDE95}.Release|Any CPU.ActiveCfg = Release|Any CPU | 
				
			|||
		{48786C44-14A8-4510-9DC2-167C431DDE95}.Release|Any CPU.Build.0 = Release|Any CPU | 
				
			|||
		{8D3C9816-1976-4CEC-A958-6A6532B8AC14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 
				
			|||
		{8D3C9816-1976-4CEC-A958-6A6532B8AC14}.Debug|Any CPU.Build.0 = Debug|Any CPU | 
				
			|||
		{8D3C9816-1976-4CEC-A958-6A6532B8AC14}.Release|Any CPU.ActiveCfg = Release|Any CPU | 
				
			|||
		{8D3C9816-1976-4CEC-A958-6A6532B8AC14}.Release|Any CPU.Build.0 = Release|Any CPU | 
				
			|||
	EndGlobalSection | 
				
			|||
	GlobalSection(SolutionProperties) = preSolution | 
				
			|||
		HideSolutionNode = FALSE | 
				
			|||
	EndGlobalSection | 
				
			|||
	GlobalSection(ExtensibilityGlobals) = postSolution | 
				
			|||
		SolutionGuid = {B70A1395-0B43-467D-83F6-552CD8A92A8B} | 
				
			|||
	EndGlobalSection | 
				
			|||
EndGlobal | 
				
			|||
@ -1,13 +0,0 @@ | 
				
			|||
<Project Sdk="Microsoft.NET.Sdk.Worker"> | 
				
			|||
 | 
				
			|||
  <PropertyGroup> | 
				
			|||
    <TargetFramework>net7.0</TargetFramework> | 
				
			|||
    <Nullable>enable</Nullable> | 
				
			|||
    <ImplicitUsings>enable</ImplicitUsings> | 
				
			|||
    <UserSecretsId>dotnet-ClientManager-173f3572-8fd4-498f-addd-d620cda23800</UserSecretsId> | 
				
			|||
  </PropertyGroup> | 
				
			|||
 | 
				
			|||
  <ItemGroup> | 
				
			|||
    <PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" /> | 
				
			|||
  </ItemGroup> | 
				
			|||
</Project> | 
				
			|||
@ -1,10 +0,0 @@ | 
				
			|||
using ClientManager; | 
				
			|||
 | 
				
			|||
IHost host = Host.CreateDefaultBuilder(args) | 
				
			|||
    .ConfigureServices(services => | 
				
			|||
    { | 
				
			|||
        services.AddHostedService<Worker>(); | 
				
			|||
    }) | 
				
			|||
    .Build(); | 
				
			|||
 | 
				
			|||
host.Run(); | 
				
			|||
@ -1,11 +0,0 @@ | 
				
			|||
{ | 
				
			|||
  "profiles": { | 
				
			|||
    "ClientManager": { | 
				
			|||
      "commandName": "Project", | 
				
			|||
      "dotnetRunMessages": true, | 
				
			|||
      "environmentVariables": { | 
				
			|||
        "DOTNET_ENVIRONMENT": "Development" | 
				
			|||
      } | 
				
			|||
    } | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
@ -1,21 +0,0 @@ | 
				
			|||
namespace ClientManager | 
				
			|||
{ | 
				
			|||
    public class Worker : BackgroundService | 
				
			|||
    { | 
				
			|||
        private readonly ILogger<Worker> _logger; | 
				
			|||
 | 
				
			|||
        public Worker(ILogger<Worker> logger) | 
				
			|||
        { | 
				
			|||
            _logger = logger; | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        protected override async Task ExecuteAsync(CancellationToken stoppingToken) | 
				
			|||
        { | 
				
			|||
            while (!stoppingToken.IsCancellationRequested) | 
				
			|||
            { | 
				
			|||
                _logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now); | 
				
			|||
                await Task.Delay(1000, stoppingToken); | 
				
			|||
            } | 
				
			|||
        } | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -1,8 +0,0 @@ | 
				
			|||
{ | 
				
			|||
  "Logging": { | 
				
			|||
    "LogLevel": { | 
				
			|||
      "Default": "Information", | 
				
			|||
      "Microsoft.Hosting.Lifetime": "Information" | 
				
			|||
    } | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
@ -1,8 +0,0 @@ | 
				
			|||
{ | 
				
			|||
  "Logging": { | 
				
			|||
    "LogLevel": { | 
				
			|||
      "Default": "Information", | 
				
			|||
      "Microsoft.Hosting.Lifetime": "Information" | 
				
			|||
    } | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
@ -1 +1,3 @@ | 
				
			|||
# Biskilog_Cloud | 
				
			|||
# Biskilog_Cloud | 
				
			|||
 | 
				
			|||
Biskilog Cloud | 
				
			|||
@ -1,10 +0,0 @@ | 
				
			|||
using ServerManager; | 
				
			|||
 | 
				
			|||
IHost host = Host.CreateDefaultBuilder(args) | 
				
			|||
    .ConfigureServices(services => | 
				
			|||
    { | 
				
			|||
        services.AddHostedService<Worker>(); | 
				
			|||
    }) | 
				
			|||
    .Build(); | 
				
			|||
 | 
				
			|||
host.Run(); | 
				
			|||
@ -1,11 +0,0 @@ | 
				
			|||
{ | 
				
			|||
  "profiles": { | 
				
			|||
    "ServerManager": { | 
				
			|||
      "commandName": "Project", | 
				
			|||
      "dotnetRunMessages": true, | 
				
			|||
      "environmentVariables": { | 
				
			|||
        "DOTNET_ENVIRONMENT": "Development" | 
				
			|||
      } | 
				
			|||
    } | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
@ -1,13 +1,34 @@ | 
				
			|||
<Project Sdk="Microsoft.NET.Sdk.Worker"> | 
				
			|||
<Project Sdk="Microsoft.NET.Sdk.Web"> | 
				
			|||
 | 
				
			|||
  <PropertyGroup> | 
				
			|||
    <TargetFramework>net7.0</TargetFramework> | 
				
			|||
    <Nullable>enable</Nullable> | 
				
			|||
    <ImplicitUsings>enable</ImplicitUsings> | 
				
			|||
    <UserSecretsId>dotnet-ServerManager-52a85e73-fd4f-461a-8b7b-99494934c716</UserSecretsId> | 
				
			|||
  </PropertyGroup> | 
				
			|||
	<PropertyGroup> | 
				
			|||
		<TargetFramework>net7.0</TargetFramework> | 
				
			|||
		<Nullable>enable</Nullable> | 
				
			|||
		<ImplicitUsings>enable</ImplicitUsings> | 
				
			|||
	</PropertyGroup> | 
				
			|||
 | 
				
			|||
  <ItemGroup> | 
				
			|||
    <PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" /> | 
				
			|||
  </ItemGroup> | 
				
			|||
	<ItemGroup> | 
				
			|||
		<PackageReference Include="Dapper" Version="2.0.151" /> | 
				
			|||
		<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.5" /> | 
				
			|||
		<PackageReference Include="BCrypt.Net" Version="0.1.0" /> | 
				
			|||
		<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.5" /> | 
				
			|||
		<PackageReference Include="AutoMapper" Version="12.0.1" /> | 
				
			|||
		<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" /> | 
				
			|||
		<PackageReference Include="CsvHelper" Version="30.0.1" /> | 
				
			|||
		<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.5"> | 
				
			|||
			<PrivateAssets>all</PrivateAssets> | 
				
			|||
			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | 
				
			|||
		</PackageReference> | 
				
			|||
		<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.5" /> | 
				
			|||
		<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.5"> | 
				
			|||
			<PrivateAssets>all</PrivateAssets> | 
				
			|||
			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | 
				
			|||
		</PackageReference> | 
				
			|||
		<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.6" /> | 
				
			|||
		<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" /> | 
				
			|||
		<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" /> | 
				
			|||
		<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="3.1.3" /> | 
				
			|||
	</ItemGroup> | 
				
			|||
	<ItemGroup> | 
				
			|||
		<ProjectReference Include="..\Shared\Biskilog_ServerManager.Shared.csproj" /> | 
				
			|||
	</ItemGroup> | 
				
			|||
</Project> | 
				
			|||
 | 
				
			|||
@ -1,21 +0,0 @@ | 
				
			|||
namespace ServerManager | 
				
			|||
{ | 
				
			|||
    public class Worker : BackgroundService | 
				
			|||
    { | 
				
			|||
        private readonly ILogger<Worker> _logger; | 
				
			|||
 | 
				
			|||
        public Worker(ILogger<Worker> logger) | 
				
			|||
        { | 
				
			|||
            _logger = logger; | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        protected override async Task ExecuteAsync(CancellationToken stoppingToken) | 
				
			|||
        { | 
				
			|||
            while (!stoppingToken.IsCancellationRequested) | 
				
			|||
            { | 
				
			|||
                _logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now); | 
				
			|||
                await Task.Delay(1000, stoppingToken); | 
				
			|||
            } | 
				
			|||
        } | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -1,8 +0,0 @@ | 
				
			|||
{ | 
				
			|||
  "Logging": { | 
				
			|||
    "LogLevel": { | 
				
			|||
      "Default": "Information", | 
				
			|||
      "Microsoft.Hosting.Lifetime": "Information" | 
				
			|||
    } | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
@ -1,8 +0,0 @@ | 
				
			|||
{ | 
				
			|||
  "Logging": { | 
				
			|||
    "LogLevel": { | 
				
			|||
      "Default": "Information", | 
				
			|||
      "Microsoft.Hosting.Lifetime": "Information" | 
				
			|||
    } | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
@ -0,0 +1,22 @@ | 
				
			|||
<Project Sdk="Microsoft.NET.Sdk"> | 
				
			|||
 | 
				
			|||
  <PropertyGroup> | 
				
			|||
    <TargetFramework>net7.0</TargetFramework> | 
				
			|||
    <Nullable>enable</Nullable> | 
				
			|||
    <ImplicitUsings>enable</ImplicitUsings> | 
				
			|||
  </PropertyGroup> | 
				
			|||
 | 
				
			|||
  <ItemGroup> | 
				
			|||
    <PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" /> | 
				
			|||
    <PackageReference Include="Blazored.LocalStorage" Version="4.3.0" /> | 
				
			|||
    <PackageReference Include="Blazored.SessionStorage" Version="2.3.0" /> | 
				
			|||
    <PackageReference Include="EntityFramework" Version="6.4.4" /> | 
				
			|||
    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5" /> | 
				
			|||
    <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" /> | 
				
			|||
    <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.30.1" /> | 
				
			|||
  </ItemGroup> | 
				
			|||
 | 
				
			|||
  <ItemGroup> | 
				
			|||
    <SupportedPlatform Include="browser" /> | 
				
			|||
  </ItemGroup> | 
				
			|||
</Project> | 
				
			|||
					Loading…
					
					
				
		Reference in new issue