refactor: Cambiada la estructura de las controladoras

This commit is contained in:
2024-08-11 18:21:15 -03:00
parent 11bd93e016
commit 5673d60e4f
11 changed files with 67 additions and 86 deletions

20
Controladora/Singleton.cs Normal file
View File

@@ -0,0 +1,20 @@
using System.Collections.ObjectModel;
using System.Runtime.InteropServices;
using Modelo;
namespace Controladora
{
public abstract class Singleton<T> where T : new()
{
// Singleton thread-safe por si quiero usar "Parallel"
private static T instance = new T();
public static T Instance
{
get
{
return instance;
}
}
}
}