In code, you initialize the NHibernateProfiler with this call:
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();
Is there a way to determine if a profile has been initialized or not? I was looking for something like:
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.IsInitialized()
But to no avail (I wasn't really expecting this to work since the call is against a class, not an object).
Does such an API call exist?
不,此选项不可用,因为几乎不需要它,主要是因为您应该在应用程序的最开始就初始化探查器。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.