public ClientValidationsEndpoint(
     IStringResponseWritter stringResponseWritter,
     IJavascriptSourcePerformer javascriptSourcePerformer,
     IHttpRequestProcessor <IHttpEndpoint <string> > httpRequestProcessor,
     IGetHttpMethod getHttpMethod)
 {
     HttpRequestDescriptor = new GenericRequestDescriptor
     {
         HttpMethod       = getHttpMethod,
         RouteDescription = "assets/javascript/service-validation.js"
     };
     HttpRequestProcessor = httpRequestProcessor;
     Performer            = javascriptSourcePerformer;
     ResponseWritter      = stringResponseWritter;
 }
Example #2
0
 public ServiceEndpointBootstrapper(IJsonResponseWritter <TResponse> jsonResponseWritter, IGetHttpMethod getHttpMethod)
 {
     _jsonResponseWritter = jsonResponseWritter;
     _getHttpMethod       = getHttpMethod;
 }