public static string GetCodeFullPath(StubberOption config, string outputName) { var path = $"{outputName}.txt"; if (!string.IsNullOrEmpty(config.CodeFilePathPrefix)) { path = Path.Combine(config.CodeFilePathPrefix, path); } return(path); }
public DefaultOutputter(IOptions <StubberOption> options) { _config = options.Value; }
public DefaultProcessor(IMemoryCache cache, IOptions <StubberOption> options) { _cache = cache; _config = options.Value; }