public TAnalyzable Get <TAnalyzable>(params object[] parameters) where TAnalyzable : IAnalyzable { var cacheKey = $"{typeof(TAnalyzable).Name}#{string.Join("|", parameters)}"; IAnalyzable analyzable() => AnalyzableFactory.CreateAnalyzable <TAnalyzable, TInput>(BackingList, parameters); return((TAnalyzable)_cache.GetOrAdd(cacheKey, analyzable)); }
public TAnalyzable Get <TAnalyzable>(params object[] parameters) where TAnalyzable : IAnalyzable => (TAnalyzable)_cache.GetOrAdd($"{typeof(TAnalyzable).Name}#{string.Join("|", parameters)}", AnalyzableFactory.CreateAnalyzable <TAnalyzable, TInput>(BackingList, parameters));