Beispiel #1
0
 public void SetRoles(VPortInfo portInfo, IList <VRole> roles, VModule module)
 {
     _contract.SetRoles(PortInfoAdapter.V2C(portInfo),
                        CollectionAdapters.ToIListContract <VRole, IRole>(roles, RoleAdapter.V2C, RoleAdapter.C2V),
                        ModuleAdapter.V2C(module));
 }
Beispiel #2
0
 public HomeOS.Hub.Platform.Contracts.IPortInfo GetPortInfo(string moduleFacingName, HomeOS.Hub.Platform.Contracts.IModule module)
 {
     return(PortInfoAdapter.V2C(_view.GetPortInfo(moduleFacingName, ModuleAdapter.C2V(module))));
 }
Beispiel #3
0
        //public int Receive(IMessage message)
        //{
        //    return _view.Receive(MessageAdapter.C2V(message));
        //}

        public IPortInfo GetInfo()
        {
            return(PortInfoAdapter.V2C(_view.GetInfo()));
        }