コード例 #1
0
 public HttpResponseMessage AnonymousPing()
 {
     PingResult ping = new PingResult();
     ping.Success = true;
     ping.UserName = User.Identity.Name;
     ping.Message = "Bulk User Delete Anonymous Ping Return Result [" + User.Identity.Name + "]";
     ping.WasAuthorised = User.Identity.IsAuthenticated; 
     return Request.CreateResponse(HttpStatusCode.OK, ping);
 }
コード例 #2
0
        public HttpResponseMessage AnonymousPing()
        {
            PingResult ping = new PingResult();

            ping.Success       = true;
            ping.UserName      = User.Identity.Name;
            ping.Message       = "Bulk User Delete Anonymous Ping Return Result [" + User.Identity.Name + "]";
            ping.WasAuthorised = User.Identity.IsAuthenticated;
            return(Request.CreateResponse(HttpStatusCode.OK, ping));
        }
コード例 #3
0
 public HttpResponseMessage AdministratorPing()
 {
     PingResult ping = new PingResult();
     ping.Success = true;
     ping.Message = "Bulk User Delete Authenticated Ping Return Result [" + User.Identity.Name + "]";
     ping.StackTrace = null;
     ping.Error = null;
     ping.UserName = User.Identity.Name;
     ping.WasAuthorised = User.Identity.IsAuthenticated;
     return Request.CreateResponse(HttpStatusCode.OK, ping);
 }
コード例 #4
0
        public HttpResponseMessage AdministratorPing()
        {
            PingResult ping = new PingResult();

            ping.Success       = true;
            ping.Message       = "Bulk User Delete Authenticated Ping Return Result [" + User.Identity.Name + "]";
            ping.StackTrace    = null;
            ping.Error         = null;
            ping.UserName      = User.Identity.Name;
            ping.WasAuthorised = User.Identity.IsAuthenticated;
            return(Request.CreateResponse(HttpStatusCode.OK, ping));
        }