Exemple #1
0
        public static bool TryGetOrAdd(string engineKey, out FluentEngineBase engine, Func <FluentEngineBase> addAction)
        {
            if (engines.TryGetValue(engineKey, out engine))
            {
                return(true);
            }

            return(engines.TryAdd(engineKey, addAction()) && TryGet(engineKey, out engine));
        }
Exemple #2
0
 public static bool TryGet(string engineKey, out FluentEngineBase engine) =>
 engines.TryGetValue(engineKey, out engine);