Storage icon indicating copy to clipboard operation
Storage copied to clipboard

GetItem<T> never returns with ValueTypes

Open selfsx opened this issue 4 years ago • 1 comments

Hello, quick example here:

      try {
        var result = await Get<string>("key_that_not_exists");
        Logger.LogInformation("result is null: " + result);

        // Or DateTime for example
        var result2 = await Get<SomeStruct>("key_that_not_exists");
        Logger.LogInformation("will never print: " + result2);
      } catch (Exception e) {
        Logger.LogError(e, "this will never happen");
      }

selfsx avatar Jul 09 '19 15:07 selfsx

Hey, sorry for the delay. Can you test with latest packages?

galvesribeiro avatar Oct 30 '19 19:10 galvesribeiro