I could be wrong, but i don't think the .net application has anything to do with the availability group. That would have to do with your SQL server configuration and the environment that it's installed on. I can't find anything that says you need to do something special on the application side to work with it, SQL Server should manage this feature itself.