Ejemplo n.º 1
0
 public static IRepositoriy <User> GetInstance()
 {
     if (_repositoriy == null)
     {
         _repositoriy = new Repository(LocalDataBase.GetInstance());
         _localData.MockDataList();
     }
     return(_repositoriy);
 }
 public WeatherForecastController(IBotCore bot, IRepositoriy context)
 {
     _context = context;
     _bot     = bot;
 }
Ejemplo n.º 3
0
 public ApiMustBeFilter(IRepositoriy context)
 {
     _context = context;
 }
Ejemplo n.º 4
0
 public TransleteCommand(ITranslete translete, IRepositoriy context)
 {
     _translete = translete;
     _context   = context;
 }
Ejemplo n.º 5
0
 public CheckCaptchaFilter(IRepositoriy context, IConfiguration configuration)
 {
     _context = context;
     ApiKey   = configuration["Keys:Api-Key"];
 }
Ejemplo n.º 6
0
 public SetCommand(IRepositoriy context, ITranslete translete)
 {
     _context   = context;
     _translete = translete;
 }
Ejemplo n.º 7
0
 public CommandHello(ITranslete itran, IRepositoriy irep)
 {
     _irep  = irep;
     _itran = itran;
 }
Ejemplo n.º 8
0
 public CaptchaController(IRepositoriy context, IDrawCaptcha draw)
 {
     _context = context;
     _draw    = draw;
 }
 public GenerateApiKeyController(IRepositoriy context, IDrawCaptcha draw, IConfiguration configuration)
 {
     _context       = context;
     _draw          = draw;
     _configuration = configuration;
 }