Beispiel #1
0
        public IHttpActionResult FederationRequest([FromBody] FederationRequestDTO federationRequest)
        {
            // If the request is null
            if (federationRequest == null)
            {
                logger.Warn("Empty federation request");
                return(Content(HttpStatusCode.BadRequest, "Empty federation request"));
            }

            logger.Debug(string.Format("Received Federation Request: {0}", federationRequest.ToXMLString()));
            DEv1_0 de = DEUtilities.DeserializeDE(federationRequest.DEXMLElement.ToString());

            FederateDE(de, federationRequest.FedURIs);
            return(this.StatusCode(HttpStatusCode.Accepted));
        }
Beispiel #2
0
 public IHttpActionResult TimeMeOut([FromBody] FederationRequestDTO federationRequest)
 {
     Thread.Sleep(10000);
     return(this.StatusCode(HttpStatusCode.Accepted));
 }