Ejemplo n.º 1
0
 public bool SetSecurePlusCodeData(string plusCode, string key, string value, string password, double?expiresIn = null)
 {
     if (!DataCheck.IsInBounds(cache.Get <IPreparedGeometry>("serverBounds"), OpenLocationCode.DecodeValid(plusCode)))
     {
         return(false);
     }
     if (value == null)
     {
         var rr = Request.BodyReader.ReadAsync();
         var r2 = rr.Result.Buffer;
         return(GenericData.SetSecureAreaData(plusCode, key, r2.ToArray(), password, expiresIn));
     }
     return(GenericData.SetSecureAreaData(plusCode, key, value, password, expiresIn));
 }