Ejemplo n.º 1
0
        public SillycoreAppBuilder UseLocalTimes()
        {
            DataStore.Delete(Constants.DateTimeProvider);
            DataStore.Set(Constants.DateTimeProvider, new LocalDateTimeProvider());
            Services.TryAddSingleton(DataStore.Get <IDateTimeProvider>(Constants.DateTimeProvider));

            return(this);
        }
Ejemplo n.º 2
0
 internal SillycoreAppBuilder()
 {
     DataStore.Set(Constants.OnStartActions, new List <Action>());
     DataStore.Set(Constants.OnStopActions, new List <Action>());
     DataStore.Set(Constants.OnStoppedActions, new List <Action>());
     InitializeConfiguration();
     InitializeLogger();
     InitializeDateTimeProvider();
     InitializeBackgroundJobManager();
 }