Skip to content

Instantly share code, notes, and snippets.

View kareem613's full-sized avatar

Kareem Sultan kareem613

  • Async Services Inc.
  • Ottawa, Canada
View GitHub Profile
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace AzureFunctionApp
{
@kareem613
kareem613 / part1.cs
Created September 11, 2012 04:10
blog post 2010/03/27/auto-gen-jquery-access-to-wcf-rest
internal static string GenerateJqueryJs()
{
ServiceEndpointCollection endpoints =
OperationContext.Current.Host.Description.Endpoints;
OperationDescriptionCollection operations = null;
Type contract = null;
ServiceEndpoint currentEndpoint =
endpoints.Where(e > e.Contract.Name ==
OperationContext.Current.EndpointDispatcher.ContractName).FirstOrDefault();