Exemplo n.º 1
0
 Option <SystemUri> Persist(SystemUri id, SystemUri type, Json json)
 => from saved in id.ToLocalPath().TryWriteAllText(json)
 select id;
Exemplo n.º 2
0
 Option <JsonEntity> Lookup(SystemUri id)
 => from text in id.ToLocalPath().TryReadAllText()
 let json = Json.FromText(text)
            from recon in TryReconsitute <JsonEntity>(json)
            select recon;