Exemplo n.º 1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMatToaster(config =>
            {
                config.Position             = MatToastPosition.BottomCenter;
                config.PreventDuplicates    = true;
                config.NewestOnTop          = true;
                config.ShowCloseButton      = false;
                config.MaximumOpacity       = 95;
                config.VisibleStateDuration = 3000;
            });

            Shared.Theme globalTheme = new Shared.Theme()
            {
                MatTheme = new MatTheme()
                {
                    Primary   = MatThemeColors.Blue._500.Value,
                    Secondary = MatThemeColors.BlueGrey._500.Value,
                },
            };
            services.AddSingleton <Shared.Theme>(globalTheme);

            // StepController is a singleton that survives the entire lifetime of the application
            StepController stepController = new StepController();

            stepController.Initialize(string.Empty);
            services.AddSingleton <StepController>(stepController);
        }