C# Class 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)
Inheritance: Bloom.Api.ServerBase
Afficher le fichier Open project: BloomBooks/BloomDesktop Class Usage Examples

Méthodes publiques

Méthode Description
ImageServer ( RuntimeImageProcessor cache ) : System

Méthodes protégées

Méthode Description
Dispose ( bool fDisposing ) : void
IsImageTypeThatCanBeDegraded ( string path ) : bool
ProcessRequest ( IRequestInfo info ) : bool

Private Methods

Méthode Description
IsImageTypeThatCanBeReturned ( string path ) : bool

Method Details

Dispose() protected méthode

protected Dispose ( bool fDisposing ) : void
fDisposing bool
Résultat void

ImageServer() public méthode

public ImageServer ( RuntimeImageProcessor cache ) : System
cache RuntimeImageProcessor
Résultat System

IsImageTypeThatCanBeDegraded() protected static méthode

protected static IsImageTypeThatCanBeDegraded ( string path ) : bool
path string
Résultat bool

ProcessRequest() protected méthode

protected ProcessRequest ( IRequestInfo info ) : bool
info IRequestInfo
Résultat bool