public Byte[] GetSpeciesAssembly(string name, string version)
{
if (name == null || version == null) {
// Special versioning case, if all parameters are not specified then we return an appropriate error.
InstallerInfo.WriteEventLog("GetSpeciesAssembly", "Suspect: " + Context.Request.ServerVariables["REMOTE_ADDR"].ToString());
return null;
}
version = new Version(version).ToString(3);
try {
byte[] species = LoadAssembly(version, name + ".dll");
return species;
} catch (Exception e) {
InstallerInfo.WriteEventLog("GetSpeciesAssembly", e.ToString());
return null;
}
}