Skip to content

Instantly share code, notes, and snippets.

View karthikeyanVK's full-sized avatar
🎯
Focusing

Karthikeyan VK karthikeyanVK

🎯
Focusing
View GitHub Profile
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs.Host;
using MigrateFunctionServices;
namespace MigrateAzurefuncapp
{
public class PostValuesHttpTrigger
{
@karthikeyanVK
karthikeyanVK / function.json
Created March 21, 2018 13:27
function app GetValuesHttpTrigger json
{
"scriptFile": "..\\bin\\MigrateAzurefuncapp.dll",
"entryPoint": "MigrateAzurefuncapp.GetValuesHttpTrigger.Run",
"bindings": [
{
"authLevel": "function",
"name": "req",
"type": "httpTrigger",
"direction": "in"
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using MigrateFunctionServices;
namespace MigrateAzurefuncapp
{
public static class GetValuesHttpTrigger
{
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req)
{
"id": "1e91ab32e8754da4942269a95e157be0",
"queues": {
"maxPollingInterval": 2000,
"visibilityTimeout": "00:00:30",
"batchSize": 2,
"maxDequeueCount": 5,
"newBatchThreshold": 1
},
"functionTimeout": "00:10:00"
@karthikeyanVK
karthikeyanVK / appsettings.json
Created March 21, 2018 13:28
function app appsettings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsDashboard": "",
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
},
"ConnectionStrings": {
"defaultConnectionString": "Data Source=(localdb)\\mssqllocaldb;Initial Catalog=defaultConnection;Integrated Security=True;MultipleActiveResultSets=True"
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Logging;
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet"
},
"connectionStrings": {
"defaultConnection": {
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using PetShop.Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Linq.Expressions;
using System.Text;