Пример #1
0
 public override IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode)
 {
     if (mode == AgentMessagingMode.Pull)
     {
         return(new HttpPullProtocolHandler(this));
     }
     else
     {
         if (sServer == null)
         {
             throw new AdkException("HttpTransport is not Activated", null);
         }
         return(new AdkHttpPushProtocolHandler((AdkHttpApplicationServer)sServer, this));
     }
 }
Пример #2
0
 //  Definition changed. now takes mode arg. Not used in for InMemoryProtocolhandler
 public override IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode)
 {
     return new InMemoryProtocolHandler();
 }
Пример #3
0
 /// <summary>  Creates an IProtocolHandler for the zone associated with this Transport instance.</summary>
 public abstract IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode);
Пример #4
0
 //  Definition changed. now takes mode arg. Not used in for InMemoryProtocolhandler
 public override IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode)
 {
    return new InMemoryProtocolHandler();
 }
Пример #5
0
 public override IProtocolHandler CreateProtocolHandler( AgentMessagingMode mode )
 {
     if ( mode == AgentMessagingMode.Pull )
     {
         return new HttpPullProtocolHandler( this );
     }
     else
     {
         if ( sServer == null )
         {
             throw new AdkException( "HttpTransport is not Activated", null );
         }
         return new AdkHttpPushProtocolHandler( (AdkHttpApplicationServer) sServer, this );
     }
 }
Пример #6
0
 /// <summary>  Creates an IProtocolHandler for the zone associated with this Transport instance.</summary>
 public abstract IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode);