AzureTunnel.Client.Web.Controllers.RelayController.Index C# (CSharp) Method

Index() public method

public Index ( TwilioRequestViewModel vm ) : System.Web.Mvc.ActionResult
vm AzureTunnel.TwilioRequestViewModel
return System.Web.Mvc.ActionResult
        public ActionResult Index(TwilioRequestViewModel vm)
        {
            var cf = new ChannelFactory<IAzureTunnelServiceChannel>("relay");
            using (var ch = cf.CreateChannel())
            {
                vm.Method = Request.HttpMethod;

                string result = ch.Relay(vm);
                return Content(result, "application/xml");
            }
        }
RelayController