Пример #1
0
            public FrontendForErrorsSettingsBuilder ReceiveErrors(bool active, ErrorsOptions options = null)
            {
                _settings.ForErrors = active;

                _settings.ErrorsPrefix = options != null && options.PrefixSetter != null
                                        ? options.PrefixSetter()
                                        : ErrorsEndpointSegment;

                _settings.UseRandomizer = options != null && options.UseRandomizerSetter != null
                                        ? options.UseRandomizerSetter()
                                        : _settings.UseRandomizer;

                return(new FrontendForErrorsSettingsBuilder(_settings));
            }
Пример #2
0
            public BootstrapSettingsFinalBuilder ForErrors(bool active, ErrorsOptions options = null)
            {
                _settings.ForErrors = true;

                _settings.ErrorsPrefix = options != null && options.PrefixSetter != null
                                        ? options.PrefixSetter()
                                        : ErrorsEndpointSegment;

                _settings.UseRandomizer = options != null && options.UseRandomizerSetter != null
                                        ? options.UseRandomizerSetter()
                                        : _settings.UseRandomizer;

                return(new BootstrapSettingsFinalBuilder(_settings));
            }