Пример #1
0
 public void SetRoles(IPortInfo portInfo, IListContract <IRole> roles, IModule module)
 {
     _view.SetRoles(PortInfoAdapter.C2V(portInfo),
                    CollectionAdapters.ToIList <IRole, VRole>(roles, RoleAdapter.C2V, RoleAdapter.V2C),
                    ModuleAdapter.C2V(module));
 }
Пример #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))));
 }
Пример #3
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));
 }
Пример #4
0
 public VPortInfo GetPortInfo(string moduleFacingName, VModule module)
 {
     return(PortInfoAdapter.C2V(_contract.GetPortInfo(moduleFacingName, ModuleAdapter.V2C(module))));
 }
Пример #5
0
        //public int Receive(IMessage message)
        //{
        //    return _view.Receive(MessageAdapter.C2V(message));
        //}

        public IPortInfo GetInfo()
        {
            return(PortInfoAdapter.V2C(_view.GetInfo()));
        }
Пример #6
0
 public override VPortInfo GetInfo()
 {
     return(PortInfoAdapter.C2V(_contract.GetInfo()));
 }