コード例 #1
0
 internal static PipelineBuilder.Samples.Events.ISampleAddIn ContractToViewAdapter(PipelineBuilder.Samples.Events.Contracts.ISampleAddInContract contract)
 {
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) &&
          contract.GetType().Equals(typeof(ISampleAddInViewToContractHostAdapter))))
     {
         return(((ISampleAddInViewToContractHostAdapter)(contract)).GetSourceView());
     }
     else
     {
         return(new ISampleAddInContractToViewHostAdapter(contract));
     }
 }