public IPluginObjectContractToViewAddInAdapter(Guanwu.Notify.IPluginObjectContract contract) { _contract = contract; _handle = new System.AddIn.Pipeline.ContractHandle(contract); OnMessageReceived_Handler = new Guanwu.Notify.AddInSideAdapters.IPipelineMessageEventHandlerViewToContractAddInAdapter(this, s_MessageReceivedEventAddFire); OnMessagePersisting_Handler = new Guanwu.Notify.AddInSideAdapters.IPipelineMessageEventHandlerViewToContractAddInAdapter(this, s_MessagePersistingEventAddFire); OnMessagePersisted_Handler = new Guanwu.Notify.AddInSideAdapters.IPipelineMessageEventHandlerViewToContractAddInAdapter(this, s_MessagePersistedEventAddFire); OnEventRaising_Handler = new Guanwu.Notify.AddInSideAdapters.IPipelineEventEventHandlerViewToContractAddInAdapter(this, s_EventRaisingEventAddFire); OnEventRaised_Handler = new Guanwu.Notify.AddInSideAdapters.IPipelineEventEventHandlerViewToContractAddInAdapter(this, s_EventRaisedEventAddFire); }
internal static Guanwu.Notify.Views.IPluginObject ContractToViewAdapter(Guanwu.Notify.IPluginObjectContract contract) { if ((contract == null)) { return(null); } if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) && contract.GetType().Equals(typeof(IPluginObjectViewToContractAddInAdapter)))) { return(((IPluginObjectViewToContractAddInAdapter)(contract)).GetSourceView()); } else { return(new IPluginObjectContractToViewAddInAdapter(contract)); } }
public virtual void Initialize(Guanwu.Notify.IPluginObjectContract pluginObject) { _view.Initialize(Guanwu.Notify.HostSideAdapters.IPluginObjectHostAdapter.ContractToViewAdapter(pluginObject)); }