internal static Tivo.Has.IHmeStream ContractToViewAdapter(Tivo.Has.Contracts.IHmeStreamContract contract) { if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) && contract.GetType().Equals(typeof(IHmeStreamViewToContractHostAdapter)))) { return(((IHmeStreamViewToContractHostAdapter)(contract)).GetSourceView()); } else { return(new IHmeStreamContractToViewHostAdapter(contract)); } }
public virtual Tivo.Has.Contracts.IHmeConnectionContract CreateHmeConnection(Tivo.Has.Contracts.IHmeApplicationIdentityContract identity, string baseUri, Tivo.Has.Contracts.IHmeStreamContract inputStream, Tivo.Has.Contracts.IHmeStreamContract outputStream) { return(Tivo.Has.HostSideAdapters.IHmeConnectionHostAdapter.ViewToContractAdapter(_view.CreateHmeConnection(Tivo.Has.HostSideAdapters.IHmeApplicationIdentityHostAdapter.ContractToViewAdapter(identity), baseUri, Tivo.Has.HostSideAdapters.IHmeStreamHostAdapter.ContractToViewAdapter(inputStream), Tivo.Has.HostSideAdapters.IHmeStreamHostAdapter.ContractToViewAdapter(outputStream)))); }
public IHmeStreamContractToViewAddInAdapter(Tivo.Has.Contracts.IHmeStreamContract contract) { _contract = contract; _handle = new System.AddIn.Pipeline.ContractHandle(contract); }