protected override void Handle(DTObject arg) { UseDefines(arg, (define, id) => { RemotePortal.UpdateObject(define, id); }); }
/// <summary> /// 查找远程根对象 /// </summary> /// <param name="id"></param> /// <returns></returns> public static dynamic FindRemoteRoot <T>(object id) where T : AggregateRootDefine { var define = TypeDefine.GetDefine <T>(); return(RemotePortal.GetObject(define, id)); }
private void NotifyDeleted(object sender, RepositoryEventArgs e) { RemotePortal.NotifyDeleted(this.RemoteType, e.Target.GetIdentity()); }
/// <summary> /// 注册远程服务的实现 /// </summary> /// <param name="implement"></param> public static void Register(IRemoteService implement) { RemotePortal.Register(implement); }