private static void Set(ITransactionalState <GrainData> data, int newValue, ILogger logger)
 {
     logger.LogInformation($"Setting from {data.State.Value} to {newValue}.");
     data.State.Value = newValue;
     data.Save();
     logger.LogInformation($"Set to {data.State.Value}.");
 }
 private static int Add(ITransactionalState <GrainData> data, int numberToAdd, ILogger logger)
 {
     logger.LogInformation($"Adding {numberToAdd} to {data.State.Value}.");
     data.State.Value += numberToAdd;
     data.Save();
     logger.LogInformation($"Value after Adding {numberToAdd} is {data.State.Value}.");
     return(data.State.Value);
 }