public ActAsRestfulie(IAcceptHeaderToMediaType acceptHeader, IContentTypeToMediaType contentType, IRequestInfoFinderFactory requestInfoFactory, IResultChooser choose, IUnmarshallerResolver unmarshallerResolver) { this.acceptHeader = acceptHeader; this.contentType = contentType; this.requestInfoFactory = requestInfoFactory; this.choose = choose; this.unmarshallerResolver = unmarshallerResolver; }
public ActAsRestfulie() { var mediaTypesList = ConfigurationStore.Get().MediaTypeList; acceptHeader = new AcceptHeaderToMediaType(mediaTypesList); contentType = new ContentTypeToMediaType(mediaTypesList); requestInfoFactory = new RequestInfoFinderFactory(); unmarshallerResolver = new UnmarshallerResolver(new AcceptPostPutAndPatchVerbs()); choose = new ResultChooser(); }