Exemple #1
0
 public void Dispose()
 {
     _context?.Dispose();
     _context = null;
 }
Exemple #2
0
 public ServletController(ChunithmContext context, IAimeService aimeService, ILogger logger)
 {
     _logger      = logger;
     _context     = context ?? throw new ArgumentNullException(nameof(context));
     _aimeService = aimeService ?? throw new ArgumentNullException(nameof(aimeService));
 }
Exemple #3
0
 public ChunithmServer(IPEndPoint endPoint) : base(endPoint)
 {
     _context = new ChunithmContext();
     _context.Database.Migrate();
 }