Example #1
0
 /// <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;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultViewModelSerializer"/> class.
 /// </summary>
 public DefaultViewModelSerializer(IViewModelProtector viewModelProtector)
 {
     this.viewModelProtector = viewModelProtector;
 }
Example #3
0
 /// <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;
 }
Example #4
0
 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(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;
 }