Esempio n. 1
0
 public Service.Organization.Domain.ExternalInterfaceSetting this[Guid id] {
     get {
         var setting = _cache[id];
         if (setting == null)
         {
             setting = Service.Organization.ExternalInterfaceService.Query(id);
             _cache.Save(id, setting);
         }
         return(setting);
     }
 }
Esempio n. 2
0
 public DataTransferObject.Organization.CompanyDetailInfo this[Guid id] {
     get {
         var organization = _cache[id];
         if (organization == null)
         {
             organization = Service.Organization.CompanyService.GetCompanyDetail(id);
             _cache.Save(id, organization);
         }
         return(organization);
     }
 }
Esempio n. 3
0
 public void Save(CustomContext context)
 {
     _cache.Save(context.Id, context);
 }