public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     OrleansExample.Interfaces.Advanced.Customer result = new OrleansExample.Interfaces.Advanced.Customer();
     result.Id   = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream)));
     result.Name = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     return(result);
 }
 public static object DeepCopier(object original)
 {
     OrleansExample.Interfaces.Advanced.Customer input  = ((OrleansExample.Interfaces.Advanced.Customer)(original));
     OrleansExample.Interfaces.Advanced.Customer result = new OrleansExample.Interfaces.Advanced.Customer();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.Id   = ((System.Guid)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.Id)));
     result.Name = input.Name;
     return(result);
 }
 public override void SetAll(System.Collections.Generic.IDictionary<string,object> values)
 {   
     object value;
     if (values == null) { InitStateFields(); return; }
     if (values.TryGetValue("Customer", out value)) @Customer = (Customer) value;
 }
 public async Task IndexCustomer(Customer customer)
 {
     // TODO: Send customer to full text engine like Elastic Search/Azure Search
     // or send to table storage (or both)
 }
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     OrleansExample.Interfaces.Advanced.Customer input = ((OrleansExample.Interfaces.Advanced.Customer)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Id, stream, typeof(System.Guid));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Name, stream, typeof(string));
 }
 System.Threading.Tasks.Task OrleansExample.Interfaces.Advanced.ICustomerIndexer.IndexCustomer(OrleansExample.Interfaces.Advanced.Customer @customer)
 {
     return(base.InvokeMethodAsync <object>(2124991640, new object[] { @customer }));
 }
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     OrleansExample.Interfaces.Advanced.Customer result = new OrleansExample.Interfaces.Advanced.Customer();
     result.Id = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream)));
     result.Name = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     return result;
 }
 public static object DeepCopier(object original)
 {
     OrleansExample.Interfaces.Advanced.Customer input = ((OrleansExample.Interfaces.Advanced.Customer)(original));
     OrleansExample.Interfaces.Advanced.Customer result = new OrleansExample.Interfaces.Advanced.Customer();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.Id = ((System.Guid)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.Id)));
     result.Name = input.Name;
     return result;
 }