// </Snippet3>

        // <Snippet4>
        public override void ProcessBooks(IList <LibraryContractsHAV.BookInfo> books)
        {
            _contract.ProcessBooks(CollectionAdapters.ToIListContract <LibraryContractsHAV.BookInfo,
                                                                       Library.IBookInfoContract>(books,
                                                                                                  LibraryContractsHostAdapters.BookInfoHostAdapter.ViewToContractAdapter,
                                                                                                  LibraryContractsHostAdapters.BookInfoHostAdapter.ContractToViewAdapter));
        }
Exemple #2
0
 public IListContract <IParamType> Invoke(string roleName, string opName, IListContract <IParamType> parameters, IPort p, ICapability reqCap, ICapability respCap)
 {
     return(CollectionAdapters.ToIListContract <VParamType, IParamType>(_view.Invoke(roleName, opName,
                                                                                     CollectionAdapters.ToIList <IParamType, VParamType>(parameters, BaseTypeAdapter.C2V, BaseTypeAdapter.V2C),
                                                                                     PortAdapter.C2V(p),
                                                                                     CapabilityAdapter.C2V(reqCap),
                                                                                     CapabilityAdapter.C2V(respCap)),
                                                                        BaseTypeAdapter.V2C, BaseTypeAdapter.C2V));
 }
 public IListContract <IParamType> ReturnValues()
 {
     return(CollectionAdapters.ToIListContract <VParamType, IParamType>(_view.ReturnValues(), BaseTypeAdapter.V2C, BaseTypeAdapter.C2V));
 }
Exemple #4
0
 public System.AddIn.Contract.IListContract <Calculator.Contracts.IOperationContract> GetOperations()
 {
     return(CollectionAdapters.ToIListContract <AddInView.Operation, Calculator.Contracts.IOperationContract>(_view.Operations, OperationViewToContractAddInAdapter.ViewToContractAdapter, OperationViewToContractAddInAdapter.ContractToViewAdapter));
 }
Exemple #5
0
 public IListContract <IPort> GetAllPorts()
 {
     return(CollectionAdapters.ToIListContract <VPort, IPort>(_view.GetAllPorts(), PortAdapter.V2C, PortAdapter.C2V));
 }
Exemple #6
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));
 }
Exemple #7
0
 public IListContract <IOperationContract> GetOperations()
 {
     return(CollectionAdapters.ToIListContract <Operation, IOperationContract>(view.GetOperations(),
                                                                               OperationViewToContractAddInAdapter.ViewToContractAdapter,
                                                                               OperationViewToContractAddInAdapter.ContractToViewAdapter));
 }
Exemple #8
0
 public IListContract <long> GetResourceUsage()
 {
     return(CollectionAdapters.ToIListContract <long>(_view.GetResourceUsage()));
 }
Exemple #9
0
 public IListContract <string> GetChangedAttributes()
 {
     return(CollectionAdapters.ToIListContract <string>(view.GetChangedAttributes()));
 }
Exemple #10
0
 public IListContract <Guid> GetObjectClassId()
 {
     return(CollectionAdapters.ToIListContract <Guid>(view.GetObjectClassId()));
 }
Exemple #11
0
 public override void AsyncReturn(string roleName, string opName, IList <VParamType> retVals, VPort p, VCapability respCap)
 {
     _contract.AsyncReturn(roleName, opName,
                           CollectionAdapters.ToIListContract <VParamType, IParamType>(retVals, BaseTypeAdapter.V2C, BaseTypeAdapter.C2V),
                           PortAdapter.V2C(p), CapabilityAdapter.V2C(respCap));
 }
Exemple #12
0
 public IListContract <IOperation> GetOperations()
 {
     return(CollectionAdapters.ToIListContract <VOperation, IOperation>(_view.GetOperations(),
                                                                        OperationAdapter.V2C, OperationAdapter.C2V));
 }
Exemple #13
0
 public IListContract <IRole> GetRoles()
 {
     return(CollectionAdapters.ToIListContract <VRole, IRole>(_view.GetRoles(), RoleAdapter.V2C, RoleAdapter.C2V));
 }