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)); } }
// Definition changed. now takes mode arg. Not used in for InMemoryProtocolhandler public override IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode) { return new InMemoryProtocolHandler(); }
/// <summary> Creates an IProtocolHandler for the zone associated with this Transport instance.</summary> public abstract IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode);
// Definition changed. now takes mode arg. Not used in for InMemoryProtocolhandler public override IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode) { return new InMemoryProtocolHandler(); }
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 ); } }
/// <summary> Creates an IProtocolHandler for the zone associated with this Transport instance.</summary> public abstract IProtocolHandler CreateProtocolHandler(AgentMessagingMode mode);