public static TView ContractToViewAdapter <TView>(ContractHandle contract, PipelineStoreLocation location) { if (location != PipelineStoreLocation.ApplicationBase) { throw new ArgumentException(Res.InvalidPipelineStoreLocation, "location"); } System.Diagnostics.Contracts.Contract.EndContractBlock(); String appBase = AddInStore.GetAppBase(); return(ContractToViewAdapterImpl <TView>(contract, appBase, false)); }