Beispiel #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));
            }
        }
Beispiel #2
0
 //***
 public void UpdateState(VModule module, VModuleState state)
 {
     _contract.UpdateState(ModuleAdapter.V2C(module), ModuleStateAdapter.V2C(state));
 }
Beispiel #3
0
 public override void Update(VModuleState s)
 {
     _contract.Update(ModuleStateAdapter.V2C(s));
 }
Beispiel #4
0
 public ModuleStateV2C(VModuleState view)
 {
     _view = view;
 }