/// <summary> /// Initializes a new instance of the <see cref="DotvvmPresenter" /> class. /// </summary> public DotvvmPresenter(DotvvmConfiguration configuration, IDotvvmViewBuilder viewBuilder, IViewModelLoader viewModelLoader, IViewModelSerializer viewModelSerializer, IOutputRenderer outputRender, ICsrfProtector csrfProtector, IViewModelParameterBinder viewModelParameterBinder) { DotvvmViewBuilder = viewBuilder; ViewModelLoader = viewModelLoader; ViewModelSerializer = viewModelSerializer; OutputRenderer = outputRender; CsrfProtector = csrfProtector; ViewModelParameterBinder = viewModelParameterBinder; ApplicationPath = configuration.ApplicationPhysicalPath; }
public DotvvmPresenter(DotvvmConfiguration configuration, IDotvvmViewBuilder viewBuilder, IViewModelLoader viewModelLoader, IViewModelSerializer viewModelSerializer, IOutputRenderer outputRender, ICsrfProtector csrfProtector, IViewModelParameterBinder viewModelParameterBinder, #pragma warning disable CS0618 IStaticCommandServiceLoader staticCommandServiceLoader #pragma warning restore CS0618 ) { DotvvmViewBuilder = viewBuilder; ViewModelLoader = viewModelLoader; ViewModelSerializer = viewModelSerializer; OutputRenderer = outputRender; CsrfProtector = csrfProtector; ViewModelParameterBinder = viewModelParameterBinder; #pragma warning disable CS0618 StaticCommandServiceLoader = staticCommandServiceLoader; #pragma warning restore CS0618 ApplicationPath = configuration.ApplicationPhysicalPath; }
public DotvvmAmpPresenter(DotvvmConfiguration configuration, Func <IAmpStylesheetResourceCollection> ampStylesheetResourceCollectionFactory, IAmpDotvvmViewBuilder viewBuilder, IViewModelLoader viewModelLoader, IViewModelSerializer viewModelSerializer, IAmpOutputRenderer outputRender, ICsrfProtector csrfProtector, IViewModelParameterBinder viewModelParameterBinder, IStaticCommandServiceLoader staticCommandServiceLoader) : base(configuration, viewBuilder, viewModelLoader, viewModelSerializer, outputRender, csrfProtector, viewModelParameterBinder, staticCommandServiceLoader) { this.ampStylesheetResourceCollectionFactory = ampStylesheetResourceCollectionFactory; }
public StatusPagePresenter(DotvvmConfiguration configuration, IDotvvmViewBuilder viewBuilder, IViewModelLoader viewModelLoader, IViewModelSerializer viewModelSerializer, IOutputRenderer outputRender, ICsrfProtector csrfProtector, IViewModelParameterBinder viewModelParameterBinder, IStaticCommandServiceLoader staticCommandServiceLoader) : base(configuration, viewBuilder, new DefaultViewModelLoader(), viewModelSerializer, outputRender, csrfProtector, viewModelParameterBinder, staticCommandServiceLoader) { }