C# 클래스 Bloom.ImageProcessing.ImageServer

This is a local http server which just serves up images. Its job is to take the original image and lower it to screen resolution, because gecko was having so much trouble dealing with hi-res images intended for print publications. While this could have been accomplished just making the img src attribute point to an alternate destination on disk, I did it this way so that we can generate lo-res images in an asynchronous fashion, which will degrade nicely on slower machines. That is, the browser is happy to show the picture later, when it is ready, if it is comming from an http request. In constrast, a file:// is just there or not there... no async about it. Hints To check what's in the url access control list on Vista and up: netsh http show urlacl on XP: httpcfg query urlacl nb: had trouble with 8080. Remember to enable this with (windows 7 up): netsh http add urlacl url=http://localhost:8089/bloom user=everyone on Windows XP, use httpcfg. I haven't tested this, but I think it may be: HTTPCFG set urlacl -u http://+:8089/bloom/ /a D:(A;;GX;;;WD)
상속: Bloom.Api.ServerBase
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

공개 메소드들

메소드 설명
ImageServer ( RuntimeImageProcessor cache ) : System

보호된 메소드들

메소드 설명
Dispose ( bool fDisposing ) : void
IsImageTypeThatCanBeDegraded ( string path ) : bool
ProcessRequest ( IRequestInfo info ) : bool

비공개 메소드들

메소드 설명
IsImageTypeThatCanBeReturned ( string path ) : bool

메소드 상세

Dispose() 보호된 메소드

protected Dispose ( bool fDisposing ) : void
fDisposing bool
리턴 void

ImageServer() 공개 메소드

public ImageServer ( RuntimeImageProcessor cache ) : System
cache RuntimeImageProcessor
리턴 System

IsImageTypeThatCanBeDegraded() 보호된 정적인 메소드

protected static IsImageTypeThatCanBeDegraded ( string path ) : bool
path string
리턴 bool

ProcessRequest() 보호된 메소드

protected ProcessRequest ( IRequestInfo info ) : bool
info IRequestInfo
리턴 bool