427 references to CurrentDomain
mscorlib (130)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (1)
550if (!Environment.HasShutdownStarted && !AppDomain.CurrentDomain.IsFinalizingForUnload())
system\activator.cs (7)
315if (securityInfo != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 381if (securityInfo != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 433Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled || securityInfo == null); 489if (securityAttributes != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 560if (securityAttributes != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 601AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager; 610AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager;
system\AppContext\AppContext.cs (4)
51return (string) AppDomain.CurrentDomain.GetData("APP_CONTEXT_BASE_DIRECTORY") ?? AppDomain.CurrentDomain.BaseDirectory; 60return AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName; 69return AppDomain.CurrentDomain.GetData(name);
system\AppContext\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
system\appdomain.cs (13)
1037HostSecurityManager securityManager = AppDomain.CurrentDomain.HostSecurityManager; 1127ObjectHandle oh = Activator.CreateInstance(AppDomain.CurrentDomain.ActivationContext); 1144AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager; 1192CurrentDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(ResolveAssemblyForIntrospection); 3364if (creationEvidence != null && !CurrentDomain.IsLegacyCasPolicyEnabled) 3375Zone creatorsZone = CurrentDomain.EvidenceNoDemand.GetHostEvidence<Zone>(); 3426info.TargetFrameworkName = AppDomain.CurrentDomain.GetTargetFrameworkName(); 3428AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager; 3447securityInfo == null ? AppDomain.CurrentDomain.InternalEvidence : null, 3448AppDomain.CurrentDomain.GetSecurityDescriptor()); 3636HostSecurityManager hsm = CurrentDomain.DomainManager != null ? CurrentDomain.DomainManager.HostSecurityManager : null; 3747AppDomain ad = AppDomain.CurrentDomain;
system\appdomainmanager.cs (6)
84AppDomain.CurrentDomain.GetAppDomainManagerType(out inheritedDomainManagerAssembly, 97appDomainInfo.TargetFrameworkName = AppDomain.CurrentDomain.GetTargetFrameworkName(); 102securityInfo == null ? AppDomain.CurrentDomain.InternalEvidence : null, 103AppDomain.CurrentDomain.GetSecurityDescriptor()); 167AppDomain domain = AppDomain.CurrentDomain; 186return AppDomain.CurrentDomain.DomainManager;
system\applicationactivator.cs (7)
134if (CmsUtils.CompareIdentities(AppDomain.CurrentDomain.ActivationContext, activationContext)) { 135ManifestRunner runner = new ManifestRunner(AppDomain.CurrentDomain, activationContext); 142AppDomainSetup currentDomainSetup = AppDomain.CurrentDomain.SetupInformation; 158Evidence activatorEvidence = AppDomain.CurrentDomain.Evidence; 165HostSecurityManager securityManager = AppDomain.CurrentDomain.HostSecurityManager; 175appEvidence == null ? AppDomain.CurrentDomain.InternalEvidence : null, 176AppDomain.CurrentDomain.GetSecurityDescriptor());
system\bcldebug.cs (9)
122if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize()) 136if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize()) 165if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize()) 212if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize()) 225if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize()) 242if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize()) 353if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize()) 377if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize()) 425if (AppDomain.CurrentDomain.IsUnloadingForcedFinalize())
system\compatibilityswitches.cs (1)
46bool? result = AppDomain.CurrentDomain.IsCompatibilitySwitchSet(compatibilitySwitch);
system\diagnostics\eventing\eventsource.cs (2)
4416AppDomain.CurrentDomain.ProcessExit += DisposeOnShutdown; 4417AppDomain.CurrentDomain.DomainUnload += DisposeOnShutdown;
system\io\isolatedstorage\isolatedstorage.cs (1)
641ActivationContext activationContext = AppDomain.CurrentDomain.ActivationContext;
system\io\isolatedstorage\isolatedstoragefile.cs (1)
1628ActivationContext activationContext = AppDomain.CurrentDomain.ActivationContext;
system\reflection\assembly.cs (6)
553if (securityEvidence != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 606if (securityEvidence != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 662AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager; 1702if (securityEvidence != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 1831if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 2014if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
system\reflection\emit\assemblybuilder.cs (2)
560if (evidence != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 569return new AssemblyBuilder(AppDomain.CurrentDomain,
system\reflection\emit\dynamicilgenerator.cs (2)
762!AppDomain.CurrentDomain.IsFinalizingForUnload()) 789!AppDomain.CurrentDomain.IsFinalizingForUnload())
system\reflection\loaderallocator.cs (1)
54!AppDomain.CurrentDomain.IsFinalizingForUnload())
system\resources\resourcemanager.cs (1)
1519String fileName = AppDomain.CurrentDomain.FusionStore.ConfigurationFileInternal;
system\runtime\designerservices\windowsruntimedesignercontext.cs (3)
72if (!AppDomain.CurrentDomain.IsDefaultAppDomain()) 106if (!AppDomain.CurrentDomain.IsDefaultAppDomain()) 127if (!AppDomain.CurrentDomain.IsDefaultAppDomain())
system\runtime\interopservices\gchandlecookietable.cs (2)
166byte ADID = (byte)(AppDomain.CurrentDomain.Id % 0xFF); 192byte ADID = (byte)(AppDomain.CurrentDomain.Id % 0xFF);
system\runtime\interopservices\typelibconverter.cs (1)
599string asmName = AppDomain.CurrentDomain.ApplyPolicy(args.Name);
system\runtime\interopservices\windowsruntime\custompropertyimpl.cs (1)
128Contract.Assert(AppDomain.CurrentDomain.PermissionSet.IsUnrestricted());
system\runtime\remoting\channelservices.cs (1)
163AppDomain.CurrentDomain.DomainUnload += new EventHandler(UnloadHandler);
system\runtime\remoting\messagesmuggler.cs (1)
90objRef.SetDomainID(AppDomain.CurrentDomain.GetId());
system\runtime\remoting\remotingservices.cs (1)
1847objref.SetDomainID(AppDomain.CurrentDomain.GetId());
system\runtime\serialization\objectclonehelper.cs (1)
75objRef.SetDomainID(AppDomain.CurrentDomain.GetId());
system\runtime\versioning\binarycompatibility.cs (1)
492String targetFrameworkName = AppDomain.CurrentDomain.GetTargetFrameworkName();
system\runtime\versioning\resourceattributes.cs (1)
145safeName.Append(AppDomain.CurrentDomain.Id);
system\security\codeaccesssecurityengine.cs (9)
644if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 707ApplicationTrust domainTrust = AppDomain.CurrentDomain.SetupInformation.ApplicationTrust; 716if (CompatibilitySwitches.IsNetFx40LegacySecurityPolicy || AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 733Contract.Assert(!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); // This API does not do CAS policy resolution 766HostSecurityManager securityManager = AppDomain.CurrentDomain.HostSecurityManager; 788if (AppDomain.CurrentDomain.IsHomogenous) 799PermissionSet homogenousGrantSet = AppDomain.CurrentDomain.ApplicationTrust.DefaultGrantSet.PermissionSet; 813else if (AppDomain.CurrentDomain.IsHomogenous) 815grantSet = AppDomain.CurrentDomain.GetHomogenousGrantSet(evidence);
system\security\framesecuritydescriptor.cs (1)
155BCLDebug.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled, "Deny is only valid in legacy CAS mode");
system\security\hostsecuritymanager.cs (7)
66if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 131if (AppDomain.CurrentDomain.ApplicationTrust != null && 132CmsUtils.CompareIdentities(AppDomain.CurrentDomain.ApplicationTrust.ApplicationIdentity, activationArgs.ApplicationIdentity, ApplicationVersionMatch.MatchExactVersion)) 134appTrust = AppDomain.CurrentDomain.ApplicationTrust; 175else if (AppDomain.CurrentDomain.IsHomogenous) 177return AppDomain.CurrentDomain.GetHomogenousGrantSet(evidence); 179else if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
system\security\permissionset.cs (1)
2370AppDomain.CurrentDomain.SetAppDomainPolicy( level );
system\security\policy\appdomainevidencefactory.cs (2)
25Contract.Assert(target == AppDomain.CurrentDomain, "AppDomainEvidenceFactory should not be used across domains."); 56BCLDebug.Assert(m_targetDomain == AppDomain.CurrentDomain, "AppDomainEvidenceFactory should not be used across domains.");
system\security\policy\applicationsecuritymanager.cs (1)
44AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager;
system\security\policy\assemblyevidencefactory.cs (2)
131Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); 230HostSecurityManager securityManager = AppDomain.CurrentDomain.HostSecurityManager;
system\security\policy\evidence.cs (6)
257if (AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 529if (AppDomain.CurrentDomain.DomainManager != null) 531HostSecurityManager hsm = AppDomain.CurrentDomain.DomainManager.HostSecurityManager; 1317hostEvidence = AppDomain.CurrentDomain.HostSecurityManager.GenerateAppDomainEvidence(type); 1321hostEvidence = AppDomain.CurrentDomain.HostSecurityManager.GenerateAssemblyEvidence(type, targetAssembly); 1330string hostType = AppDomain.CurrentDomain.HostSecurityManager.GetType().FullName;
system\security\policymanager.cs (3)
82BCLDebug.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled, "We're about to apply policy in a policy disabled app"); 91Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); 108bool legacyIgnoreSystemPolicy = (AppDomain.CurrentDomain.GetData("IgnoreSystemPolicy") != null);
system\security\securitymanager.cs (13)
171if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 245if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 261if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 273if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 290if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 354if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 371if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 383if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 396if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 414Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); 437Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); 502BCLDebug.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled, "Evaluating assembly level declarative security without legacy CAS policy enabled"); 513BCLDebug.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled, "Evaluating assembly level declarative security without legacy CAS policy enabled");
system\security\securityruntime.cs (1)
181if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
system\threading\overlapped.cs (1)
186Contract.Assert(m_AppDomainId == 0 || m_AppDomainId == AppDomain.CurrentDomain.Id, "OverlappedData is not in the current domain");
system\threading\Tasks\AsyncCausalityTracer.cs (1)
291return (((ulong)AppDomain.CurrentDomain.Id) << 32) + taskId;
system\threading\Tasks\TaskExceptionHolder.cs (2)
85AppDomain.CurrentDomain.DomainUnload += s_adUnloadEventHandler; 104!Environment.HasShutdownStarted && !AppDomain.CurrentDomain.IsFinalizingForUnload() && !s_domainUnloadStarted)
system\threading\threadpool.cs (1)
925if (!(Environment.HasShutdownStarted || AppDomain.CurrentDomain.IsFinalizingForUnload()))
system\threading\timer.cs (1)
767if (Environment.HasShutdownStarted || AppDomain.CurrentDomain.IsFinalizingForUnload())
PresentationBuildTasks (5)
BuildTasks\MS\Internal\Tasks\TaskHelper.cs (1)
379appDomain = AppDomain.CreateDomain("markupCompilationAppDomain", null, AppDomain.CurrentDomain.SetupInformation);
Framework\System\Windows\Markup\XamlTypeMapper.cs (2)
449AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += _areh; 457AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve -= _areh;
Shared\System\Windows\Markup\ReflectionHelper.cs (2)
544Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); 598Assembly[] assemblies = AppDomain.CurrentDomain.ReflectionOnlyGetAssemblies();
PresentationCore (11)
Core\CSharp\MS\Internal\AppModel\SiteOfOriginContainer.cs (2)
62siteOfOrigin = BaseUriHelper.FixFileUri(new Uri(System.AppDomain.CurrentDomain.BaseDirectory)); 296AppDomain currentDomain = AppDomain.CurrentDomain;
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (3)
117AppDomain.CurrentDomain.ProcessExit -= _helper.ProcessExitHandler; 936AppDomain.CurrentDomain.ProcessExit += _helper.ProcessExitHandler; 975Uri appBase = SecurityHelper.GetBaseDirectory(AppDomain.CurrentDomain);
Shared\MS\Internal\AppDomainShutdownMonitor.cs (2)
29AppDomain.CurrentDomain.DomainUnload += OnShutdown; 30AppDomain.CurrentDomain.ProcessExit += OnShutdown;
Shared\MS\Internal\SafeSecurityHelper.cs (1)
184Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
Shared\MS\Internal\SecurityHelper.cs (3)
375PermissionSet permissionSetAppDomain = AppDomain.CurrentDomain.PermissionSet; 403return psToCheck.IsSubsetOf(AppDomain.CurrentDomain.PermissionSet); 557PermissionSet permissionSetAppDomain = AppDomain.CurrentDomain.PermissionSet;
PresentationFramework (18)
parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (2)
212if (!AppDomain.CurrentDomain.IsDefaultAppDomain()) 240Invariant.Assert(AppDomain.CurrentDomain.FriendlyName == "XamlViewer");
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (11)
205if (AppDomain.CurrentDomain.SetupInformation.ActivationArguments != null && 206AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData.Length > index) 208if (AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData[index] == true.ToString()) 226if (AppDomain.CurrentDomain.SetupInformation.ActivationArguments != null && 227AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData.Length > index) 229if (!string.IsNullOrEmpty(AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData[index])) 231uri = new UriBuilder(AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData[index]).Uri; 281if (AppDomain.CurrentDomain.ActivationContext != null && 282AppDomain.CurrentDomain.ActivationContext.Identity.ToString().Equals(actCtx.Identity.ToString())) 298return new ObjectHandle(AppDomain.CurrentDomain); 347AppDomain.CurrentDomain.AssemblyLoad += new AssemblyLoadEventHandler(_assemblyFilter.FilterCallback);
src\Framework\MS\Internal\AppModel\ResourceContainer.cs (1)
230AppDomain.CurrentDomain.AssemblyLoad += new AssemblyLoadEventHandler(OnAssemblyLoadEventHandler);
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
112.AddHandler(AppDomain.CurrentDomain, "UnhandledException", ProcessUnhandledException);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
1169AppDomain.CurrentDomain.UnhandledException += this.ProcessUnhandledException;
src\Framework\System\Windows\Markup\XmlnsCache.cs (1)
200Assembly[] asmList = AppDomain.CurrentDomain.GetAssemblies();
SMDiagnostics (1)
System\ServiceModel\Diagnostics\LegacyDiagnosticTrace.cs (1)
205values["AppDomain.FriendlyName"] = AppDomain.CurrentDomain.FriendlyName;
SMSvcHost (4)
System\ServiceModel\Activation\Diagnostics\ListenerPerfCounters.cs (3)
54AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ListenerPerfCounters.ExitOrUnloadEventHandler); 55AppDomain.CurrentDomain.DomainUnload += new EventHandler(ListenerPerfCounters.ExitOrUnloadEventHandler); 56AppDomain.CurrentDomain.ProcessExit += new EventHandler(ListenerPerfCounters.ExitOrUnloadEventHandler);
System\ServiceModel\Activation\SMSvcHost.cs (1)
94AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
System (28)
compmod\microsoft\win32\SystemEvents.cs (5)
390Convert.ToString(AppDomain.CurrentDomain.GetHashCode(), 16), 753AppDomain.CurrentDomain.ProcessExit += new EventHandler(SystemEvents.Shutdown); 754AppDomain.CurrentDomain.DomainUnload += new EventHandler(SystemEvents.Shutdown); 1287if (checkFinalization && AppDomain.CurrentDomain.IsFinalizingForUnload()) { 1640if (!checkFinalization || !AppDomain.CurrentDomain.IsFinalizingForUnload()) {
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (3)
93string rawFile = (string)AppDomain.CurrentDomain.SetupInformation.LicenseFile; 101codeBase = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; 121foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) {
net\System\Net\_AutoWebProxyScriptWrapper.cs (1)
504AppDomain.CurrentDomain.DomainUnload += new EventHandler(OnDomainUnload);
net\System\Net\_NetworkingPerfCounters.cs (4)
210AppDomain.CurrentDomain.DomainUnload += new EventHandler(UnloadEventHandler); 211AppDomain.CurrentDomain.ProcessExit += new EventHandler(ExitEventHandler); 212AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ExceptionEventHandler); 358string friendlyName = ReplaceInvalidChars(AppDomain.CurrentDomain.FriendlyName);
net\System\Net\_TimerThread.cs (1)
185AppDomain.CurrentDomain.DomainUnload += new EventHandler(OnDomainUnload);
net\System\Net\Configuration\UriSection.cs (2)
161appConfigFilePath = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile; 246string appVPath = AppDomain.CurrentDomain.GetData(".appVPath") as string;
net\System\Net\Internal.cs (1)
90return Environment.HasShutdownStarted || AppDomain.CurrentDomain.IsFinalizingForUnload();
net\System\Net\Logging.cs (1)
214AppDomain currentDomain = AppDomain.CurrentDomain;
net\System\Net\NetworkInformation\TeredoHelper.cs (1)
53AppDomain.CurrentDomain.DomainUnload += new EventHandler(OnAppDomainUnload);
net\System\Net\WebSockets\ClientWebSocket.cs (1)
540if (AppDomain.CurrentDomain.IsFullyTrusted)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (1)
550if (!Environment.HasShutdownStarted && !AppDomain.CurrentDomain.IsFinalizingForUnload())
regex\system\text\regularexpressions\Regex.cs (1)
390AppDomain ad = AppDomain.CurrentDomain;
regex\system\text\regularexpressions\RegexCompiler.cs (1)
3097_assembly = AppDomain.CurrentDomain.DefineDynamicAssembly(an, AssemblyBuilderAccess.RunAndSave, assemblyAttributes);
sys\system\configuration\ApplicationSettingsBase.cs (2)
673ActivationContext actCtx = AppDomain.CurrentDomain.ActivationContext; 675if (IsClickOnceDeployed(AppDomain.CurrentDomain)) {
sys\system\configuration\LocalFileSettingsProvider.cs (1)
425bool roamingSupported = !ApplicationSettingsBase.IsClickOnceDeployed(AppDomain.CurrentDomain);
sys\system\configuration\SettingsPropertyValue.cs (1)
92return AppDomain.CurrentDomain.GetData(".appDomain") != null;
System.Activities (4)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (2)
240AppDomain.CurrentDomain.AssemblyLoad += OnAssemblyLoaded; 242Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
System\Activities\Debugger\StateManager.cs (1)
701assemblyBuilder = AppDomain.CurrentDomain.DefineDynamicAssembly(assemblyName, AssemblyBuilderAccess.Run, null, true, new CustomAttributeBuilder[] { transparent });
System\Activities\Expressions\AssemblyReference.cs (1)
169Assembly[] currentAssemblies = AppDomain.CurrentDomain.GetAssemblies();
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\RegisterMetadataDelayedWorker.cs (2)
39AppDomain.CurrentDomain.AssemblyLoad += this.onAssemblyLoadedEventHandler; 54foreach (Assembly loadedAssembly in AppDomain.CurrentDomain.GetAssemblies())
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (2)
69foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) 86return AppDomain.CurrentDomain.GetAssemblies().Where<Assembly>(assembly => !assembly.IsDynamic);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
1472object data = AppDomain.CurrentDomain.GetData(dataObjectKey); 1478AppDomain.CurrentDomain.SetData(dataObjectKey, null);
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
114AppDomain.CurrentDomain.AssemblyLoad -= this.proxy.OnAssemblyLoad; 719AppDomain.CurrentDomain.AssemblyLoad += this.proxy.OnAssemblyLoad;
System.AddIn (31)
System\Addin\Hosting\ActivationWorker.cs (3)
50AppDomain.CurrentDomain.AssemblyResolve -= _assemblyResolver; 126AppDomain.CurrentDomain.AssemblyResolve += _assemblyResolver; 150foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
System\Addin\Hosting\AddInActivator.cs (8)
78return AppDomain.CurrentDomain.PermissionSet; 119AppDomain.CurrentDomain.Evidence, setup, permissionSet, 309bool usingHostAppDomain = domain == AppDomain.CurrentDomain; 402AppDomain.CurrentDomain.AssemblyResolve += assemblyResolver; 421AppDomain.CurrentDomain.AssemblyResolve -= assemblyResolver; 533AppDomain.CurrentDomain.AssemblyResolve += assemblyResolver; 549AppDomain.CurrentDomain.AssemblyResolve -= assemblyResolver; 586foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies()) {
System\Addin\Hosting\AddInEnvironment.cs (1)
39if (appDomain != AppDomain.CurrentDomain && !Utils.HasFullTrust()) {
System\Addin\Hosting\AddInServer.cs (3)
61AppDomain.CurrentDomain.Evidence, setup, permissionSet, 141AppDomain.CurrentDomain.SetData(ContractHandle.s_appDomainOwner, contract); 175AppDomain.Unload(AppDomain.CurrentDomain);
System\Addin\Hosting\AddInStore.cs (1)
1134return AppDomain.CurrentDomain.BaseDirectory;
System\Addin\Hosting\AddInToken.cs (1)
279if (target != AppDomain.CurrentDomain && !Utils.HasFullTrust())
System\Addin\Hosting\InspectionWorker.cs (3)
172return Assembly.ReflectionOnlyLoad(AppDomain.CurrentDomain.ApplyPolicy(assemblyRef)); 203AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += assemblyResolver; 328AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve -= assemblyResolver;
System\Addin\Hosting\Utils.cs (1)
207foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies()) {
System\Addin\MiniReflection\MiniAssembly.cs (5)
219return AppDomain.CurrentDomain.ApplyPolicy(_reflectionAssembly.FullName); 224_fullName = AppDomain.CurrentDomain.ApplyPolicy(assemblyInfo.ToString()); 260nameA = AppDomain.CurrentDomain.ApplyPolicy(assemblyA._reflectionAssembly.FullName); 265nameA = AppDomain.CurrentDomain.ApplyPolicy(assemblyInfoA.ToString()); 269nameRefB = AppDomain.CurrentDomain.ApplyPolicy(assemblyInfoB.ToString());
System\Addin\Pipeline\ContractBase.cs (5)
130IContract owner = ContractHandle.AppDomainOwner(AppDomain.CurrentDomain); 162IContract owner = ContractHandle.AppDomainOwner(AppDomain.CurrentDomain); 214AppDomain.Unload(AppDomain.CurrentDomain); 228AppDomain.Unload(AppDomain.CurrentDomain); 236Trace.WriteLine(String.Format(System.Globalization.CultureInfo.CurrentCulture, Res.FailedToUnloadAppDomain, AppDomain.CurrentDomain.FriendlyName, ex.Message));
System.ComponentModel.DataAnnotations (4)
DataAnnotations\EmailAddressAttribute.cs (1)
62if (AppDomain.CurrentDomain.GetData("REGEX_DEFAULT_MATCH_TIMEOUT") == null) {
DataAnnotations\PhoneAttribute.cs (1)
77if (AppDomain.CurrentDomain.GetData("REGEX_DEFAULT_MATCH_TIMEOUT") == null) {
DataAnnotations\UrlAttribute.cs (1)
55if (AppDomain.CurrentDomain.GetData("REGEX_DEFAULT_MATCH_TIMEOUT") == null) {
parent\parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
System.Configuration (7)
System\Configuration\BaseConfigurationRecord.cs (2)
280if (AppDomain.CurrentDomain.IsHomogenous) 283_restrictedPermissions = AppDomain.CurrentDomain.PermissionSet;
System\Configuration\ClientConfigPaths.cs (5)
79AppDomain domain = AppDomain.CurrentDomain; 163if (this.IsClickOnceDeployed(AppDomain.CurrentDomain)) { 164string dataPath = AppDomain.CurrentDomain.GetData(ClickOnceDataDirectory) as string; 182string validAppDomainName = Validate(AppDomain.CurrentDomain.FriendlyName, true); 185string hashSuffix = GetTypeAndHashSuffix(AppDomain.CurrentDomain, applicationUriLower);
System.Core (3)
Microsoft\Scripting\Actions\CallSiteBinder.cs (1)
146if (!AppDomain.CurrentDomain.IsHomogenous) {
Microsoft\Scripting\Compiler\AssemblyGen.cs (1)
95_myAssembly = AppDomain.CurrentDomain.DefineDynamicAssembly(name, AssemblyBuilderAccess.Run, attributes);
System\Diagnostics\EventSchemaTraceListener.cs (1)
89 this.fileName = Path.Combine(Path.GetDirectoryName(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile), this.fileName);
System.Data (18)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\VisualStudio\Activities\WorkflowDesignerExtensionManager.cs (2)
171AppDomain.CurrentDomain.AssemblyResolve += this.ExtensionAssemblyResolver; 189AppDomain.CurrentDomain.AssemblyResolve -= this.ExtensionAssemblyResolver;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (2)
69foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) 86return AppDomain.CurrentDomain.GetAssemblies().Where<Assembly>(assembly => !assembly.IsDynamic);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
1472object data = AppDomain.CurrentDomain.GetData(dataObjectKey); 1478AppDomain.CurrentDomain.SetData(dataObjectKey, null);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
114AppDomain.CurrentDomain.AssemblyLoad -= this.proxy.OnAssemblyLoad; 719AppDomain.CurrentDomain.AssemblyLoad += this.proxy.OnAssemblyLoad;
fx\src\bid\inc\cs\bidPrivateBase.cs (2)
859string name = AppDomain.CurrentDomain.FriendlyName; 861name = "AppDomain.H" + AppDomain.CurrentDomain.GetHashCode();
fx\src\data\System\Data\Common\DbConnectionOptions.cs (2)
392object rootFolderObject = AppDomain.CurrentDomain.GetData("DataDirectory"); 398rootFolderPath = AppDomain.CurrentDomain.BaseDirectory;
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (4)
169AppDomain.CurrentDomain.DomainUnload += new EventHandler(this.UnloadEventHandler); 170AppDomain.CurrentDomain.ProcessExit += new EventHandler(this.ExitEventHandler); 171AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(this.ExceptionEventHandler); 236AppDomain appDomain = AppDomain.CurrentDomain;
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (1)
268object partialTrustFlagValue = AppDomain.CurrentDomain.GetData(const_partialTrustFlagKey);
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (1)
107AppDomain.CurrentDomain.DomainUnload += new EventHandler(this.UnloadEventHandler);
System.Data.Entity (6)
System\Data\Common\EntityUtil.cs (1)
2083string fxname = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
System\Data\EntityClient\DbConnectionOptions.cs (2)
110object rootFolderObject = AppDomain.CurrentDomain.GetData("DataDirectory"); 118rootFolderPath = AppDomain.CurrentDomain.BaseDirectory;
System\Data\Metadata\DefaultAssemblyResolver.cs (1)
87Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
85AssemblyBuilder assemblyBuilder = AppDomain.CurrentDomain.DefineDynamicAssembly(assemblyName, s_ProxyAssemblyBuilderAccess, attributeBuilders); 441AppDomain.CurrentDomain.AssemblyResolve += resolveHandler;
System.Data.Linq (1)
Mapping\MappedMetaModel.cs (1)
334foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies()) {
System.Data.Services.Client (1)
System\Data\Services\Client\ClientType.cs (1)
491foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
System.Data.SqlXml (3)
System\Xml\Xsl\IlGen\XmlILModule.cs (2)
59asmBldr = AppDomain.CurrentDomain.DefineDynamicAssembly(asmName, AssemblyBuilderAccess.Run); 131asmBldr = AppDomain.CurrentDomain.DefineDynamicAssembly(
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
348foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) {
System.Drawing (9)
commonui\System\Drawing\Advanced\Gdiplus.cs (4)
139Debug.WriteLineIf(GdiPlusInitialization.TraceVerbose, "Initialize GDI+ [" + AppDomain.CurrentDomain.FriendlyName + "]"); 156AppDomain currentDomain = AppDomain.CurrentDomain; 174Debug.WriteLineIf(GdiPlusInitialization.TraceVerbose, "Shutdown GDI+ [" + AppDomain.CurrentDomain.FriendlyName + "]"); 205AppDomain currentDomain = AppDomain.CurrentDomain;
commonui\System\Drawing\BufferedGraphicsManager.cs (2)
41AppDomain.CurrentDomain.ProcessExit += new EventHandler(BufferedGraphicsManager.OnShutdown); 42AppDomain.CurrentDomain.DomainUnload += new EventHandler(BufferedGraphicsManager.OnShutdown);
commonui\System\Drawing\Graphics.cs (2)
4580AppDomain.CurrentDomain.DomainUnload += new EventHandler(OnDomainUnload); 4582AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnDomainUnload);
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
System.IdentityModel (1)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
System.IO.Compression.FileSystem (1)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
System.IO.Log (1)
System\IO\Log\OverlappedAsyncResult.cs (1)
58!AppDomain.CurrentDomain.IsFinalizingForUnload())
System.Management (2)
Instrumentation\EventSource.cs (2)
207AppDomain.CurrentDomain.ProcessExit += new EventHandler(ProcessExit); 208AppDomain.CurrentDomain.DomainUnload += new EventHandler(ProcessExit);
System.Net (1)
net\Logging.cs (1)
32AppDomain currentDomain = AppDomain.CurrentDomain;
System.Runtime.Caching (1)
System\Caching\PerfCounters.cs (1)
52appId = AppDomain.CurrentDomain.FriendlyName;
System.ServiceModel (16)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
System\ServiceModel\Activation\AspNetEnvironment.cs (2)
88return AppDomain.CurrentDomain.SetupInformation.ConfigurationFile; 360foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
System\ServiceModel\Administration\AppDomainInfo.cs (1)
106singleton = new AppDomainInfo(AppDomain.CurrentDomain);
System\ServiceModel\Administration\WbemProvider.cs (3)
40AppDomain.CurrentDomain.DomainUnload += new EventHandler(ExitOrUnloadEventHandler); 41AppDomain.CurrentDomain.ProcessExit += new EventHandler(ExitOrUnloadEventHandler); 42AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ExitOrUnloadEventHandler);
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3421Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
System\ServiceModel\Channels\MsmqQueue.cs (1)
780&& ! AppDomain.CurrentDomain.IsFinalizingForUnload())
System\ServiceModel\Channels\OverlappedContext.cs (1)
79if (this.nativeOverlapped != null && !AppDomain.CurrentDomain.IsFinalizingForUnload() && !Environment.HasShutdownStarted)
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
1519if (AppDomain.CurrentDomain.IsDefaultAppDomain())
System\ServiceModel\Channels\TcpChannelListener.cs (1)
185static Random randomPortGenerator = new Random(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (1)
29AppDomain currentDomain = AppDomain.CurrentDomain;
System\ServiceModel\Diagnostics\MessageLogger.cs (3)
735AppDomain.CurrentDomain.DomainUnload += new EventHandler(ExitOrUnloadEventHandler); 736AppDomain.CurrentDomain.ProcessExit += new EventHandler(ExitOrUnloadEventHandler); 737AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ExitOrUnloadEventHandler);
System.ServiceModel.Activation (6)
System\ServiceModel\Activation\ServiceHostFactory.cs (1)
84Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (1)
378foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
System\ServiceModel\ServiceHostingEnvironment.cs (4)
290TD.WebHostRequestStart(eventTraceActivity, AppDomain.CurrentDomain.FriendlyName, requestUrl, relatedId); 509AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; 1324Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); 1866Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowControlEndpoint.cs (1)
95appDomainId = AppDomain.CurrentDomain.Id;
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\UdpOutputChannel.cs (1)
55this.randomNumberGenerator = new SynchronizedRandom(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System\ServiceModel\Channels\UdpUtility.cs (1)
165Random randomNumberGenerator = new Random(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System.ServiceModel.Internals (7)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (2)
26protected static string AppDomainFriendlyName = AppDomain.CurrentDomain.FriendlyName; 301AppDomain currentDomain = AppDomain.CurrentDomain;
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
619TraceCore.AppDomainUnload(this, AppDomain.CurrentDomain.FriendlyName,
System\Runtime\IOThreadScheduler.cs (1)
389if (!Environment.HasShutdownStarted && !AppDomain.CurrentDomain.IsFinalizingForUnload())
System\Runtime\PartialTrustHelpers.cs (3)
113return AppDomain.CurrentDomain.IsHomogenous && 114permissions.IsSubsetOf(AppDomain.CurrentDomain.PermissionSet); 135inFullTrust = AppDomain.CurrentDomain.IsFullyTrusted;
System.Transactions (3)
System\Transactions\Trace\DiagnosticTrace.cs (3)
208DiagnosticTrace.AppDomainFriendlyName = AppDomain.CurrentDomain.FriendlyName; 245AppDomain currentDomain = AppDomain.CurrentDomain; 597values["AppDomain.FriendlyName"] = AppDomain.CurrentDomain.FriendlyName;
System.Web (29)
AspNetEventSource.cs (2)
37if (AppDomain.CurrentDomain.IsHomogenous && AppDomain.CurrentDomain.IsFullyTrusted) {
Compilation\BuildManager.cs (1)
395AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(this.ResolveAssembly);
Compilation\BuildManagerHost.cs (1)
72AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(this.ResolveAssembly);
Compilation\BuildResultCache.cs (1)
79AppDomain.CurrentDomain.AssemblyLoad += new AssemblyLoadEventHandler(OnAssemblyLoad);
DataAccess\SqlConnectionHelper.cs (2)
102string dataDir = AppDomain.CurrentDomain.GetData(s_strDataDir) as string; 119AppDomain.CurrentDomain.SetData(s_strDataDir, dataDir, new FileIOPermission(FileIOPermissionAccess.PathDiscovery, dataDir));
FileChangesMonitor.cs (1)
485bool fNeedToSendFileActionDispose = !AppDomain.CurrentDomain.IsFinalizingForUnload();
Hosting\ApplicationManager.cs (6)
105AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException); 125RecordFatalException(AppDomain.CurrentDomain, e); 157if (AppDomain.CurrentDomain.IsDefaultAppDomain() && appManager.FatalExceptionRecorded) { 426return AppDomain.CurrentDomain; 945AppDomain.CurrentDomain.SetData(_configBuildersIgnoreLoadFailuresSwitch, true); 1691Evidence evidence = AppDomain.CurrentDomain.Evidence; // CurrentDomain.Evidence returns a clone so we can modify it if we need
Hosting\BackgroundWorkScheduler.cs (1)
51_logCallback(AppDomain.CurrentDomain, ex); // method shouldn't throw
Hosting\HostingEnvironment.cs (4)
1443return (AppDomain.CurrentDomain.GetData(".devEnvironment") as bool?) == true; 1460if (AppDomain.CurrentDomain.IsDefaultAppDomain()) { 1481_cacheProviderSettings = AppDomain.CurrentDomain.GetData(".defaultObjectCacheProvider") as NameValueCollection; 1977return AppDomain.CurrentDomain;
Hosting\IIS7WorkerRequest.cs (1)
2243AppDomain.CurrentDomain.Id,
Hosting\IPipelineRuntime.cs (1)
447if (requestingAppDomainId != AppDomain.CurrentDomain.Id) {
HttpRuntime.cs (2)
350AppDomain.CurrentDomain.SetData("DataDirectory", dataDirectory, 3231AppDomain.CurrentDomain.SetAppDomainPolicy(policyLevel);
Management\AppDomainResourcePerfCounters.cs (3)
80_TotalCPUTime = AppDomain.CurrentDomain.MonitoringTotalProcessorTime; 111long memInKB = (AppDomain.CurrentDomain.MonitoringSurvivedMemorySize / 1024); // Mem used in KB 118TimeSpan newTotalCPUTime = AppDomain.CurrentDomain.MonitoringTotalProcessorTime;
Util\AppVerifier.cs (1)
117Misc.WriteUnhandledExceptionToEventLog(AppDomain.CurrentDomain, ex); // method won't throw
Util\BinaryCompatibility.cs (1)
23Current = new BinaryCompatibility(AppDomain.CurrentDomain.GetData(TargetFrameworkKey) as FrameworkName);
Util\RegexUtil.cs (1)
56timeoutSetInAppDomain = AppDomain.CurrentDomain.GetData("REGEX_DEFAULT_MATCH_TIMEOUT") != null;
System.Web.Entity.Design (3)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (3)
1027originalDataDirectory = AppDomain.CurrentDomain.GetData(s_dataDirectoryNoPipes) as string; 1028AppDomain.CurrentDomain.SetData(s_dataDirectoryNoPipes, GetDataDirectory()); 1075AppDomain.CurrentDomain.SetData(s_dataDirectoryNoPipes, originalDataDirectory);
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
271AssemblyBuilder assembly = AppDomain.CurrentDomain.DefineDynamicAssembly(name, AssemblyBuilderAccess.Run, assemblyAttributes);
System.Web.Services (7)
System\Web\Services\Diagnostics\TraceUtility.cs (1)
75AppDomain currentDomain = AppDomain.CurrentDomain;
System\Web\Services\PartialTrustHelpers.cs (1)
30isInPartialTrustOutsideAspNet = !(AppDomain.CurrentDomain.IsFullyTrusted || HostingEnvironment.IsHosted);
System\Web\Services\Protocols\RemoteDebugger.cs (2)
91AppDomain.CurrentDomain.DomainUnload += new EventHandler(OnAppDomainUnload); 92AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit);
System\Web\Services\Protocols\SoapServerMethod.cs (1)
255if (AppDomain.CurrentDomain.IsHomogenous) {
System\Web\Services\Protocols\SoapServerProtocol.cs (1)
116if (AppDomain.CurrentDomain.IsHomogenous) {
System\Web\Services\Protocols\XmlReturnReader.cs (1)
51if (AppDomain.CurrentDomain.IsHomogenous)
System.Windows.Forms (19)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
winforms\Managed\System\WinForms\Application.cs (6)
240string data = AppDomain.CurrentDomain.GetData(CLICKONCE_APPS_DATADIRECTORY) as string; 406string data = AppDomain.CurrentDomain.GetData(CLICKONCE_APPS_DATADIRECTORY) as string; 698string data = AppDomain.CurrentDomain.GetData(CLICKONCE_APPS_DATADIRECTORY) as string; 1427string launchUrl = AppDomain.CurrentDomain.GetData("APP_LAUNCH_URL") as string; 2513AppDomain.CurrentDomain.DomainUnload += new EventHandler(OnDomainUnload); 2514AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnDomainUnload);
winforms\Managed\System\WinForms\AxHost.cs (2)
3810if (!AppDomain.CurrentDomain.IsFinalizingForUnload()) { 3899if (!AppDomain.CurrentDomain.IsFinalizingForUnload()) {
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (2)
205domain = AppDomain.CurrentDomain; 218if (domain == AppDomain.CurrentDomain) {
winforms\Managed\System\WinForms\Control.cs (1)
4421AppDomain.CurrentDomain.IsFinalizingForUnload()) {
winforms\Managed\System\WinForms\Form.cs (1)
4267foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies())
winforms\Managed\System\WinForms\Help.cs (1)
370file = new Uri(new Uri(AppDomain.CurrentDomain.SetupInformation.ApplicationBase),
winforms\Managed\System\WinForms\NativeWindow.cs (4)
114AppDomain.CurrentDomain.ProcessExit += shutdownHandler; 115AppDomain.CurrentDomain.DomainUnload += shutdownHandler; 183if (!AppDomain.CurrentDomain.IsFinalizingForUnload() && exitCode == NativeMethods.STATUS_PENDING) { 1559String appDomain = Convert.ToString(AppDomain.CurrentDomain.GetHashCode(), 16);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
191foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) {
System.Workflow.Activities (3)
Rules\Design\Dialogs\RuleConditionDialog.cs (1)
58foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
Rules\Design\Dialogs\RuleSetDialog.cs (1)
62foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
Rules\RuleValidation.cs (1)
829Assembly[] loaded = AppDomain.CurrentDomain.GetAssemblies();
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\XomlCompiler.cs (2)
490AppDomainSetup setup = AppDomain.CurrentDomain.SetupInformation; 706AppDomain.CurrentDomain.AssemblyResolve += resolver.ResolveEventHandler;
System.Workflow.Runtime (7)
DebugEngine\DebugController.cs (7)
281AppDomain.CurrentDomain.ProcessExit += OnDomainUnload; 282AppDomain.CurrentDomain.DomainUnload += OnDomainUnload; 371AppDomain.CurrentDomain.AssemblyLoad -= OnAssemblyLoad; 532AppDomain.CurrentDomain.AssemblyLoad += OnAssemblyLoad; 533foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) 641AppDomain.CurrentDomain.ProcessExit -= OnDomainUnload; 642AppDomain.CurrentDomain.DomainUnload -= OnDomainUnload;
System.WorkflowServices (2)
System\ServiceModel\Activation\WorkflowServiceHostFactory.cs (1)
191foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (1)
26AppDomain.CurrentDomain.Id));
System.Xml (4)
parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
39string targetFrameworkMoniker = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
System\Xml\Serialization\Compilation.cs (1)
423AssemblyBuilder assemblyBuilder = CodeGenerator.CreateAssemblyBuilder(AppDomain.CurrentDomain, assemblyName);
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
32AppDomain.CurrentDomain.AssemblyResolve += assemblyResolver; 39AppDomain.CurrentDomain.AssemblyResolve -= assemblyResolver;
WindowsBase (10)
Base\MS\Internal\AssemblyHelper.cs (1)
71AppDomain domain = AppDomain.CurrentDomain;
Base\MS\Internal\ShutDownListener.cs (4)
82AppDomain.CurrentDomain.DomainUnload += new EventHandler(HandleShutDown); 87AppDomain.CurrentDomain.ProcessExit += new EventHandler(HandleShutDown); 119AppDomain.CurrentDomain.DomainUnload -= new EventHandler(HandleShutDown); 124AppDomain.CurrentDomain.ProcessExit -= new EventHandler(HandleShutDown);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
184Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
Shared\MS\Win32\HwndWrapper.cs (4)
113if(null != AppDomain.CurrentDomain.FriendlyName && 128 <= AppDomain.CurrentDomain.FriendlyName.Length) 114appName = AppDomain.CurrentDomain.FriendlyName.Substring(0, 128); 116appName = AppDomain.CurrentDomain.FriendlyName;
XamlBuildTask (6)
Microsoft\Build\Tasks\Xaml\CompilationPass2TaskInternal.cs (3)
219AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(XamlBuildTaskServices.ReflectionOnlyAssemblyResolve); 323AppDomain.CurrentDomain.AssemblyResolve += resolveAssemblyHelper.ResolveLocalProjectReferences; 363AppDomain.CurrentDomain.AssemblyResolve -= resolveAssemblyHelper.ResolveLocalProjectReferences;
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (1)
293AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(XamlBuildTaskServices.ReflectionOnlyAssemblyResolve);
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (2)
184foreach (var asm in AppDomain.CurrentDomain.ReflectionOnlyGetAssemblies()) 227AppDomain.CurrentDomain.Evidence,