/// <inheritdoc />
        public void OnProvidersExecuting(ApplicationModelProviderContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            foreach (var controllerModel in context.Result.Controllers)
            {
                var modelType          = controllerModel.ControllerType.AsType();
                var tempDataProperties = SaveTempDataPropertyFilterBase.GetTempDataProperties(modelType);

                if (tempDataProperties != null)
                {
                    var factory = new ControllerSaveTempDataPropertyFilterFactory()
                    {
                        TempDataProperties = tempDataProperties
                    };

                    controllerModel.Filters.Add(factory);
                }
            }
        }