/// <summary> /// Initializes a new instance of the <see cref="DefaultViewModelSerializer"/> class. /// </summary> public DefaultViewModelSerializer(DotvvmConfiguration configuration, IViewModelProtector protector, IViewModelSerializationMapper serializationMapper, IViewModelServerCache viewModelServerCache) { this.viewModelProtector = protector; this.JsonFormatting = configuration.Debug ? Formatting.Indented : Formatting.None; this.viewModelMapper = serializationMapper; this.viewModelServerCache = viewModelServerCache; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultViewModelSerializer"/> class. /// </summary> public DefaultViewModelSerializer(IViewModelProtector viewModelProtector) { this.viewModelProtector = viewModelProtector; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultViewModelSerializer"/> class. /// </summary> public DefaultViewModelSerializer(DotvvmConfiguration configuration) { this.viewModelProtector = configuration.ServiceLocator.GetService <IViewModelProtector>(); this.JsonFormatting = configuration.Debug ? Formatting.Indented : Formatting.None; }
public StaticCommandBindingCompiler(JavascriptTranslator javascriptTranslator, IViewModelProtector protector) { this.protector = protector; this.javascriptTranslator = javascriptTranslator; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultViewModelSerializer"/> class. /// </summary> public DefaultViewModelSerializer(DotvvmConfiguration configuration) { this.viewModelProtector = configuration.ServiceLocator.GetService<IViewModelProtector>(); this.JsonFormatting = configuration.Debug ? Formatting.Indented : Formatting.None; }