public Assembly Compile(ControllerDescriptor controllerDescriptor) => _assemblyCache.GetOrSet(controllerDescriptor, stream => { Assembly asm = _inner.Compile(controllerDescriptor); if (stream != null) { asm.SaveAs(stream); } return(asm); });