Ejemplo n.º 1
0
 internal static Start9.Api.Contracts.IMessageContract ViewToContractAdapter(Start9.Api.IMessage view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IMessageContractToViewAddInAdapter)))
     {
         return(((IMessageContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IMessageViewToContractAddInAdapter(view));
     }
 }
Ejemplo n.º 2
0
 public IMessageViewToContractAddInAdapter(Start9.Api.IMessage view)
 {
     _view = view;
 }
 public void PushMessage(Start9.Api.IMessage message)
 {
     _contract.PushMessage(Start9.Api.AddInSideAdapters.IMessageAddInAdapter.ViewToContractAdapter(message));
 }