Exemplo n.º 1
0
        public FeatureWriter(Assembly assembly)
        {
            _assemblyName = assembly.GetName();
            _releaseVersion = assembly.GetBuildVersion();
            _path = string.Format("{0}-{1}-features.csv", _assemblyName.Name, _releaseVersion);

            new FileInfo(_path).Delete();
        }
Exemplo n.º 2
0
        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;
        }