웹 서비스가 실행 중이고 Spring.NET이 IoCness로 사용됩니다. 클래스 중 하나는로드 할 때 (나는 AfterPropertiesSet
을 사용하고) 어떤 것들은 ContextRegistry.GetContext()
에 대한 호출을 포함하여 몇 가지 작업을 수행해야합니다. 컨텍스트가 완전히 생성되면 알림을 내가 그 개체가 자신을 등록 할 수 있습니다 방법Spring.NET 루트 컨텍스트가로드 된시기는 어떻게 알 수 있습니까?
if (rootContextCurrentlyInCreation)
{
throw new InvalidOperationException("root context is currently in creation. You must not call ContextRegistry.GetContext() from e.g. constructors of your singleton objects");
}
: 문제는 ContextRegistry
클래스에서이 코드?