Created
March 12, 2011 02:32
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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