private ISessionAuthInventoryService GetConnector(string url) { InventoryServicesConnector connector = null; lock (m_connectors) { if (m_connectors.ContainsKey(url)) { connector = m_connectors[url]; } else { // We're instantiating this class explicitly, but this won't // work in general, because the remote grid may be running // an inventory server that has a different protocol. // Eventually we will want a piece of protocol asking // the remote server about its kind. Definitely cool thing to do! connector = new InventoryServicesConnector(url); m_connectors.Add(url, connector); } } return(connector); }
protected override void Init(IConfigSource source) { m_RemoteConnector = new InventoryServicesConnector(source); base.Init(source); }
private ISessionAuthInventoryService GetConnector(string url) { InventoryServicesConnector connector = null; lock (m_connectors) { if (m_connectors.ContainsKey(url)) { connector = m_connectors[url]; } else { // We're instantiating this class explicitly, but this won't // work in general, because the remote grid may be running // an inventory server that has a different protocol. // Eventually we will want a piece of protocol asking // the remote server about its kind. Definitely cool thing to do! connector = new InventoryServicesConnector(url); m_connectors.Add(url, connector); } } return connector; }
private void Init(IConfigSource source) { m_RemoteConnector = new InventoryServicesConnector(source); }