Inicializacion SRV01
This commit is contained in:
commit
43844a2d22
25
.dockerignore
Normal file
25
.dockerignore
Normal file
@ -0,0 +1,25 @@
|
||||
**/.classpath
|
||||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.project
|
||||
**/.settings
|
||||
**/.toolstarget
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/*.*proj.user
|
||||
**/*.dbmdl
|
||||
**/*.jfm
|
||||
**/azds.yaml
|
||||
**/bin
|
||||
**/charts
|
||||
**/docker-compose*
|
||||
**/Dockerfile*
|
||||
**/node_modules
|
||||
**/npm-debug.log
|
||||
**/obj
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
LICENSE
|
||||
README.md
|
||||
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
# Este archivo .gitignore ha sido creado automáticamente por Microsoft(R) Visual Studio.
|
||||
################################################################################
|
||||
|
||||
/.vs/phronCare
|
||||
/Transversal/obj/Debug/net8.0/Transversal.AssemblyInfo.cs
|
||||
/Transversal/obj/Debug/net8.0/Transversal.AssemblyInfoInputs.cache
|
||||
/Transversal/obj/Debug/net8.0/Transversal.assets.cache
|
||||
/Transversal/obj/Debug/net8.0/Transversal.GeneratedMSBuildEditorConfig.editorconfig
|
||||
/Transversal/obj/project.assets.json
|
||||
/Transversal/obj/project.nuget.cache
|
||||
/Transversal/obj/Transversal.csproj.nuget.dgspec.json
|
||||
/Core/obj/Core.csproj.nuget.dgspec.json
|
||||
/Core/obj/Debug/net8.0/Core.AssemblyInfo.cs
|
||||
/Core/obj/Debug/net8.0/Core.AssemblyInfoInputs.cache
|
||||
/Core/obj/Debug/net8.0/Core.assets.cache
|
||||
/Core/obj/Debug/net8.0/Core.csproj.AssemblyReference.cache
|
||||
/Core/obj/Debug/net8.0/Core.GeneratedMSBuildEditorConfig.editorconfig
|
||||
/Core/obj/project.assets.json
|
||||
/Core/obj/project.nuget.cache
|
||||
15
Core/Core.csproj
Normal file
15
Core/Core.csproj
Normal file
@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Domain\Domain.csproj" />
|
||||
<ProjectReference Include="..\Models\Models.csproj" />
|
||||
<ProjectReference Include="..\Transversal\Transversal.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
4
Core/Core.csproj.user
Normal file
4
Core/Core.csproj.user
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
||||
29
Core/Interfaces/ITicketDom.cs
Normal file
29
Core/Interfaces/ITicketDom.cs
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
using Domain.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Core.Interfaces
|
||||
{
|
||||
public interface ITicketDom
|
||||
{
|
||||
//byte[] ExcelTicketDashboard(string Estado, string Orden);
|
||||
//IEnumerable<ETicket> GetAll();
|
||||
//ETicket GetById(Guid ticketId);
|
||||
//IEnumerable<ETickets_GetSummary> GetSummary();
|
||||
//IEnumerable<ETicket_Dashboard> GetTicketDashboard(string Estado, string Orden);
|
||||
|
||||
//void InsertTicket(ETicket ticket);
|
||||
|
||||
Task<IEnumerable<ETicket>> GetAllAsync();
|
||||
Task<ETicket> GetByIdAsync(Guid ticketId); // Cambiado a asincrónico
|
||||
Task<IEnumerable<ETickets_GetSummary>> GetSummaryAsync(); // Cambiado a asincrónico
|
||||
Task<IEnumerable<ETicket_Dashboard>> GetTicketDashboardAsync(string estado, string orden); // Cambiado a asincrónico
|
||||
Task InsertTicketAsync(ETicket ticket); // Cambiado a asincrónico
|
||||
|
||||
Task<byte[]> ExcelTicketDashboardAsync(string estado, string orden);
|
||||
}
|
||||
}
|
||||
105
Core/Services/TicketService.cs
Normal file
105
Core/Services/TicketService.cs
Normal file
@ -0,0 +1,105 @@
|
||||
using System.Reflection;
|
||||
using Core.Interfaces;
|
||||
using Transversal.Services;
|
||||
using Domain.Entities;
|
||||
using Models.Interfaces;
|
||||
|
||||
namespace Core.Services
|
||||
{
|
||||
public class TicketService : ITicketDom
|
||||
{
|
||||
//#region Declaraciones y Constructor
|
||||
//private readonly ITicketRepository contract;
|
||||
//public TicketService() => contract = new TicketRepository();
|
||||
//#endregion
|
||||
#region Declaraciones y Constructor
|
||||
private readonly ITicketRepository _contract;
|
||||
public TicketService(ITicketRepository contract)
|
||||
{
|
||||
_contract = contract ?? throw new ArgumentNullException(nameof(contract));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Metodos de clase
|
||||
public async Task<IEnumerable<ETicket>> GetAllAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
return await _contract.GetAllAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var methodName = MethodBase.GetCurrentMethod()?.Name ?? "UnknownMethod";
|
||||
var message = ex.Message ?? "No message provided";
|
||||
throw new Exception($"{methodName} Message: {message}", ex);
|
||||
}
|
||||
}
|
||||
public async Task<ETicket> GetByIdAsync(Guid ticketId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var ticket = await _contract.GetByIdAsync(ticketId);
|
||||
return ticket;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var methodName = MethodBase.GetCurrentMethod()?.Name ?? "UnknownMethod";
|
||||
var message = ex.Message ?? "No message provided";
|
||||
throw new Exception($"{methodName} Message: {message}", ex);
|
||||
}
|
||||
}
|
||||
public async Task<IEnumerable<ETickets_GetSummary>> GetSummaryAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
return await _contract.GetSummaryAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var methodName = MethodBase.GetCurrentMethod()?.Name ?? "UnknownMethod";
|
||||
var message = ex.Message ?? "No message provided";
|
||||
throw new Exception($"{methodName} Message: {message}", ex);
|
||||
}
|
||||
}
|
||||
public async Task<IEnumerable<ETicket_Dashboard>> GetTicketDashboardAsync(string estado, string orden)
|
||||
{
|
||||
try
|
||||
{
|
||||
return await _contract.GetTicketDashboardAsync(estado, orden);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var methodName = MethodBase.GetCurrentMethod()?.Name ?? "UnknownMethod";
|
||||
var message = ex.Message ?? "No message provided";
|
||||
throw new Exception($"{methodName} Message: {message}", ex);
|
||||
}
|
||||
}
|
||||
public async Task InsertTicketAsync(ETicket eTicket)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _contract.InsertTicketAsync(eTicket);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message);
|
||||
}
|
||||
}
|
||||
public async Task<byte[]> ExcelTicketDashboardAsync(string estado, string orden)
|
||||
{
|
||||
try
|
||||
{
|
||||
var stream = new XLSXExportBase();
|
||||
var dashboardData = await _contract.GetTicketDashboardAsync(estado, orden);
|
||||
return stream.ExportExcel(dashboardData.ToList());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var methodName = MethodBase.GetCurrentMethod()?.Name ?? "UnknownMethod";
|
||||
var message = ex.Message ?? "No message provided";
|
||||
throw new Exception($"{methodName} Message: {message}", ex);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
1204
Core/bin/Debug/net8.0/Core.deps.json
Normal file
1204
Core/bin/Debug/net8.0/Core.deps.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Core/bin/Debug/net8.0/Core.dll
Normal file
BIN
Core/bin/Debug/net8.0/Core.dll
Normal file
Binary file not shown.
BIN
Core/bin/Debug/net8.0/Core.pdb
Normal file
BIN
Core/bin/Debug/net8.0/Core.pdb
Normal file
Binary file not shown.
BIN
Core/bin/Debug/net8.0/Domain.dll
Normal file
BIN
Core/bin/Debug/net8.0/Domain.dll
Normal file
Binary file not shown.
BIN
Core/bin/Debug/net8.0/Domain.pdb
Normal file
BIN
Core/bin/Debug/net8.0/Domain.pdb
Normal file
Binary file not shown.
BIN
Core/bin/Debug/net8.0/Models.dll
Normal file
BIN
Core/bin/Debug/net8.0/Models.dll
Normal file
Binary file not shown.
BIN
Core/bin/Debug/net8.0/Models.pdb
Normal file
BIN
Core/bin/Debug/net8.0/Models.pdb
Normal file
Binary file not shown.
BIN
Core/bin/Debug/net8.0/Transversal.dll
Normal file
BIN
Core/bin/Debug/net8.0/Transversal.dll
Normal file
Binary file not shown.
BIN
Core/bin/Debug/net8.0/Transversal.pdb
Normal file
BIN
Core/bin/Debug/net8.0/Transversal.pdb
Normal file
Binary file not shown.
18
Core/obj/Core.csproj.nuget.g.props
Normal file
18
Core/obj/Core.csproj.nuget.g.props
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\maski\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\maski\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore\8.0.10\buildTransitive\net8.0\Microsoft.EntityFrameworkCore.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore\8.0.10\buildTransitive\net8.0\Microsoft.EntityFrameworkCore.props')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
7
Core/obj/Core.csproj.nuget.g.targets
Normal file
7
Core/obj/Core.csproj.nuget.g.targets
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Options.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
8
Core/obj/Debug/net8.0/Core.GlobalUsings.g.cs
Normal file
8
Core/obj/Debug/net8.0/Core.GlobalUsings.g.cs
Normal file
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
@ -0,0 +1 @@
|
||||
9b8243de49dde9493c6d424d75e7b5d89dffc3913e07f8f58d541a8cd219cfdb
|
||||
20
Core/obj/Debug/net8.0/Core.csproj.FileListAbsolute.txt
Normal file
20
Core/obj/Debug/net8.0/Core.csproj.FileListAbsolute.txt
Normal file
@ -0,0 +1,20 @@
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Core.deps.json
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Core.dll
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Core.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Domain.dll
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Models.dll
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Transversal.dll
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Domain.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Models.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Core\bin\Debug\net8.0\Transversal.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.csproj.AssemblyReference.cache
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.AssemblyInfoInputs.cache
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.AssemblyInfo.cs
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.csproj.CoreCompileInputs.cache
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.sourcelink.json
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.csproj.Up2Date
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.dll
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\refint\Core.dll
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\Core.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Core\obj\Debug\net8.0\ref\Core.dll
|
||||
0
Core/obj/Debug/net8.0/Core.csproj.Up2Date
Normal file
0
Core/obj/Debug/net8.0/Core.csproj.Up2Date
Normal file
BIN
Core/obj/Debug/net8.0/Core.dll
Normal file
BIN
Core/obj/Debug/net8.0/Core.dll
Normal file
Binary file not shown.
BIN
Core/obj/Debug/net8.0/Core.pdb
Normal file
BIN
Core/obj/Debug/net8.0/Core.pdb
Normal file
Binary file not shown.
1
Core/obj/Debug/net8.0/Core.sourcelink.json
Normal file
1
Core/obj/Debug/net8.0/Core.sourcelink.json
Normal file
@ -0,0 +1 @@
|
||||
{"documents":{"C:\\Users\\maski\\source\\repos\\phronCare\\*":"https://gitlab.com/maskinc00/phronCare/-/raw/fe92df3d23e2450596799ae31e6446af3500a138/*"}}
|
||||
BIN
Core/obj/Debug/net8.0/ref/Core.dll
Normal file
BIN
Core/obj/Debug/net8.0/ref/Core.dll
Normal file
Binary file not shown.
BIN
Core/obj/Debug/net8.0/refint/Core.dll
Normal file
BIN
Core/obj/Debug/net8.0/refint/Core.dll
Normal file
Binary file not shown.
23
Data/Data.csproj
Normal file
23
Data/Data.csproj
Normal file
@ -0,0 +1,23 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.10" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.10">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Domain\Domain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
30
Data/Entities/PhOH_Tickets.cs
Normal file
30
Data/Entities/PhOH_Tickets.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Data.Entities
|
||||
{
|
||||
public partial class PhOH_Tickets
|
||||
{
|
||||
[Key]
|
||||
public System.Guid TicketId { get; set; }
|
||||
public string Titulo { get; set; } = string.Empty;
|
||||
public string Descripcion { get; set; } = string.Empty;
|
||||
public string Prioridad { get; set; } = string.Empty;
|
||||
public string Estado { get; set; } = string.Empty;
|
||||
public string CreadorUsuarioId { get; set; } = string.Empty;
|
||||
public Nullable<System.DateTime> FechaCreacion { get; set; }
|
||||
public string AsignadoAUsuarioId { get; set; } = string.Empty;
|
||||
public Nullable<System.DateTime> FechaEjecucion { get; set; }
|
||||
public string Categoria { get; set; } = string.Empty;
|
||||
public string Comentarios { get; set; } = string.Empty;
|
||||
public string Departamento { get; set; } = string.Empty;
|
||||
public string Impacto { get; set; } = string.Empty;
|
||||
public string Urgencia { get; set; } = string.Empty;
|
||||
public Nullable<bool> EsSolicitudCliente { get; set; }
|
||||
public string AdjuntoArchivo { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
17
Data/Entities/Tickets_Dashboard_Result.cs
Normal file
17
Data/Entities/Tickets_Dashboard_Result.cs
Normal file
@ -0,0 +1,17 @@
|
||||
namespace Data.Entities
|
||||
{
|
||||
public partial class Tickets_Dashboard_Result
|
||||
{
|
||||
public System.Guid TicketId { get; set; }
|
||||
public string Titulo { get; set; }=string.Empty;
|
||||
public string Prioridad { get; set; } = string.Empty;
|
||||
public string Estado { get; set; } = string.Empty;
|
||||
public string CreadorUsuarioId { get; set; } = string.Empty;
|
||||
public Nullable<System.DateTime> FechaCreacion { get; set; }
|
||||
public string AsignadoAUsuarioId { get; set; } = string.Empty;
|
||||
public string Categoria { get; set; } =string.Empty;
|
||||
public string Departamento { get; set; } = string.Empty;
|
||||
public string Impacto { get; set; } = string.Empty;
|
||||
public string Urgencia { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
8
Data/Entities/Tickets_GetSummary_Result.cs
Normal file
8
Data/Entities/Tickets_GetSummary_Result.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace Data.Entities
|
||||
{
|
||||
public partial class Tickets_GetSummary_Result
|
||||
{
|
||||
public string Estado { get; set; } = string.Empty;
|
||||
public Nullable<int> Cantidad { get; set; }
|
||||
}
|
||||
}
|
||||
13
Data/Interfaces/ITicketRepository.cs
Normal file
13
Data/Interfaces/ITicketRepository.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Data.Interfaces
|
||||
{
|
||||
public interface ITicketRepository
|
||||
{
|
||||
IEnumerable<ETicket> GetAll();
|
||||
ETicket GetById(Guid ticketId);
|
||||
IEnumerable<ETickets_GetSummary> GetSummary();
|
||||
IEnumerable<ETicket_Dashboard> GetTicketDashboard(string Estado, string Orden);
|
||||
void InsertTicket(ETicket ticket);
|
||||
}
|
||||
}
|
||||
87
Data/Models/OperationsHubContext.cs
Normal file
87
Data/Models/OperationsHubContext.cs
Normal file
@ -0,0 +1,87 @@
|
||||
using Data.Entities;
|
||||
using System.Configuration;
|
||||
using Microsoft.Data.SqlClient;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.IdentityModel.Protocols;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace Data.Models
|
||||
{
|
||||
public class OperationsHubContext : DbContext
|
||||
{
|
||||
// Constructor que permite la inyección de dependencias
|
||||
public OperationsHubContext(DbContextOptions<OperationsHubContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
if (!optionsBuilder.IsConfigured)
|
||||
{
|
||||
// Leer la cadena de conexión desde app.config
|
||||
var connectionString = ConfigurationManager.ConnectionStrings["OperationsHub"]?.ConnectionString;
|
||||
if (connectionString == null)
|
||||
{
|
||||
throw new InvalidOperationException("No se encontró la cadena de conexión 'OperationsHub'.");
|
||||
}
|
||||
optionsBuilder.UseSqlServer(connectionString);
|
||||
// Prueba de conexión: Intento de apertura de conexión
|
||||
using (var connection = new SqlConnection(connectionString))
|
||||
{
|
||||
connection.Open(); // Lanza excepción si falla
|
||||
System.Diagnostics.Debug.WriteLine("Conexión a la base de datos exitosa.");
|
||||
connection.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
public bool TestConnection(string connectionString)
|
||||
{
|
||||
using (var connection = new SqlConnection(connectionString))
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
return true; // Conexión exitosa
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Manejar la excepción, tal vez loguearla
|
||||
Console.WriteLine($"Error al conectar: {ex.Message}");
|
||||
return false; // Conexión fallida
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public DbSet<PhOH_Tickets> Tickets { get; set; }
|
||||
public DbSet<Tickets_Dashboard_Result> TicketsDashboardResults { get; set; }
|
||||
public DbSet<Tickets_GetSummary_Result> TicketsSummaryResults { get; set; }
|
||||
|
||||
public async Task<List<Tickets_Dashboard_Result>> Tickets_DashboardAsync(string estadoParam, string ordenParam)
|
||||
{
|
||||
var estadoParamSql = new SqlParameter("@EstadoParam", estadoParam ?? (object)DBNull.Value);
|
||||
var ordenParamSql = new SqlParameter("@OrdenParam", ordenParam ?? (object)DBNull.Value);
|
||||
|
||||
// Consulta usando FromSqlRaw sobre el DbSet correspondiente
|
||||
return await TicketsDashboardResults
|
||||
.FromSqlRaw("EXEC Tickets_Dashboard @EstadoParam, @OrdenParam", estadoParamSql, ordenParamSql)
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<List<Tickets_GetSummary_Result>> Tickets_GetSummaryAsync()
|
||||
{
|
||||
// Consulta usando FromSqlRaw sobre el DbSet correspondiente
|
||||
return await TicketsSummaryResults
|
||||
.FromSqlRaw("EXEC Tickets_GetSummary")
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<PhOH_Tickets>().ToTable("PhOH_Tickets");
|
||||
|
||||
// Marcar los DbSet de resultados como entidades de solo lectura
|
||||
modelBuilder.Entity<Tickets_Dashboard_Result>().HasNoKey();
|
||||
modelBuilder.Entity<Tickets_GetSummary_Result>().HasNoKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
131
Data/Repositories/TicketRepository.cs
Normal file
131
Data/Repositories/TicketRepository.cs
Normal file
@ -0,0 +1,131 @@
|
||||
using Data.Interfaces;
|
||||
using Domain.Entities;
|
||||
using Data.Entities;
|
||||
using Data.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Data.Repositories
|
||||
{
|
||||
public class TicketRepository : ITicketRepository
|
||||
{
|
||||
#region Declaraciones y Constructor
|
||||
private readonly OperationsHubContext _dbConnection;
|
||||
public TicketRepository(OperationsHubContext dbConnection)
|
||||
{
|
||||
_dbConnection = dbConnection;
|
||||
}
|
||||
#endregion
|
||||
#region Metodos de clase
|
||||
public async Task<ETicket> GetByIdAsync(Guid ticketId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var ticket = await _dbConnection.Tickets
|
||||
.FirstOrDefaultAsync(t => t.TicketId == ticketId);
|
||||
|
||||
if (ticket == null) return new ETicket();
|
||||
|
||||
var eTicket = MapEntity<PhOH_Tickets, ETicket>(ticket);
|
||||
return eTicket;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception($"{MethodBase.GetCurrentMethod()?.Name} Message: {ex.Message}", ex);
|
||||
}
|
||||
}
|
||||
public async Task<IEnumerable<ETicket>> GetAllAsync()
|
||||
{
|
||||
var tickets = await _dbConnection.Tickets.ToListAsync();
|
||||
return tickets.Select(ticket => MapEntity<PhOH_Tickets, ETicket>(ticket));
|
||||
}
|
||||
|
||||
public async Task InsertTicketAsync(ETicket ticket)
|
||||
{
|
||||
try
|
||||
{
|
||||
ticket.TicketId = Guid.NewGuid();
|
||||
var dataTicket = MapEntity<ETicket, PhOH_Tickets>(ticket);
|
||||
|
||||
await _dbConnection.Tickets.AddAsync(dataTicket);
|
||||
await _dbConnection.SaveChangesAsync();
|
||||
}
|
||||
catch (DbUpdateException ex)
|
||||
{
|
||||
throw new Exception($"{MethodBase.GetCurrentMethod()?.Name} Message: {ex.InnerException?.Message}", ex);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception($"{MethodBase.GetCurrentMethod()?.Name} Message: {ex.Message}", ex);
|
||||
}
|
||||
}
|
||||
//public IEnumerable<ETickets_GetSummary> GetSummary()
|
||||
//{
|
||||
// var summary_Results = _dbConnection.Tickets_GetSummary();
|
||||
|
||||
// return summary_Results.Select(item =>
|
||||
// {
|
||||
// var eSummary = Activator.CreateInstance<ETickets_GetSummary>();
|
||||
// foreach (var propertyInfo in typeof(Tickets_GetSummary_Result).GetProperties())
|
||||
// {
|
||||
// var value = propertyInfo.GetValue(item);
|
||||
// typeof(ETickets_GetSummary).GetProperty(propertyInfo.Name)?.SetValue(eSummary, value);
|
||||
// }
|
||||
// return eSummary;
|
||||
// });
|
||||
//}
|
||||
//public IEnumerable<ETicket_Dashboard> GetTicketDashboard(string Estado, string Orden)
|
||||
//{
|
||||
// var ticketDashboard_Results = _dbConnection.Tickets_Dashboard(Estado, Orden);
|
||||
|
||||
// return (ticketDashboard_Results.Select(item =>
|
||||
// {
|
||||
// var eTicketDashboard = Activator.CreateInstance<ETicket_Dashboard>();
|
||||
// foreach (var propertyInfo in typeof(Tickets_Dashboard_Result).GetProperties())
|
||||
// {
|
||||
// var value = propertyInfo.GetValue(item);
|
||||
// typeof(ETicket_Dashboard).GetProperty(propertyInfo.Name)?.SetValue(eTicketDashboard, value);
|
||||
// }
|
||||
// return eTicketDashboard;
|
||||
// }));
|
||||
//}
|
||||
#endregion
|
||||
#region Métodos Auxiliares
|
||||
private TDestination MapEntity<TSource, TDestination>(TSource source) where TDestination : new()
|
||||
{
|
||||
var destination = new TDestination();
|
||||
foreach (var propertyInfo in typeof(TSource).GetProperties())
|
||||
{
|
||||
var value = propertyInfo.GetValue(source);
|
||||
typeof(TDestination).GetProperty(propertyInfo.Name)?.SetValue(destination, value);
|
||||
}
|
||||
return destination;
|
||||
}
|
||||
|
||||
public ETicket GetById(Guid ticketId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IEnumerable<ETicket> GetAll()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void InsertTicket(ETicket ticket)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IEnumerable<ETickets_GetSummary> GetSummary()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IEnumerable<ETicket_Dashboard> GetTicketDashboard(string Estado, string Orden)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
9
Domain/Domain.csproj
Normal file
9
Domain/Domain.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
11
Domain/Entities/Generics.cs
Normal file
11
Domain/Entities/Generics.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace Domain.Entities
|
||||
{
|
||||
public class GenericParameters<T1, T2, T3, T4, T5>
|
||||
{
|
||||
public T1? Param1 { get; set; }
|
||||
public T2? Param2 { get; set; }
|
||||
public T3? Param3 { get; set; }
|
||||
public T4? Param4 { get; set; }
|
||||
public T5? Param5 { get; set; }
|
||||
}
|
||||
}
|
||||
42
Domain/Entities/Tickets.cs
Normal file
42
Domain/Entities/Tickets.cs
Normal file
@ -0,0 +1,42 @@
|
||||
|
||||
namespace Domain.Entities
|
||||
{
|
||||
public class ETicket
|
||||
{
|
||||
public System.Guid TicketId { get; set; }
|
||||
public string Titulo { get; set; } = string.Empty;
|
||||
public string Descripcion { get; set; } = string.Empty;
|
||||
public string Prioridad { get; set; } = "Media";
|
||||
public string Estado { get; set; } = "Pendiente";
|
||||
public string CreadorUsuarioId { get; set; } = string.Empty;
|
||||
public Nullable<System.DateTime> FechaCreacion { get; set; }
|
||||
public string AsignadoAUsuarioId { get; set; } = string.Empty;
|
||||
public Nullable<System.DateTime> FechaEjecucion { get; set; }=DateTime.Now;
|
||||
public string Categoria { get; set; } = string.Empty;
|
||||
public string Comentarios { get; set; } = string.Empty;
|
||||
public string Departamento { get; set; } = string.Empty;
|
||||
public string Impacto { get; set; } = "Medio";
|
||||
public string Urgencia { get; set; } = "Baja";
|
||||
public bool EsSolicitudCliente { get; set; } = false;
|
||||
public string AdjuntoArchivo { get; set; } = string.Empty;
|
||||
}
|
||||
public class ETickets_GetSummary
|
||||
{
|
||||
public string Estado { get; set; } = string.Empty;
|
||||
public Nullable<int> Cantidad { get; set; }
|
||||
}
|
||||
public class ETicket_Dashboard
|
||||
{
|
||||
public System.Guid TicketId { get; set; }
|
||||
public string Titulo { get; set; } = string.Empty;
|
||||
public string Prioridad { get; set; } = string.Empty;
|
||||
public string Estado { get; set; } = string.Empty;
|
||||
public string CreadorUsuarioId { get; set; } = string.Empty;
|
||||
public Nullable<System.DateTime> FechaCreacion { get; set; }
|
||||
public string AsignadoAUsuarioId { get; set; } = string.Empty;
|
||||
public string Categoria { get; set; } = string.Empty;
|
||||
public string Departamento { get; set; } = string.Empty;
|
||||
public string Impacto { get; set; } = string.Empty;
|
||||
public string Urgencia { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
23
Domain/bin/Debug/net8.0/Domain.deps.json
Normal file
23
Domain/bin/Debug/net8.0/Domain.deps.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"Domain/1.0.0": {
|
||||
"runtime": {
|
||||
"Domain.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Domain/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Domain/bin/Debug/net8.0/Domain.dll
Normal file
BIN
Domain/bin/Debug/net8.0/Domain.dll
Normal file
Binary file not shown.
BIN
Domain/bin/Debug/net8.0/Domain.pdb
Normal file
BIN
Domain/bin/Debug/net8.0/Domain.pdb
Normal file
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
23
Domain/obj/Debug/net8.0/Domain.AssemblyInfo.cs
Normal file
23
Domain/obj/Debug/net8.0/Domain.AssemblyInfo.cs
Normal file
@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Este código fue generado por una herramienta.
|
||||
// Versión de runtime:4.0.30319.42000
|
||||
//
|
||||
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
||||
// se vuelve a generar el código.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Domain")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b27ba12703e25c5d10428d090fc368ff6d4813dd")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Domain")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Domain")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generado por la clase WriteCodeFragment de MSBuild.
|
||||
|
||||
1
Domain/obj/Debug/net8.0/Domain.AssemblyInfoInputs.cache
Normal file
1
Domain/obj/Debug/net8.0/Domain.AssemblyInfoInputs.cache
Normal file
@ -0,0 +1 @@
|
||||
6a16da77968b72f5818797c9c54df4864546bd9e4d40ceeeb87675a00cc787b0
|
||||
@ -0,0 +1,13 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Domain
|
||||
build_property.ProjectDir = C:\Users\maski\source\repos\SaludLAB\phronCare\Domain\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
8
Domain/obj/Debug/net8.0/Domain.GlobalUsings.g.cs
Normal file
8
Domain/obj/Debug/net8.0/Domain.GlobalUsings.g.cs
Normal file
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
BIN
Domain/obj/Debug/net8.0/Domain.assets.cache
Normal file
BIN
Domain/obj/Debug/net8.0/Domain.assets.cache
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
c8cf931abfa08e2e9df3704ea1fb8e67720f9a683b7abcf850d099caedf04503
|
||||
12
Domain/obj/Debug/net8.0/Domain.csproj.FileListAbsolute.txt
Normal file
12
Domain/obj/Debug/net8.0/Domain.csproj.FileListAbsolute.txt
Normal file
@ -0,0 +1,12 @@
|
||||
C:\Users\maski\source\repos\phronCare\Domain\bin\Debug\net8.0\Domain.deps.json
|
||||
C:\Users\maski\source\repos\phronCare\Domain\bin\Debug\net8.0\Domain.dll
|
||||
C:\Users\maski\source\repos\phronCare\Domain\bin\Debug\net8.0\Domain.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\Domain.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\Domain.AssemblyInfoInputs.cache
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\Domain.AssemblyInfo.cs
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\Domain.csproj.CoreCompileInputs.cache
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\Domain.sourcelink.json
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\Domain.dll
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\refint\Domain.dll
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\Domain.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Domain\obj\Debug\net8.0\ref\Domain.dll
|
||||
BIN
Domain/obj/Debug/net8.0/Domain.dll
Normal file
BIN
Domain/obj/Debug/net8.0/Domain.dll
Normal file
Binary file not shown.
BIN
Domain/obj/Debug/net8.0/Domain.pdb
Normal file
BIN
Domain/obj/Debug/net8.0/Domain.pdb
Normal file
Binary file not shown.
1
Domain/obj/Debug/net8.0/Domain.sourcelink.json
Normal file
1
Domain/obj/Debug/net8.0/Domain.sourcelink.json
Normal file
@ -0,0 +1 @@
|
||||
{"documents":{"C:\\Users\\maski\\source\\repos\\phronCare\\*":"https://gitlab.com/maskinc00/phronCare/-/raw/fe92df3d23e2450596799ae31e6446af3500a138/*"}}
|
||||
BIN
Domain/obj/Debug/net8.0/ref/Domain.dll
Normal file
BIN
Domain/obj/Debug/net8.0/ref/Domain.dll
Normal file
Binary file not shown.
BIN
Domain/obj/Debug/net8.0/refint/Domain.dll
Normal file
BIN
Domain/obj/Debug/net8.0/refint/Domain.dll
Normal file
Binary file not shown.
69
Domain/obj/Domain.csproj.nuget.dgspec.json
Normal file
69
Domain/obj/Domain.csproj.nuget.dgspec.json
Normal file
@ -0,0 +1,69 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj",
|
||||
"projectName": "Domain",
|
||||
"projectPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj",
|
||||
"packagesPath": "C:\\Users\\maski\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\maski\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"C:\\Program Files\\dotnet\\library-packs": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
Domain/obj/Domain.csproj.nuget.g.props
Normal file
15
Domain/obj/Domain.csproj.nuget.g.props
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\maski\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\maski\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
2
Domain/obj/Domain.csproj.nuget.g.targets
Normal file
2
Domain/obj/Domain.csproj.nuget.g.targets
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
74
Domain/obj/project.assets.json
Normal file
74
Domain/obj/project.assets.json
Normal file
@ -0,0 +1,74 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net8.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net8.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\maski\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj",
|
||||
"projectName": "Domain",
|
||||
"projectPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj",
|
||||
"packagesPath": "C:\\Users\\maski\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\maski\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"C:\\Program Files\\dotnet\\library-packs": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Models/Interfaces/ITicketRepository.cs
Normal file
13
Models/Interfaces/ITicketRepository.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Models.Interfaces
|
||||
{
|
||||
public interface ITicketRepository
|
||||
{
|
||||
Task<IEnumerable<ETicket>> GetAllAsync();
|
||||
Task<ETicket> GetByIdAsync(Guid ticketId); // Cambiado a asincrónico
|
||||
Task<IEnumerable<ETickets_GetSummary>> GetSummaryAsync(); // Cambiado a asincrónico
|
||||
Task<IEnumerable<ETicket_Dashboard>> GetTicketDashboardAsync(string estado, string orden); // Cambiado a asincrónico
|
||||
Task InsertTicketAsync(ETicket ticket); // Cambiado a asincrónico
|
||||
}
|
||||
}
|
||||
21
Models/Models.csproj
Normal file
21
Models/Models.csproj
Normal file
@ -0,0 +1,21 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.10" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Domain\Domain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
39
Models/Models/PhOhTicket.cs
Normal file
39
Models/Models/PhOhTicket.cs
Normal file
@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Models.Models;
|
||||
|
||||
public partial class PhOhTicket
|
||||
{
|
||||
public Guid TicketId { get; set; }
|
||||
|
||||
public string? Titulo { get; set; }
|
||||
|
||||
public string? Descripcion { get; set; }
|
||||
|
||||
public string? Prioridad { get; set; }
|
||||
|
||||
public string? Estado { get; set; }
|
||||
|
||||
public string? CreadorUsuarioId { get; set; }
|
||||
|
||||
public DateTime? FechaCreacion { get; set; }
|
||||
|
||||
public string? AsignadoAusuarioId { get; set; }
|
||||
|
||||
public DateTime? FechaEjecucion { get; set; }
|
||||
|
||||
public string? Categoria { get; set; }
|
||||
|
||||
public string? Comentarios { get; set; }
|
||||
|
||||
public string? Departamento { get; set; }
|
||||
|
||||
public string? Impacto { get; set; }
|
||||
|
||||
public string? Urgencia { get; set; }
|
||||
|
||||
public bool? EsSolicitudCliente { get; set; }
|
||||
|
||||
public string? AdjuntoArchivo { get; set; }
|
||||
}
|
||||
60
Models/Models/PhronCareOperationsHubContext.cs
Normal file
60
Models/Models/PhronCareOperationsHubContext.cs
Normal file
@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Models.Models;
|
||||
|
||||
public partial class PhronCareOperationsHubContext : DbContext
|
||||
{
|
||||
public PhronCareOperationsHubContext()
|
||||
{
|
||||
}
|
||||
|
||||
public PhronCareOperationsHubContext(DbContextOptions<PhronCareOperationsHubContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<PhOhTicket> PhOhTickets { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
#region VERSION DOCKER
|
||||
//{
|
||||
// if (!optionsBuilder.IsConfigured)
|
||||
// {
|
||||
// // Dejarlo vacío para usar la configuración externa desde Program.cs o Startup.cs
|
||||
// }
|
||||
//}
|
||||
#endregion
|
||||
=> optionsBuilder.UseSqlServer("Server=ROG-\\SQLEXPRESS;Database=phronCare_OperationsHub;Integrated Security=True;TrustServerCertificate=True;MultipleActiveResultSets=True;");
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.UseCollation("Modern_Spanish_CI_AS");
|
||||
|
||||
modelBuilder.Entity<PhOhTicket>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.TicketId).HasName("PK__PhOH_Tic__712CC607C3A58A28");
|
||||
|
||||
entity.ToTable("PhOH_Tickets");
|
||||
|
||||
entity.Property(e => e.TicketId).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.AsignadoAusuarioId)
|
||||
.HasMaxLength(128)
|
||||
.HasColumnName("AsignadoAUsuarioId");
|
||||
entity.Property(e => e.Categoria).HasMaxLength(50);
|
||||
entity.Property(e => e.CreadorUsuarioId).HasMaxLength(128);
|
||||
entity.Property(e => e.Departamento).HasMaxLength(50);
|
||||
entity.Property(e => e.Estado).HasMaxLength(50);
|
||||
entity.Property(e => e.FechaCreacion).HasColumnType("datetime");
|
||||
entity.Property(e => e.FechaEjecucion).HasColumnType("datetime");
|
||||
entity.Property(e => e.Impacto).HasMaxLength(50);
|
||||
entity.Property(e => e.Prioridad).HasMaxLength(50);
|
||||
entity.Property(e => e.Urgencia).HasMaxLength(50);
|
||||
});
|
||||
|
||||
OnModelCreatingPartial(modelBuilder);
|
||||
}
|
||||
|
||||
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
||||
}
|
||||
151
Models/Repositories/TicketRepository.cs
Normal file
151
Models/Repositories/TicketRepository.cs
Normal file
@ -0,0 +1,151 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Reflection;
|
||||
using Models.Interfaces;
|
||||
using Domain.Entities;
|
||||
using Models.Models;
|
||||
|
||||
namespace Models.Repositories
|
||||
{
|
||||
public class TicketRepository(PhronCareOperationsHubContext dbConnection) : ITicketRepository
|
||||
{
|
||||
#region Declaraciones y Constructor
|
||||
private readonly PhronCareOperationsHubContext _dbConnection = dbConnection;
|
||||
#endregion
|
||||
#region Metodos de clase
|
||||
public async Task<IEnumerable<ETicket>> GetAllAsync()
|
||||
{
|
||||
var tickets = await _dbConnection.PhOhTickets.ToListAsync();
|
||||
return tickets.Select(ticket => MapEntity<PhOhTicket, ETicket>(ticket));
|
||||
}
|
||||
public async Task<ETicket> GetByIdAsync(Guid ticketId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var ticket = await _dbConnection.PhOhTickets
|
||||
.FirstOrDefaultAsync(t => t.TicketId == ticketId);
|
||||
|
||||
if (ticket == null) return new ETicket();
|
||||
|
||||
var eTicket = MapEntity<PhOhTicket, ETicket>(ticket);
|
||||
return eTicket;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception($"{MethodBase.GetCurrentMethod()?.Name} Message: {ex.Message}", ex);
|
||||
}
|
||||
}
|
||||
public async Task InsertTicketAsync(ETicket ticket)
|
||||
{
|
||||
try
|
||||
{
|
||||
ticket.TicketId = Guid.NewGuid();
|
||||
var dataTicket = MapEntity<ETicket, PhOhTicket>(ticket);
|
||||
|
||||
await _dbConnection.PhOhTickets.AddAsync(dataTicket);
|
||||
await _dbConnection.SaveChangesAsync();
|
||||
}
|
||||
catch (DbUpdateException ex)
|
||||
{
|
||||
throw new Exception($"{MethodBase.GetCurrentMethod()?.Name} Message: {ex.InnerException?.Message}", ex);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception($"{MethodBase.GetCurrentMethod()?.Name} Message: {ex.Message}", ex);
|
||||
}
|
||||
}
|
||||
public async Task<IEnumerable<ETickets_GetSummary>> GetSummaryAsync()
|
||||
{
|
||||
var summaryResults = new List<ETickets_GetSummary>();
|
||||
try
|
||||
{
|
||||
using var command = _dbConnection.Database.GetDbConnection().CreateCommand();
|
||||
command.CommandText = "Tickets_GetSummary";
|
||||
command.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
await _dbConnection.Database.OpenConnectionAsync();
|
||||
using (var reader = await command.ExecuteReaderAsync())
|
||||
{
|
||||
while (await reader.ReadAsync())
|
||||
{
|
||||
var eSummary = Activator.CreateInstance<ETickets_GetSummary>();
|
||||
foreach (var propertyInfo in typeof(ETickets_GetSummary).GetProperties())
|
||||
{
|
||||
var columnName = propertyInfo.Name;
|
||||
if (!reader.IsDBNull(reader.GetOrdinal(columnName)))
|
||||
{
|
||||
var value = reader.GetValue(reader.GetOrdinal(columnName));
|
||||
propertyInfo.SetValue(eSummary, value);
|
||||
}
|
||||
}
|
||||
summaryResults.Add(eSummary);
|
||||
}
|
||||
}
|
||||
await _dbConnection.Database.CloseConnectionAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception($"{MethodBase.GetCurrentMethod()?.Name} Message: {ex.Message}", ex);
|
||||
}
|
||||
return summaryResults;
|
||||
}
|
||||
public async Task<IEnumerable<ETicket_Dashboard>> GetTicketDashboardAsync(string estado, string orden)
|
||||
{
|
||||
var ticketDashboardResults = new List<ETicket_Dashboard>();
|
||||
try
|
||||
{
|
||||
using var command = _dbConnection.Database.GetDbConnection().CreateCommand();
|
||||
command.CommandText = "Tickets_Dashboard";
|
||||
command.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
|
||||
// Agregar parámetros
|
||||
var estadoParam = command.CreateParameter();
|
||||
estadoParam.ParameterName = "@EstadoParam";
|
||||
estadoParam.Value = estado;
|
||||
command.Parameters.Add(estadoParam);
|
||||
|
||||
var ordenParam = command.CreateParameter();
|
||||
ordenParam.ParameterName = "@OrdenParam";
|
||||
ordenParam.Value = orden;
|
||||
command.Parameters.Add(ordenParam);
|
||||
|
||||
await _dbConnection.Database.OpenConnectionAsync();
|
||||
using (var reader = await command.ExecuteReaderAsync())
|
||||
{
|
||||
while (await reader.ReadAsync())
|
||||
{
|
||||
// Crear instancia del resultado usando reflexión
|
||||
var eTicketDashboard = Activator.CreateInstance<ETicket_Dashboard>();
|
||||
foreach (var propertyInfo in typeof(ETicket_Dashboard).GetProperties())
|
||||
{
|
||||
var columnName = propertyInfo.Name;
|
||||
if (!reader.IsDBNull(reader.GetOrdinal(columnName)))
|
||||
{
|
||||
var value = reader.GetValue(reader.GetOrdinal(columnName));
|
||||
propertyInfo.SetValue(eTicketDashboard, value);
|
||||
}
|
||||
}
|
||||
ticketDashboardResults.Add(eTicketDashboard);
|
||||
}
|
||||
}
|
||||
await _dbConnection.Database.CloseConnectionAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception($"{MethodBase.GetCurrentMethod()?.Name} Message: {ex.Message}", ex);
|
||||
}
|
||||
return ticketDashboardResults;
|
||||
}
|
||||
#endregion
|
||||
#region Métodos Auxiliares
|
||||
private static TDestination MapEntity<TSource, TDestination>(TSource source) where TDestination : new()
|
||||
{
|
||||
var destination = new TDestination();
|
||||
foreach (var propertyInfo in typeof(TSource).GetProperties())
|
||||
{
|
||||
var value = propertyInfo.GetValue(source);
|
||||
typeof(TDestination).GetProperty(propertyInfo.Name)?.SetValue(destination, value);
|
||||
}
|
||||
return destination;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
BIN
Models/bin/Debug/net8.0/Domain.dll
Normal file
BIN
Models/bin/Debug/net8.0/Domain.dll
Normal file
Binary file not shown.
BIN
Models/bin/Debug/net8.0/Domain.pdb
Normal file
BIN
Models/bin/Debug/net8.0/Domain.pdb
Normal file
Binary file not shown.
1461
Models/bin/Debug/net8.0/Models.deps.json
Normal file
1461
Models/bin/Debug/net8.0/Models.deps.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Models/bin/Debug/net8.0/Models.dll
Normal file
BIN
Models/bin/Debug/net8.0/Models.dll
Normal file
Binary file not shown.
BIN
Models/bin/Debug/net8.0/Models.pdb
Normal file
BIN
Models/bin/Debug/net8.0/Models.pdb
Normal file
Binary file not shown.
13
Models/bin/Debug/net8.0/Models.runtimeconfig.json
Normal file
13
Models/bin/Debug/net8.0/Models.runtimeconfig.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Reflection.NullabilityInfoContext.IsSupported": true,
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
23
Models/obj/Debug/net8.0/Models.AssemblyInfo.cs
Normal file
23
Models/obj/Debug/net8.0/Models.AssemblyInfo.cs
Normal file
@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Este código fue generado por una herramienta.
|
||||
// Versión de runtime:4.0.30319.42000
|
||||
//
|
||||
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
||||
// se vuelve a generar el código.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Models")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b27ba12703e25c5d10428d090fc368ff6d4813dd")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Models")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Models")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generado por la clase WriteCodeFragment de MSBuild.
|
||||
|
||||
1
Models/obj/Debug/net8.0/Models.AssemblyInfoInputs.cache
Normal file
1
Models/obj/Debug/net8.0/Models.AssemblyInfoInputs.cache
Normal file
@ -0,0 +1 @@
|
||||
8cde179e7126aa2f63f7e1aef8a9b06b559376f917a59dafc9901acaa862931f
|
||||
@ -0,0 +1,13 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Models
|
||||
build_property.ProjectDir = C:\Users\maski\source\repos\SaludLAB\phronCare\Models\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
8
Models/obj/Debug/net8.0/Models.GlobalUsings.g.cs
Normal file
8
Models/obj/Debug/net8.0/Models.GlobalUsings.g.cs
Normal file
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
BIN
Models/obj/Debug/net8.0/Models.assets.cache
Normal file
BIN
Models/obj/Debug/net8.0/Models.assets.cache
Normal file
Binary file not shown.
BIN
Models/obj/Debug/net8.0/Models.csproj.AssemblyReference.cache
Normal file
BIN
Models/obj/Debug/net8.0/Models.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
5be900e891ffad050d75f61c2d4d50e2398184726cc24947dda7ce428fdfefe2
|
||||
18
Models/obj/Debug/net8.0/Models.csproj.FileListAbsolute.txt
Normal file
18
Models/obj/Debug/net8.0/Models.csproj.FileListAbsolute.txt
Normal file
@ -0,0 +1,18 @@
|
||||
C:\Users\maski\source\repos\phronCare\Models\bin\Debug\net8.0\Models.deps.json
|
||||
C:\Users\maski\source\repos\phronCare\Models\bin\Debug\net8.0\Models.runtimeconfig.json
|
||||
C:\Users\maski\source\repos\phronCare\Models\bin\Debug\net8.0\Models.dll
|
||||
C:\Users\maski\source\repos\phronCare\Models\bin\Debug\net8.0\Models.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Models\bin\Debug\net8.0\Domain.dll
|
||||
C:\Users\maski\source\repos\phronCare\Models\bin\Debug\net8.0\Domain.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.csproj.AssemblyReference.cache
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.AssemblyInfoInputs.cache
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.AssemblyInfo.cs
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.csproj.CoreCompileInputs.cache
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.sourcelink.json
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.csproj.Up2Date
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.dll
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\refint\Models.dll
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.pdb
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\Models.genruntimeconfig.cache
|
||||
C:\Users\maski\source\repos\phronCare\Models\obj\Debug\net8.0\ref\Models.dll
|
||||
0
Models/obj/Debug/net8.0/Models.csproj.Up2Date
Normal file
0
Models/obj/Debug/net8.0/Models.csproj.Up2Date
Normal file
BIN
Models/obj/Debug/net8.0/Models.dll
Normal file
BIN
Models/obj/Debug/net8.0/Models.dll
Normal file
Binary file not shown.
1
Models/obj/Debug/net8.0/Models.genruntimeconfig.cache
Normal file
1
Models/obj/Debug/net8.0/Models.genruntimeconfig.cache
Normal file
@ -0,0 +1 @@
|
||||
73ebcd801f7eff775729b243a2b61b19948880593a8d8463158c3d6947ab45a1
|
||||
BIN
Models/obj/Debug/net8.0/Models.pdb
Normal file
BIN
Models/obj/Debug/net8.0/Models.pdb
Normal file
Binary file not shown.
1
Models/obj/Debug/net8.0/Models.sourcelink.json
Normal file
1
Models/obj/Debug/net8.0/Models.sourcelink.json
Normal file
@ -0,0 +1 @@
|
||||
{"documents":{"C:\\Users\\maski\\source\\repos\\phronCare\\*":"https://gitlab.com/maskinc00/phronCare/-/raw/fe92df3d23e2450596799ae31e6446af3500a138/*"}}
|
||||
BIN
Models/obj/Debug/net8.0/ref/Models.dll
Normal file
BIN
Models/obj/Debug/net8.0/ref/Models.dll
Normal file
Binary file not shown.
BIN
Models/obj/Debug/net8.0/refint/Models.dll
Normal file
BIN
Models/obj/Debug/net8.0/refint/Models.dll
Normal file
Binary file not shown.
146
Models/obj/Models.csproj.nuget.dgspec.json
Normal file
146
Models/obj/Models.csproj.nuget.dgspec.json
Normal file
@ -0,0 +1,146 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Models\\Models.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj",
|
||||
"projectName": "Domain",
|
||||
"projectPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj",
|
||||
"packagesPath": "C:\\Users\\maski\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\maski\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"C:\\Program Files\\dotnet\\library-packs": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Models\\Models.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Models\\Models.csproj",
|
||||
"projectName": "Models",
|
||||
"projectPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Models\\Models.csproj",
|
||||
"packagesPath": "C:\\Users\\maski\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Models\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\maski\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"C:\\Program Files\\dotnet\\library-packs": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {
|
||||
"C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj": {
|
||||
"projectPath": "C:\\Users\\maski\\source\\repos\\SaludLAB\\phronCare\\Domain\\Domain.csproj"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"dependencies": {
|
||||
"Microsoft.EntityFrameworkCore.Design": {
|
||||
"include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
|
||||
"suppressParent": "All",
|
||||
"target": "Package",
|
||||
"version": "[8.0.10, )"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.SqlServer": {
|
||||
"target": "Package",
|
||||
"version": "[8.0.10, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
22
Models/obj/Models.csproj.nuget.g.props
Normal file
22
Models/obj/Models.csproj.nuget.g.props
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\maski\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\maski\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore\8.0.10\buildTransitive\net8.0\Microsoft.EntityFrameworkCore.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore\8.0.10\buildTransitive\net8.0\Microsoft.EntityFrameworkCore.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore.design\8.0.10\build\net8.0\Microsoft.EntityFrameworkCore.Design.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore.design\8.0.10\build\net8.0\Microsoft.EntityFrameworkCore.Design.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Users\maski\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3</PkgMicrosoft_CodeAnalysis_Analyzers>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
7
Models/obj/Models.csproj.nuget.g.targets
Normal file
7
Models/obj/Models.csproj.nuget.g.targets
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Options.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
4099
Models/obj/project.assets.json
Normal file
4099
Models/obj/project.assets.json
Normal file
File diff suppressed because it is too large
Load Diff
93
README.md
Normal file
93
README.md
Normal file
@ -0,0 +1,93 @@
|
||||
# phronCare
|
||||
|
||||
|
||||
|
||||
## Getting started
|
||||
|
||||
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
||||
|
||||
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
||||
|
||||
## Add your files
|
||||
|
||||
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
||||
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
||||
|
||||
```
|
||||
cd existing_repo
|
||||
git remote add origin https://gitlab.com/maskinc00/phronCare.git
|
||||
git branch -M main
|
||||
git push -uf origin main
|
||||
```
|
||||
|
||||
## Integrate with your tools
|
||||
|
||||
- [ ] [Set up project integrations](https://gitlab.com/maskinc00/phronCare/-/settings/integrations)
|
||||
|
||||
## Collaborate with your team
|
||||
|
||||
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
||||
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
||||
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
||||
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
||||
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
||||
|
||||
## Test and Deploy
|
||||
|
||||
Use the built-in continuous integration in GitLab.
|
||||
|
||||
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
||||
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
||||
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
||||
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
||||
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
||||
|
||||
***
|
||||
|
||||
# Editing this README
|
||||
|
||||
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
||||
|
||||
## Suggestions for a good README
|
||||
|
||||
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
||||
|
||||
## Name
|
||||
Choose a self-explaining name for your project.
|
||||
|
||||
## Description
|
||||
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
||||
|
||||
## Badges
|
||||
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
||||
|
||||
## Visuals
|
||||
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
||||
|
||||
## Installation
|
||||
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
||||
|
||||
## Usage
|
||||
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
||||
|
||||
## Support
|
||||
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
||||
|
||||
## Roadmap
|
||||
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
||||
|
||||
## Contributing
|
||||
State if you are open to contributions and what your requirements are for accepting them.
|
||||
|
||||
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
||||
|
||||
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
||||
|
||||
## Authors and acknowledgment
|
||||
Show your appreciation to those who have contributed to the project.
|
||||
|
||||
## License
|
||||
For open source projects, say how it is licensed.
|
||||
|
||||
## Project status
|
||||
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
||||
9
Services/Interfaces/IEmailService.cs
Normal file
9
Services/Interfaces/IEmailService.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using Services.Models;
|
||||
|
||||
namespace Services.Interfaces
|
||||
{
|
||||
public interface IEmailService
|
||||
{
|
||||
void SendEmail(Message message);
|
||||
}
|
||||
}
|
||||
13
Services/Interfaces/IXLSXExport.cs
Normal file
13
Services/Interfaces/IXLSXExport.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Services.Interfaces
|
||||
{
|
||||
public interface IXLSXExport
|
||||
{
|
||||
byte[] ExportExcel<T>(IEnumerable<T> datos);
|
||||
}
|
||||
}
|
||||
11
Services/Models/EmailConfiguration.cs
Normal file
11
Services/Models/EmailConfiguration.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace Services.Models
|
||||
{
|
||||
public class EmailConfiguration
|
||||
{
|
||||
public string From { get; set; } = null!;
|
||||
public string SmtpServer { get; set; } = null!;
|
||||
public int Port { get; set; } = 0;
|
||||
public string UserName { get; set; } = null!;
|
||||
public string Password { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
20
Services/Models/Message.cs
Normal file
20
Services/Models/Message.cs
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
using MimeKit;
|
||||
|
||||
namespace Services.Models
|
||||
{
|
||||
public class Message
|
||||
{
|
||||
public List<MailboxAddress> To { get; set; }
|
||||
public string Subject { get; set; }
|
||||
|
||||
public string Content { get; set; }
|
||||
public Message(IEnumerable<string> to, string subject, string content)
|
||||
{
|
||||
To = new List<MailboxAddress>();
|
||||
To.AddRange(to.Select(m => new MailboxAddress("email", m)));
|
||||
Subject = subject;
|
||||
Content = content;
|
||||
}
|
||||
}
|
||||
}
|
||||
14
Services/Services.csproj
Normal file
14
Services/Services.csproj
Normal file
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="EPPlus" Version="7.5.2" />
|
||||
<PackageReference Include="MimeKit" Version="4.8.0" />
|
||||
<PackageReference Include="NETCore.MailKit" Version="2.1.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
47
Services/Services/EmailService.cs
Normal file
47
Services/Services/EmailService.cs
Normal file
@ -0,0 +1,47 @@
|
||||
using Services.Interfaces;
|
||||
using Services.Models;
|
||||
using MailKit.Net.Smtp;
|
||||
using MimeKit;
|
||||
|
||||
namespace Services.Services
|
||||
{
|
||||
public class EmailService : IEmailService
|
||||
{
|
||||
private readonly EmailConfiguration emailConfig;
|
||||
public EmailService(EmailConfiguration emailConfig) => this.emailConfig = emailConfig;
|
||||
public void SendEmail(Message message)
|
||||
{
|
||||
var emailMessage = CreateEmailMessage(message);
|
||||
Send(emailMessage);
|
||||
}
|
||||
private MimeMessage CreateEmailMessage(Message message)
|
||||
{
|
||||
var emailMessage = new MimeMessage();
|
||||
emailMessage.From.Add(new MailboxAddress("email", emailConfig.From));
|
||||
emailMessage.To.AddRange(message.To);
|
||||
emailMessage.Subject = message.Subject;
|
||||
emailMessage.Body = new TextPart(MimeKit.Text.TextFormat.Text) { Text = message.Content };
|
||||
return emailMessage;
|
||||
}
|
||||
private void Send(MimeMessage mailmessage)
|
||||
{
|
||||
using var client = new SmtpClient();
|
||||
try
|
||||
{
|
||||
client.Connect(emailConfig.SmtpServer, emailConfig.Port, true);
|
||||
client.AuthenticationMechanisms.Remove("XOAUTH2");
|
||||
client.Authenticate(emailConfig.UserName, emailConfig.Password);
|
||||
client.Send(mailmessage);
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
client.Disconnect(true);
|
||||
client.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
58
Services/Services/XLSXExport.cs
Normal file
58
Services/Services/XLSXExport.cs
Normal file
@ -0,0 +1,58 @@
|
||||
using OfficeOpenXml;
|
||||
using OfficeOpenXml.Style;
|
||||
using Services.Interfaces;
|
||||
|
||||
namespace Services.Services
|
||||
{
|
||||
public class XLSXExport : IXLSXExport
|
||||
{
|
||||
public XLSXExport() { }
|
||||
|
||||
public byte[] ExportExcel<T>(IEnumerable<T> datos)
|
||||
{
|
||||
using (var package = new ExcelPackage())
|
||||
{
|
||||
var worksheet = package.Workbook.Worksheets.Add("Datos");
|
||||
|
||||
// Obtener las propiedades de T
|
||||
var propiedades = typeof(T).GetProperties();
|
||||
|
||||
// Agregar estilo a la primera fila (encabezados)
|
||||
using (var rng = worksheet.Cells[1, 1, 1, propiedades.Length])
|
||||
{
|
||||
rng.Style.Font.Bold = true;
|
||||
rng.Style.Fill.PatternType = ExcelFillStyle.Solid;
|
||||
rng.Style.Fill.BackgroundColor.SetColor(System.Drawing.Color.LightGray);
|
||||
}
|
||||
|
||||
// Agregar encabezados
|
||||
for (int i = 0; i < propiedades.Length; i++)
|
||||
{
|
||||
worksheet.Cells[1, i + 1].Value = propiedades[i].Name;
|
||||
}
|
||||
|
||||
// Agregar datos
|
||||
int row = 2;
|
||||
foreach (var item in datos)
|
||||
{
|
||||
for (int i = 0; i < propiedades.Length; i++)
|
||||
{
|
||||
worksheet.Cells[row, i + 1].Value = propiedades[i].GetValue(item);
|
||||
}
|
||||
|
||||
row++;
|
||||
}
|
||||
|
||||
// Guardar el libro de trabajo en un MemoryStream
|
||||
using (var stream = new MemoryStream())
|
||||
{
|
||||
package.SaveAs(stream);
|
||||
stream.Position = 0;
|
||||
|
||||
// Devolver el archivo como un array de bytes
|
||||
return package.GetAsByteArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
450
Services/bin/Debug/net8.0/Services.deps.json
Normal file
450
Services/bin/Debug/net8.0/Services.deps.json
Normal file
@ -0,0 +1,450 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"Services/1.0.0": {
|
||||
"dependencies": {
|
||||
"EPPlus": "7.5.2",
|
||||
"MimeKit": "4.8.0",
|
||||
"NETCore.MailKit": "2.1.0"
|
||||
},
|
||||
"runtime": {
|
||||
"Services.dll": {}
|
||||
}
|
||||
},
|
||||
"BouncyCastle.Cryptography/2.4.0": {
|
||||
"runtime": {
|
||||
"lib/net6.0/BouncyCastle.Cryptography.dll": {
|
||||
"assemblyVersion": "2.0.0.0",
|
||||
"fileVersion": "2.4.0.33771"
|
||||
}
|
||||
}
|
||||
},
|
||||
"EPPlus/7.5.2": {
|
||||
"dependencies": {
|
||||
"EPPlus.System.Drawing": "7.5.0",
|
||||
"Microsoft.Extensions.Configuration.Json": "8.0.1",
|
||||
"Microsoft.IO.RecyclableMemoryStream": "3.0.1",
|
||||
"System.ComponentModel.Annotations": "5.0.0",
|
||||
"System.Security.Cryptography.Pkcs": "8.0.1",
|
||||
"System.Text.Encoding.CodePages": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/EPPlus.dll": {
|
||||
"assemblyVersion": "7.5.2.0",
|
||||
"fileVersion": "7.5.2.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"EPPlus.Interfaces/7.5.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/EPPlus.Interfaces.dll": {
|
||||
"assemblyVersion": "7.5.0.0",
|
||||
"fileVersion": "7.5.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"EPPlus.System.Drawing/7.5.0": {
|
||||
"dependencies": {
|
||||
"EPPlus.Interfaces": "7.5.0",
|
||||
"System.Drawing.Common": "8.0.4"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/EPPlus.System.Drawing.dll": {
|
||||
"assemblyVersion": "7.5.0.0",
|
||||
"fileVersion": "7.5.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MailKit/3.2.0": {
|
||||
"dependencies": {
|
||||
"MimeKit": "4.8.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/MailKit.dll": {
|
||||
"assemblyVersion": "3.2.0.0",
|
||||
"fileVersion": "3.2.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration/8.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
|
||||
"Microsoft.Extensions.Primitives": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Configuration.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Abstractions/8.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Primitives": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.FileExtensions/8.0.1": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Configuration": "8.0.0",
|
||||
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
|
||||
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
|
||||
"Microsoft.Extensions.FileProviders.Physical": "8.0.0",
|
||||
"Microsoft.Extensions.Primitives": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Configuration.FileExtensions.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.724.31311"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Json/8.0.1": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Configuration": "8.0.0",
|
||||
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
|
||||
"Microsoft.Extensions.Configuration.FileExtensions": "8.0.1",
|
||||
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Configuration.Json.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.1024.46610"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection/6.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
|
||||
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.Extensions.DependencyInjection.dll": {
|
||||
"assemblyVersion": "6.0.0.0",
|
||||
"fileVersion": "6.0.21.52210"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
|
||||
"assemblyVersion": "6.0.0.0",
|
||||
"fileVersion": "6.0.21.52210"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.FileProviders.Abstractions/8.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Primitives": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.FileProviders.Abstractions.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.FileProviders.Physical/8.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
|
||||
"Microsoft.Extensions.FileSystemGlobbing": "8.0.0",
|
||||
"Microsoft.Extensions.Primitives": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.FileProviders.Physical.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.FileSystemGlobbing/8.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.FileSystemGlobbing.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Primitives/8.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.Primitives.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IO.RecyclableMemoryStream/3.0.1": {
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.IO.RecyclableMemoryStream.dll": {
|
||||
"assemblyVersion": "3.0.1.0",
|
||||
"fileVersion": "3.0.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Win32.SystemEvents/8.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Win32.SystemEvents.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win/lib/net8.0/Microsoft.Win32.SystemEvents.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MimeKit/4.8.0": {
|
||||
"dependencies": {
|
||||
"BouncyCastle.Cryptography": "2.4.0",
|
||||
"System.Formats.Asn1": "8.0.1",
|
||||
"System.Security.Cryptography.Pkcs": "8.0.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/MimeKit.dll": {
|
||||
"assemblyVersion": "4.8.0.0",
|
||||
"fileVersion": "4.8.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NETCore.MailKit/2.1.0": {
|
||||
"dependencies": {
|
||||
"MailKit": "3.2.0",
|
||||
"Microsoft.Extensions.DependencyInjection": "6.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.1/NETCore.MailKit.dll": {
|
||||
"assemblyVersion": "2.1.0.0",
|
||||
"fileVersion": "2.1.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.ComponentModel.Annotations/5.0.0": {},
|
||||
"System.Drawing.Common/8.0.4": {
|
||||
"dependencies": {
|
||||
"Microsoft.Win32.SystemEvents": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Drawing.Common.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.424.16911"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Formats.Asn1/8.0.1": {},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.0.0": {},
|
||||
"System.Security.Cryptography.Pkcs/8.0.1": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Security.Cryptography.Pkcs.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.1024.46610"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win/lib/net8.0/System.Security.Cryptography.Pkcs.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.1024.46610"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Encoding.CodePages/8.0.0": {}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Services/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"BouncyCastle.Cryptography/2.4.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-SwXsAV3sMvAU/Nn31pbjhWurYSjJ+/giI/0n6tCrYoupEK34iIHCuk3STAd9fx8yudM85KkLSVdn951vTng/vQ==",
|
||||
"path": "bouncycastle.cryptography/2.4.0",
|
||||
"hashPath": "bouncycastle.cryptography.2.4.0.nupkg.sha512"
|
||||
},
|
||||
"EPPlus/7.5.2": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-qHJurPvgWoheHyyam53NV8d2CiOO2q88Rg/Lk0wSYwi/aoGDtzYihTMCHeTwGM9zHZnnI3aVLu482SODN+HB4g==",
|
||||
"path": "epplus/7.5.2",
|
||||
"hashPath": "epplus.7.5.2.nupkg.sha512"
|
||||
},
|
||||
"EPPlus.Interfaces/7.5.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-mGLKgdIKkXRYIu+HIGmZUngVAAlPzIQgI/KqG10m6P5P2112l6p/5dDa35UHu4GV4Qevw0Pq9PxAymrrrl4tzA==",
|
||||
"path": "epplus.interfaces/7.5.0",
|
||||
"hashPath": "epplus.interfaces.7.5.0.nupkg.sha512"
|
||||
},
|
||||
"EPPlus.System.Drawing/7.5.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-cgwstM12foFisisURUyxwJOWHMD/rZxPSyBXFsCOFayaKq0oKlOs1mCTueKNNIlpPDG1no9vcaQiJgZXFM4KPA==",
|
||||
"path": "epplus.system.drawing/7.5.0",
|
||||
"hashPath": "epplus.system.drawing.7.5.0.nupkg.sha512"
|
||||
},
|
||||
"MailKit/3.2.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-5MTpTqmjqT7HPvYbP3HozRZMth5vSaT0ReN0iM3rAM4CgLI/R1qqtLDDNWGnFFIlcNzeJkZQRJJMkv8cgzWBbA==",
|
||||
"path": "mailkit/3.2.0",
|
||||
"hashPath": "mailkit.3.2.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-0J/9YNXTMWSZP2p2+nvl8p71zpSwokZXZuJW+VjdErkegAnFdO1XlqtA62SJtgVYHdKu3uPxJHcMR/r35HwFBA==",
|
||||
"path": "microsoft.extensions.configuration/8.0.0",
|
||||
"hashPath": "microsoft.extensions.configuration.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Abstractions/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==",
|
||||
"path": "microsoft.extensions.configuration.abstractions/8.0.0",
|
||||
"hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.FileExtensions/8.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-EJzSNO9oaAXnTdtdNO6npPRsIIeZCBSNmdQ091VDO7fBiOtJAAeEq6dtrVXIi3ZyjC5XRSAtVvF8SzcneRHqKQ==",
|
||||
"path": "microsoft.extensions.configuration.fileextensions/8.0.1",
|
||||
"hashPath": "microsoft.extensions.configuration.fileextensions.8.0.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Json/8.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-L89DLNuimOghjV3tLx0ArFDwVEJD6+uGB3BMCMX01kaLzXkaXHb2021xOMl2QOxUxbdePKUZsUY7n2UUkycjRg==",
|
||||
"path": "microsoft.extensions.configuration.json/8.0.1",
|
||||
"hashPath": "microsoft.extensions.configuration.json.8.0.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection/6.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-k6PWQMuoBDGGHOQTtyois2u4AwyVcIwL2LaSLlTZQm2CYcJ1pxbt6jfAnpWmzENA/wfrYRI/X9DTLoUkE4AsLw==",
|
||||
"path": "microsoft.extensions.dependencyinjection/6.0.0",
|
||||
"hashPath": "microsoft.extensions.dependencyinjection.6.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-xlzi2IYREJH3/m6+lUrQlujzX8wDitm4QGnUu6kUXTQAWPuZY8i+ticFJbzfqaetLA6KR/rO6Ew/HuYD+bxifg==",
|
||||
"path": "microsoft.extensions.dependencyinjection.abstractions/6.0.0",
|
||||
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.FileProviders.Abstractions/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==",
|
||||
"path": "microsoft.extensions.fileproviders.abstractions/8.0.0",
|
||||
"hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.FileProviders.Physical/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-UboiXxpPUpwulHvIAVE36Knq0VSHaAmfrFkegLyBZeaADuKezJ/AIXYAW8F5GBlGk/VaibN2k/Zn1ca8YAfVdA==",
|
||||
"path": "microsoft.extensions.fileproviders.physical/8.0.0",
|
||||
"hashPath": "microsoft.extensions.fileproviders.physical.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.FileSystemGlobbing/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-OK+670i7esqlQrPjdIKRbsyMCe9g5kSLpRRQGSr4Q58AOYEe/hCnfLZprh7viNisSUUQZmMrbbuDaIrP+V1ebQ==",
|
||||
"path": "microsoft.extensions.filesystemglobbing/8.0.0",
|
||||
"hashPath": "microsoft.extensions.filesystemglobbing.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Primitives/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==",
|
||||
"path": "microsoft.extensions.primitives/8.0.0",
|
||||
"hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.IO.RecyclableMemoryStream/3.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-s/s20YTVY9r9TPfTrN5g8zPF1YhwxyqO6PxUkrYTGI2B+OGPe9AdajWZrLhFqXIvqIW23fnUE4+ztrUWNU1+9g==",
|
||||
"path": "microsoft.io.recyclablememorystream/3.0.1",
|
||||
"hashPath": "microsoft.io.recyclablememorystream.3.0.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Win32.SystemEvents/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-9opKRyOKMCi2xJ7Bj7kxtZ1r9vbzosMvRrdEhVhDz8j8MoBGgB+WmC94yH839NPH+BclAjtQ/pyagvi/8gDLkw==",
|
||||
"path": "microsoft.win32.systemevents/8.0.0",
|
||||
"hashPath": "microsoft.win32.systemevents.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"MimeKit/4.8.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-U24wp4LKED+sBRzyrWICE+3bSwptsTrPOcCIXbW5zfeThCNzQx5NCo8Wus+Rmi+EUkQrCwlI/3sVfejeq9tuxQ==",
|
||||
"path": "mimekit/4.8.0",
|
||||
"hashPath": "mimekit.4.8.0.nupkg.sha512"
|
||||
},
|
||||
"NETCore.MailKit/2.1.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-+1C0sg4YJQczp/2RVrVbKLIntg7Mou7Ie5M01UBiAsxmIarjfBRlCgKK4sEbPyGask52VRKV29/Zi+41B6LPXA==",
|
||||
"path": "netcore.mailkit/2.1.0",
|
||||
"hashPath": "netcore.mailkit.2.1.0.nupkg.sha512"
|
||||
},
|
||||
"System.ComponentModel.Annotations/5.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-dMkqfy2el8A8/I76n2Hi1oBFEbG1SfxD2l5nhwXV3XjlnOmwxJlQbYpJH4W51odnU9sARCSAgv7S3CyAFMkpYg==",
|
||||
"path": "system.componentmodel.annotations/5.0.0",
|
||||
"hashPath": "system.componentmodel.annotations.5.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Drawing.Common/8.0.4": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-3G4xpa8mUYGzEF0HlswlBArAFywHJIzsZoB5hU4yMlnYHaabj/lg019BwbyyYBxj0aoM7Cz+jdlgUemeno9LOQ==",
|
||||
"path": "system.drawing.common/8.0.4",
|
||||
"hashPath": "system.drawing.common.8.0.4.nupkg.sha512"
|
||||
},
|
||||
"System.Formats.Asn1/8.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-XqKba7Mm/koKSjKMfW82olQdmfbI5yqeoLV/tidRp7fbh5rmHAQ5raDI/7SU0swTzv+jgqtUGkzmFxuUg0it1A==",
|
||||
"path": "system.formats.asn1/8.0.1",
|
||||
"hashPath": "system.formats.asn1.8.0.1.nupkg.sha512"
|
||||
},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==",
|
||||
"path": "system.runtime.compilerservices.unsafe/6.0.0",
|
||||
"hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Security.Cryptography.Pkcs/8.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-CoCRHFym33aUSf/NtWSVSZa99dkd0Hm7OCZUxORBjRB16LNhIEOf8THPqzIYlvKM0nNDAPTRBa1FxEECrgaxxA==",
|
||||
"path": "system.security.cryptography.pkcs/8.0.1",
|
||||
"hashPath": "system.security.cryptography.pkcs.8.0.1.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Encoding.CodePages/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-OZIsVplFGaVY90G2SbpgU7EnCoOO5pw1t4ic21dBF3/1omrJFpAGoNAVpPyMVOC90/hvgkGG3VFqR13YgZMQfg==",
|
||||
"path": "system.text.encoding.codepages/8.0.0",
|
||||
"hashPath": "system.text.encoding.codepages.8.0.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Services/bin/Debug/net8.0/Services.dll
Normal file
BIN
Services/bin/Debug/net8.0/Services.dll
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user