Exemplo n.º 1
0
            /// <summary>
            /// Configure the hooks specific for the Warden.
            /// </summary>
            /// <param name="hooks">Lambda expression for configuring the Warden hooks.</param>
            /// <returns>Instance of fluent builder for the WardenConfiguration.</returns>
            public Builder SetHooks(Action <WardenHooksConfiguration.Builder, IIntegrator> hooks)
            {
                var hooksConfigurationBuilder = new WardenHooksConfiguration.Builder();

                hooks(hooksConfigurationBuilder, _configuration.IntegratorProvider());
                _configuration.Hooks = hooksConfigurationBuilder.Build();

                return(this);
            }
Exemplo n.º 2
0
            /// <summary>
            /// Configure the hooks specific for the Warden.
            /// </summary>
            /// <param name="hooks">Lambda expression for configuring the Warden hooks.</param>
            /// <returns>Instance of fluent builder for the WardenConfiguration.</returns>
            public Builder SetHooks(Action <WardenHooksConfiguration.Builder> hooks)
            {
                var hooksConfigurationBuilder = new WardenHooksConfiguration.Builder();

                hooks(hooksConfigurationBuilder);
                _configuration.Hooks = hooksConfigurationBuilder.Build();

                return(this);
            }