public static object Deserializer(System.Type expected, Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     Frontend.Library.Models.PlayerInfo result = new Frontend.Library.Models.PlayerInfo();
     result.PlayerName = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     result.Strength   = ((Int32)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Int32), stream)));
     return(result);
 }
 public static object DeepCopier(object original)
 {
     Frontend.Library.Models.PlayerInfo input  = ((Frontend.Library.Models.PlayerInfo)(original));
     Frontend.Library.Models.PlayerInfo result = new Frontend.Library.Models.PlayerInfo();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.PlayerName = input.PlayerName;
     result.Strength   = input.Strength;
     return(result);
 }
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     Frontend.Library.Models.PlayerInfo input = ((Frontend.Library.Models.PlayerInfo)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.PlayerName, stream, typeof(String));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Strength, stream, typeof(Int32));
 }
 public System.Threading.Tasks.Task RegisterPlayer(Backend.GrainInterfaces.IPlayerGrain player, Frontend.Library.Models.PlayerInfo playerInfo)
 {
     return(base.InvokeMethodAsync <object>(1100016107, new object[] { player is GrainBase ? Backend.GrainInterfaces.PlayerGrainFactory.Cast(player.AsReference()) : player, playerInfo }, TimeSpan.Zero));
 }