public void OnDeserialization(object sender) { slot = Thread.AllocateNamedDataSlot("CastlePerThread"); instances = new ArrayList(); } }