public SillycoreAppBuilder UseLocalTimes() { DataStore.Delete(Constants.DateTimeProvider); DataStore.Set(Constants.DateTimeProvider, new LocalDateTimeProvider()); Services.TryAddSingleton(DataStore.Get <IDateTimeProvider>(Constants.DateTimeProvider)); return(this); }
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(); }