Example #1
0
 protected override void Handle(DTObject arg)
 {
     UseDefines(arg, (define, id) =>
     {
         RemotePortal.UpdateObject(define, id);
     });
 }
Example #2
0
        /// <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));
        }
Example #3
0
 private void NotifyDeleted(object sender, RepositoryEventArgs e)
 {
     RemotePortal.NotifyDeleted(this.RemoteType, e.Target.GetIdentity());
 }
Example #4
0
 /// <summary>
 /// 注册远程服务的实现
 /// </summary>
 /// <param name="implement"></param>
 public static void Register(IRemoteService implement)
 {
     RemotePortal.Register(implement);
 }