public static Guanwu.Notify.Views.PipelineEvent[] ContractToViewAdapter(Guanwu.Notify.PipelineEvent[] contract)
 {
     if ((contract == null))
     {
         return(null);
     }
     Guanwu.Notify.Views.PipelineEvent[] result = new Guanwu.Notify.Views.PipelineEvent[contract.Length];
     for (int i = 0; (i < contract.Length); i = (i + 1))
     {
         result[i] = Guanwu.Notify.HostSideAdapters.PipelineEventHostAdapter.ContractToViewAdapter(contract[i]);
     }
     return(result);
 }
 public void RaisedEvent(Guanwu.Notify.Views.PipelineEvent pEvent)
 {
     _contract.RaisedEvent(Guanwu.Notify.AddInSideAdapters.PipelineEventAddInAdapter.ViewToContractAdapter(pEvent));
 }
 public static Guanwu.Notify.PipelineEvent ViewToContractAdapter(Guanwu.Notify.Views.PipelineEvent view)
 {
     return(new Guanwu.Notify.PipelineEvent(view.Id, view.Sender, view.EventName, System.AddIn.Pipeline.CollectionAdapters.ToIListContract <string>(view.EventArgs)));
 }
Пример #4
0
 public void RaisingEvent(Guanwu.Notify.Views.PipelineEvent pEvent)
 {
     _contract.RaisingEvent(Guanwu.Notify.HostSideAdapters.PipelineEventHostAdapter.ViewToContractAdapter(pEvent));
 }