Ejemplo n.º 1
0
        protected async Task InitializeSessionAsync()
        {
            if (databaseConnector == default)
            {
                throw new ApplicationException("The database connector must be initialized firstly.");
            }

            ebuefSession = await databaseConnector.GetEBuEfSessionAsync();

            ivuSessionDate    = ebuefSession.IVUDatum;
            ebuefSessionStart = ivuSessionDate
                                .Add(ebuefSession.SessionStart.TimeOfDay);

            logger.LogDebug(
                "Die IVU-Sitzung läuft am {sessionDate} um {sessionTime}.",
                ivuSessionDate.ToString("yyyy-MM-dd"),
                ebuefSessionStart.ToString("hh:mm"));
        }