C# Class WhiteCore.Modules.Web.WebHttpTextureService

Inheritance: IService, IWebHttpTextureService
Mostra file Open project: WhiteCoreSim/WhiteCore-Dev

Protected Properties

Property Type Description
_gridNick string
_registry IRegistryCore
_server IHttpServer

Public Methods

Method Description
FinishedStartup ( ) : void
GetAvatarImageURL ( string imageURL ) : string
GetImageURL ( string imageURL ) : string
GetRegionWorldViewURL ( UUID RegionID ) : string
GetTextureURL ( UUID textureID ) : string
Initialize ( IConfigSource config, IRegistryCore registry ) : void
OnHTTPGetAvatarImage ( string path, Stream request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse ) : byte[]
OnHTTPGetImage ( string path, Stream request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse ) : byte[]
OnHTTPGetTextureImage ( string path, Stream request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse ) : byte[]
Start ( IConfigSource config, IRegistryCore registry ) : void

Private Methods

Method Description
GetEncoderInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo
ResizeBitmap ( Image b, int nWidth, int nHeight ) : Bitmap

Method Details

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

GetAvatarImageURL() public method

public GetAvatarImageURL ( string imageURL ) : string
imageURL string
return string

GetImageURL() public method

public GetImageURL ( string imageURL ) : string
imageURL string
return string

GetRegionWorldViewURL() public method

public GetRegionWorldViewURL ( UUID RegionID ) : string
RegionID UUID
return string

GetTextureURL() public method

public GetTextureURL ( UUID textureID ) : string
textureID UUID
return string

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

OnHTTPGetAvatarImage() public method

public OnHTTPGetAvatarImage ( string path, Stream request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

OnHTTPGetImage() public method

public OnHTTPGetImage ( string path, Stream request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

OnHTTPGetTextureImage() public method

public OnHTTPGetTextureImage ( string path, Stream request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

Property Details

_gridNick protected_oe property

protected string _gridNick
return string

_registry protected_oe property

protected IRegistryCore _registry
return IRegistryCore

_server protected_oe property

protected IHttpServer _server
return IHttpServer