71 references to GetDomain
mscorlib (34)
system\appdomain.cs (1)
2107return Thread.GetDomain();
system\io\isolatedstorage\isolatedstorage.cs (2)
575domain = Thread.GetDomain(); 629domain = Thread.GetDomain();
system\runtime\interopservices\marshal.cs (1)
1639Assembly[] aAssemblies = Thread.GetDomain().GetAssemblies();
system\runtime\interopservices\typelibconverter.cs (2)
137AppDomain currentDomain = Thread.GetDomain(); 233AppDomain currentDomain = Thread.GetDomain();
system\runtime\remoting\activationservices.cs (5)
81DomainSpecificRemotingData remData = Thread.GetDomain().RemotingData; 889DomainSpecificRemotingData remData = Thread.GetDomain().RemotingData; 906Thread.GetDomain().RemotingData.ActivationListener, 933DomainSpecificRemotingData remData = Thread.GetDomain().RemotingData; 952DomainSpecificRemotingData remData = Thread.GetDomain().RemotingData;
system\runtime\remoting\channelservices.cs (2)
83get { return Thread.GetDomain().RemotingData.ChannelServicesData.remoteCalls; } 84set { Thread.GetDomain().RemotingData.ChannelServicesData.remoteCalls = value; }
system\runtime\remoting\context.cs (2)
117DomainSpecificRemotingData data = Thread.GetDomain().RemotingData; 201return Thread.GetDomain().GetDefaultContext();
system\runtime\remoting\crossappdomainchannel.cs (4)
39get { return Thread.GetDomain().RemotingData.ChannelServicesData.xadmessageSink; } 40set { Thread.GetDomain().RemotingData.ChannelServicesData.xadmessageSink = value; } 107Thread.GetDomain().GetId(), 216(Thread.GetDomain().GetId() == _DomainID);
system\runtime\remoting\crosscontextchannel.cs (2)
35get { return Thread.GetDomain().RemotingData.ChannelServicesData.xctxmessageSink; } 36set { Thread.GetDomain().RemotingData.ChannelServicesData.xctxmessageSink = value; }
system\runtime\remoting\identityholder.cs (3)
82_cachedDefaultContext = Thread.GetDomain().GetDefaultContext(); 103get { return Thread.GetDomain().RemotingData.IDTableLock;} 113Thread.GetDomain().RemotingData.IDTableLock.IsWriterLockHeld,
system\runtime\remoting\leasemanager.cs (3)
43DomainSpecificRemotingData remotingData = Thread.GetDomain().RemotingData; 51DomainSpecificRemotingData remotingData = Thread.GetDomain().RemotingData; 70DomainSpecificRemotingData remotingData = Thread.GetDomain().RemotingData;
system\runtime\remoting\remotingservices.cs (3)
303Object configLock = Thread.GetDomain().RemotingData.ConfigLock; 430serverCtx = Thread.GetDomain().GetDefaultContext(); 2272domainId = Thread.GetDomain().GetId();
system\string.cs (2)
3340return Thread.GetDomain().GetOrInternString(str); 3352return Thread.GetDomain().IsStringInterned(str);
system\threading\thread.cs (2)
1404principal = GetDomain().GetThreadPrincipal(); 1490return GetDomain().GetId();
System (2)
compmod\microsoft\win32\SystemEvents.cs (1)
562if (Thread.GetDomain().GetData(".appDomain") != null) {
net\System\Net\Internal.cs (1)
708IsAspNetServer = (Thread.GetDomain().GetData(".appDomain") != null);
System.Runtime.Caching (2)
System\Caching\MemoryCache.cs (2)
183AppDomain appDomain = Thread.GetDomain(); 415AppDomain appDomain = Thread.GetDomain();
System.ServiceModel (1)
System\ServiceModel\ComIntegration\EmitterCache.cs (1)
49assemblyBuilder = Thread.GetDomain().DefineDynamicAssembly(assemblyName, AssemblyBuilderAccess.Run);
System.Web (28)
Compilation\BuildManagerHost.cs (2)
580Thread.GetDomain().DomainUnload += _onAppDomainUnload; 599Thread.GetDomain().DomainUnload -= _onAppDomainUnload;
Compilation\BuildResultCache.cs (1)
943AppDomainSetup appDomainSetup = Thread.GetDomain().SetupInformation;
Configuration\ExpressServerConfig.cs (1)
35if (Thread.GetDomain().IsDefaultAppDomain()) {
Configuration\serverconfig.cs (2)
44if (Thread.GetDomain().IsDefaultAppDomain() || (s_iisExpressVersion != null && s_iisExpressVersion != value )) 114if (!Thread.GetDomain().IsDefaultAppDomain()) {
Hosting\HostingEnvironment.cs (3)
190Thread.GetDomain().DomainUnload += _onAppDomainUnload; 195Thread.GetDomain().UnhandledException += new UnhandledExceptionEventHandler(ApplicationManager.OnUnhandledException); 235Thread.GetDomain().DomainUnload -= _onAppDomainUnload;
Hosting\IIS7WorkerRequest.cs (1)
126if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Infrastructure)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_APPDOMAIN_ENTER, this, Thread.GetDomain().FriendlyName);
Hosting\ISAPIWorkerRequest.cs (2)
1055if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Infrastructure)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_APPDOMAIN_ENTER, ecb, Thread.GetDomain().FriendlyName, null, false); 1069if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Infrastructure)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_APPDOMAIN_ENTER, ecb, Thread.GetDomain().FriendlyName, null, true);
Hosting\SimpleWorkerRequest.cs (3)
381_appPhysPath = Thread.GetDomain().GetData(".appPath").ToString(); 382_appVirtPath = Thread.GetDomain().GetData(".appVPath").ToString(); 399if (Thread.GetDomain().GetData(".appPath") != null) {
HttpRuntime.cs (6)
871AppDomain appDomain = Thread.GetDomain(); 992_codegenDir = Thread.GetDomain().DynamicDirectory; 1000AppDomain appDomain = Thread.GetDomain(); 1892AppDomain.Unload(Thread.GetDomain()); 3069Object x = Thread.GetDomain().GetData(key); 3076AppDomain d = Thread.GetDomain();
Management\WebEvents.cs (1)
1876_appDomain = Thread.GetDomain().FriendlyName;
State\OutOfProcStateClientManager.cs (2)
120Thread.GetDomain().DomainUnload += s_onAppDomainUnload; 128Thread.GetDomain().DomainUnload -= s_onAppDomainUnload;
State\sqlstateclientmanager.cs (2)
157Thread.GetDomain().DomainUnload += s_onAppDomainUnload; 166Thread.GetDomain().DomainUnload -= s_onAppDomainUnload;
Util\FactoryGenerator.cs (1)
129Thread.GetDomain().DefineDynamicAssembly(assemblyName,
Util\FastPropertyAccessor.cs (1)
95Thread.GetDomain().DefineDynamicAssembly(assemblyName,
System.Web.Mobile (1)
UI\MobileControls\FactoryGenerator.cs (1)
143Thread.GetDomain().DefineDynamicAssembly(assemblyName,
System.Web.Services (2)
System\Web\Services\Configuration\WebServicesSection.cs (2)
66if (Thread.GetDomain().GetData(".appDomain") != null) { 169if (Thread.GetDomain().GetData(".appDomain") != null) {
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
50AppDomain currentDomain = Thread.GetDomain();