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