I have tried the code below for catching EC2 Instance ,but its not working public class Startup { public void Configure(IApplicationBuilder app, IApplicationLifetime application