Update: Configuration Optimisation and Caching

Loads entire configuration at start-up (rather than scope-based
loading). Deserialization occurs once, with the resulting value cached
and replayed if the requested type matches.
This commit is contained in:
Gary Sharp
2014-05-07 22:45:59 +10:00
parent 6b2cd47610
commit fb6067afc3
19 changed files with 455 additions and 282 deletions
@@ -1,13 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Disco.Data.Repository;
using Disco.Models.Repository;
using System.IO;
using System.Security.Cryptography;
using Disco.Data.Repository;
using Disco.Models.BI.Interop.Community;
using Newtonsoft.Json;
using System;
using System.IO;
namespace Disco.Data.Configuration
{
@@ -270,11 +264,11 @@ namespace Disco.Data.Configuration
{
get
{
return this.GetFromJson<UpdateResponse>(null);
return this.Get<UpdateResponse>(null);
}
set
{
this.SetAsJson(value);
this.Set(value);
}
}
public bool UpdateBetaDeployment