public IPluginObjectViewToContractAddInAdapter(Guanwu.Notify.Views.IPluginObject view)
 {
     _view = view;
     OnMessageReceived_handlers   = new System.Collections.Generic.Dictionary <Guanwu.Notify.IPipelineMessageEventHandlerContract, System.EventHandler <Guanwu.Notify.Views.PipelineMessageEventArgs> >();
     OnMessagePersisting_handlers = new System.Collections.Generic.Dictionary <Guanwu.Notify.IPipelineMessageEventHandlerContract, System.EventHandler <Guanwu.Notify.Views.PipelineMessageEventArgs> >();
     OnMessagePersisted_handlers  = new System.Collections.Generic.Dictionary <Guanwu.Notify.IPipelineMessageEventHandlerContract, System.EventHandler <Guanwu.Notify.Views.PipelineMessageEventArgs> >();
     OnEventRaising_handlers      = new System.Collections.Generic.Dictionary <Guanwu.Notify.IPipelineEventEventHandlerContract, System.EventHandler <Guanwu.Notify.Views.PipelineEventEventArgs> >();
     OnEventRaised_handlers       = new System.Collections.Generic.Dictionary <Guanwu.Notify.IPipelineEventEventHandlerContract, System.EventHandler <Guanwu.Notify.Views.PipelineEventEventArgs> >();
 }
 internal static Guanwu.Notify.IPluginObjectContract ViewToContractAdapter(Guanwu.Notify.Views.IPluginObject view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IPluginObjectContractToViewAddInAdapter)))
     {
         return(((IPluginObjectContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IPluginObjectViewToContractAddInAdapter(view));
     }
 }
 public void Initialize(Guanwu.Notify.Views.IPluginObject pluginObject)
 {
     _contract.Initialize(Guanwu.Notify.HostSideAdapters.IPluginObjectHostAdapter.ViewToContractAdapter(pluginObject));
 }