public IProtocolHandler Activate(ZoneImpl zone) { // Activate the transport used by the zone ITransport trans = GetTransport(zone.Properties.TransportProtocol); trans.Activate(zone); return(trans.CreateProtocolHandler(zone.Properties.MessagingMode)); }
/// <summary> /// Initializes the enabled agent transports /// </summary> /// <param name="agent"></param> /// <exception cref="AdkTransportException">If the ADK is configured improperly</exception> public void Activate(Agent agent) { // Initialize each transport supported by the ADK foreach (String protocol in Adk.TransportProtocols) { TransportProperties tp = GetDefaultTransportProperties(protocol); if (tp.Enabled) { ITransport transport = GetTransport(protocol); transport.Activate(agent); } } }