public void Handler(Tivo.Has.Contracts.IApplicationEndedEventArgs args)
 {
     Tivo.Has.HostSideAdapters.ApplicationEndedEventArgsContractToViewHostAdapter adaptedArgs;
     adaptedArgs = new Tivo.Has.HostSideAdapters.ApplicationEndedEventArgsContractToViewHostAdapter(args);
     object[] argsArray = new object[1];
     argsArray[0] = adaptedArgs;
     _event.Invoke(_view, argsArray);
 }
 internal static Tivo.Has.ApplicationEndedEventArgs ContractToViewAdapter(Tivo.Has.Contracts.IApplicationEndedEventArgs contract)
 {
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) &&
          contract.GetType().Equals(typeof(ApplicationEndedEventArgsViewToContractAddInAdapter))))
     {
         return(((ApplicationEndedEventArgsViewToContractAddInAdapter)(contract)).GetSourceView());
     }
     else
     {
         return(new ApplicationEndedEventArgsContractToViewAddInAdapter(contract));
     }
 }
Пример #3
0
 public ApplicationEndedEventArgsContractToViewHostAdapter(Tivo.Has.Contracts.IApplicationEndedEventArgs contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
 }