Sets the active site.
The current site is normally determined by the HttpRequest module. However if the API is instantiated outside a Http request, it is possible to specify the current site using this methods.
This method is rarely used and should be used with caution.
Situations where this method can be used are: an event from a FileWatcher object or a background thread.
Context Class | Sitecore Namespace