public FeatureWriter(Assembly assembly) { _assemblyName = assembly.GetName(); _releaseVersion = assembly.GetBuildVersion(); _path = string.Format("{0}-{1}-features.csv", _assemblyName.Name, _releaseVersion); new FileInfo(_path).Delete(); }
private FeatureWriter GetWriter(Assembly assembly) { var key = assembly.GetName().Name + "-" + assembly.GetBuildVersion(); if (_writers.ContainsKey(key)) return _writers[key]; var writer = new FeatureWriter(assembly); _writers.Add(key, writer); return writer; }