示例#1
0
 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(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();
 }
示例#4
0
        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();
        }