Skip to content

Instantly share code, notes, and snippets.

@ChrisMissal
Created March 12, 2011 02:32
Show Gist options
  • Save ChrisMissal/866977 to your computer and use it in GitHub Desktop.
Save ChrisMissal/866977 to your computer and use it in GitHub Desktop.
This is an example of how to use the AssemblyProvider within a Controller.
var assemblyProvider = new AssemblyProvider(yourAssembly);
var assembly = assemblyProvider.MoveAssembly(destinationFileName);
return new FileStreamResult(assembly.FileStream, "application/octet-stream")
{
FileDownloadName = assembly.Name
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment