Exemple #1
0
        public static void AddViewModelComposition(this IServiceCollection services, Action <ViewModelCompositionOptions> config, IConfiguration configuration = null)
        {
            var options = new ViewModelCompositionOptions(services, configuration);

            config?.Invoke(options);

            options.InitializeServiceCollection();
        }
 public CompositionOverControllersActionFilter(CompositionOverControllersRoutes compositionOverControllersRoutes, ViewModelCompositionOptions viewModelCompositionOptions)
 {
     _compositionOverControllersRoutes  = compositionOverControllersRoutes;
     _compositionOverControllersOptions = viewModelCompositionOptions.CompositionOverControllersOptions;
 }