public RoslynProjectCompiler( ICache cache, ICacheContextAccessor cacheContextAccessor, INamedCacheDependencyProvider namedCacheProvider, IAssemblyLoadContext loadContext, IApplicationEnvironment environment, IServiceProvider services) { _compiler = new RoslynCompiler( cache, cacheContextAccessor, namedCacheProvider, loadContext, environment, services); }
public PostSharpProjectCompiler( ICache cache, ICacheContextAccessor cacheContextAccessor, INamedCacheDependencyProvider namedCacheProvider, IAssemblyLoadContext loadContext, IApplicationEnvironment environment, IServiceProvider services) { _services = services; _compiler = new RoslynCompiler( cache, cacheContextAccessor, namedCacheProvider, loadContext, environment, services); _cache = cache; _workingDirectory = cache.Get<string>("PostSharp.Dnx.WorkingDirectory", cacheContext => Path.Combine(Path.GetTempPath(), "PostSharp.Dnx", Guid.NewGuid().ToString())); Task.Run(() => PurgeWorkingDirectories()); CreateWorkingDirectory(); }