Пример #1
0
        private PongResponse PingImplementation(PingRequest request)
        {
            runAssertions(request.SIFHeader);

             if(request.SIFHeader.SourceId== "Olympus" )
            {
                DataModelErrorType error = new DataModelErrorType();
                error.Category = InfrastructureErrorCategoryType.Item11;
                error.Code = "1";
                error.ExtendedDesc = "This server hates every 3rd Ping and will throw an error";
                error.Desc = "Generic Ping Error";
                throw new FaultException<DataModelErrorType>(error, "Olympus is the enemy of SIF");
            }

            return genericOKResponse();
        }
Пример #2
0
        private PongResponse PingImplementation(PingRequest request)
        {
            runAssertions(request.SIFHeader);

            if (request.SIFHeader.SourceId == "Olympus")
            {
                DataModelErrorType error = new DataModelErrorType();
                error.Category     = InfrastructureErrorCategoryType.Item11;
                error.Code         = "1";
                error.ExtendedDesc = "This server hates every 3rd Ping and will throw an error";
                error.Desc         = "Generic Ping Error";
                throw new FaultException <DataModelErrorType>(error, "Olympus is the enemy of SIF");
            }

            return(genericOKResponse());
        }