private CommandClientAdapter GetOrCreateClientAdapter(Sce.Atf.Applications.ICommandClient client) { CommandClientAdapter adapter; if (!m_clientAdapters.TryGetValue(client, out adapter)) { adapter = new CommandClientAdapter(client); lock (m_clientAdapters) { m_clientAdapters.Add(client, adapter); } } return(adapter); }
private CommandClientAdapter GetOrCreateClientAdapter(Sce.Atf.Applications.ICommandClient client) { CommandClientAdapter adapter; if (!m_clientAdapters.TryGetValue(client, out adapter)) { adapter = new CommandClientAdapter(client); lock (m_clientAdapters) { m_clientAdapters.Add(client, adapter); } } return adapter; }