public static object DeepCopier(object original)
 {
     DTO.CreateRole input = ((DTO.CreateRole)(original));
     DTO.CreateRole result = new DTO.CreateRole();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.Name = input.Name;
     return result;
 }
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     DTO.CreateRole result = new DTO.CreateRole();
     result.Name = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     return result;
 }
Beispiel #3
0
 public async Task<RoleMessage> CreateRole(CreateRole createRole)
 {
     return await _rolePresenter.Create(createRole);
 }