Example #1
0
 public WhatShapeIsThisResponse WhatShapeIsThis(WhatShapeIsThisRequest request)
 {
     if (request == null)
     {
         throw new FaultException <ArgumentNullException>(new ArgumentNullException("request"), "null arguments are invalid");
     }
     return(new WhatShapeIsThisResponse(TrianglesManager.GetType(request.a, request.b, request.c)));
 }
Example #2
0
 public async Task <WhatShapeIsThisResponse> WhatShapeIsThisAsync(WhatShapeIsThisRequest request)
 {
     if (request == null)
     {
         throw new FaultException <ArgumentNullException>(new ArgumentNullException("request"), "null arguments are invalid");
     }
     return(await Task.Run <WhatShapeIsThisResponse>(() =>
                                                     new WhatShapeIsThisResponse(TrianglesManager.GetType(request.a, request.b, request.c))
                                                     ));
 }