[Opensim-dev] IClientAPI vs ???

Melanie melanie at t-data.com
Mon Jun 8 19:16:28 UTC 2009


Hi,

basically, IClientAPI is fine to reference in anything that will run 
in the context of a region only. The important part here is that 
non-region servers (e.g. server shells) have no client api. Anything 
that hard-refs IClientAPI implementations or needs to be passed one 
to work will fail in that context. Although the interface itself is 
in Framework and therefore known, no implementations are available 
in those contexts, so code depending on them will not work.

IClientAPI is used extensively in core as well as region modules. As 
a possible alternative, you may want to consider the lighter 
IClientCore, however, it's mostly unimplemented. Regardless, neither 
one of these is available to code unless run in a region server.

Melanie


Michael Cortez wrote:
> On more then one occasion it's been brought to my attention that 
> creating references to/with IClientAPI is bad and should be avoided.  At 
> other times, I've seen people instructed that they should use it instead 
> of doing X, Y or Z.
> 
> I would like to try and get a consensus of those with commit access, to 
> determine if/when IClientAPI should be :
> 1) avoided at all costs
> 2) avoided when there isn't much extra work
> 3) used because there's no significant reason to avoid it
> 
> And if your recommending 1 or 2, what alternatives do you suggest for 
> obtaining information about the Agent that the IClientAPI currently 
> provides.  Using 1 or 2 will sometimes create additional dependencies on 
> other systems.
> 
> Thanks,
> --
> Michael Cortez
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
> 
> 



More information about the Opensim-dev mailing list