public object Any(HelloAuth request) { var response = new HelloResponse { Result = "Hello, " + request.Name }; return(response); }
public object Any(HelloAuth request) { Debug.Write(HttpContext.Current.User.Identity.Name); var x = new HelloResponse { Result = "Hello, {0}!".Fmt(request.Name) }; var identity = (ClaimsIdentity)HttpContext.Current.User.Identity; var claims = identity.Claims; x.Claims = new List<string>(); foreach (var claim in claims) { x.Claims.Add(claim.Type+" : "+claim.Value); } return x; }
public object Any(HelloAuth request) { Debug.Write(HttpContext.Current.User.Identity.Name); var x = new HelloResponse { Result = "Hello, {0}!".Fmt(request.Name) }; var identity = (ClaimsIdentity)HttpContext.Current.User.Identity; var claims = identity.Claims; x.Claims = new List <string>(); foreach (var claim in claims) { x.Claims.Add(claim.Type + " : " + claim.Value); } return(x); }
public object Any(HelloAuth request) { return(new HelloResponse { Result = "Hello, " + request.Name }); }
public object Any(HelloAuth request) { var response = new HelloResponse { Result = "Hello, " + request.Name }; return response; }