예제 #1
0
        internal static HomeOS.Hub.Platform.Contracts.IModuleState V2C(VModuleState view)
        {
            if (view == null)
            {
                return(null);
            }

            if (!System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(view) &&
                (view.GetType().Equals(typeof(ModuleStateC2V))))
            {
                return(((ModuleStateC2V)(view)).GetSourceContract());
            }
            else
            {
                return(new ModuleStateV2C(view));
            }
        }
예제 #2
0
 //***
 public void UpdateState(VModule module, VModuleState state)
 {
     _contract.UpdateState(ModuleAdapter.V2C(module), ModuleStateAdapter.V2C(state));
 }
예제 #3
0
 public override void Update(VModuleState s)
 {
     _contract.Update(ModuleStateAdapter.V2C(s));
 }
예제 #4
0
 public ModuleStateV2C(VModuleState view)
 {
     _view = view;
 }