This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
| ## Firewall Policy and network rules over CLI | |
| # Variables: | |
| Commands to create a networking rule with Firewall Policy: | |
| #Create firewall rules | |
| fwpolicyname=NewPolicyTest #Firewall Policy Name | |
| rg=FW-Policies # Set your Resource Group |
| using Microsoft.AspNetCore.Mvc; | |
| using Twilio.AspNet.Core.MinimalApi; | |
| using Twilio.TwiML; | |
| var builder = WebApplication.CreateBuilder(args); | |
| var app = builder.Build(); | |
| app.MapGet("/", () => "Hello World!"); | |
| app.MapGet("/sms", ([FromQuery] string from, [FromQuery] string body) => |
This document now exists on the official ASP.NET core docs page.
| private static void SqlDataReaderToCSV(SqlDataReader reader, string path) | |
| { | |
| using (StreamWriter writer = new StreamWriter(path)) | |
| { | |
| string[] headers = new string[reader.FieldCount]; | |
| for (int i = 0; i < reader.FieldCount; i++) | |
| { | |
| headers[i] = string.format("{0}", reader.GetName(i)); | |
| } | |
| writer.WriteLine(string.Join(",", headers)); |
| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |