public Task Set(string stringValue, int intValue, DateTime dateTimeValue, Guid guidValue, IGrain1 grainRef)
 {
     try
     {
         this.State.StringValue   = stringValue;
         this.State.IntValue      = intValue;
         this.State.DateTimeValue = dateTimeValue;
         this.State.GuidValue     = guidValue;
         this.State.GrainRef      = grainRef;
         return(WriteStateAsync());
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
         throw;
     }
 }
Ejemplo n.º 2
0
 public Task Set(string stringValue, int intValue, DateTime dateTimeValue, Guid guidValue, IGrain1 grainValue)
 {
     State.StringValue   = stringValue;
     State.IntValue      = intValue;
     State.DateTimeValue = dateTimeValue;
     State.GuidValue     = guidValue;
     State.GrainValue    = grainValue;
     return(WriteStateAsync());
 }