title: Run webpage C# function on visitors CPU?
body: <p>What is a good way to run a time-consuming function from a C# webpage on the users CPU instead of running it on the web-server? Is it possible to get a C# function to run locally or do I have to write the function in JavaScript? The function itself is not secret in any way but I would prefer if the input and the output will be kept secret from the user. The solution should not require the user to download anything.</p>
  
  <p>This functions uses data from the database + user input and when it's finished it writes the output to the database.</p>
  
  <p>The functions best case is ~1s, average ~30s and worst ~10min (for every user) so it's not an option to run this function on the web-server.</p>