1 write to _mediator
mscorlib (1)
system\resources\manifestbasedresourcegroveler.cs (1)
57
_mediator
= mediator;
80 references to _mediator
mscorlib (80)
system\resources\manifestbasedresourcegroveler.cs (80)
75
if (lookForCulture.HasInvariantCultureName &&
_mediator
.FallbackLoc == UltimateResourceFallbackLocation.MainAssembly)
78
satellite =
_mediator
.MainAssembly;
82
else if (!lookForCulture.HasInvariantCultureName && !
_mediator
.TryLookingForSatellite(lookForCulture))
93
bool raiseException = (culture.HasInvariantCultureName && (
_mediator
.FallbackLoc == UltimateResourceFallbackLocation.Satellite));
104
String fileName =
_mediator
.GetResourceFileName(lookForCulture);
120
FrameworkEventSource.Log.ResourceManagerFoundResourceSetInCacheUnexpected(
_mediator
.BaseName,
_mediator
.MainAssembly, culture.Name);
134
FrameworkEventSource.Log.ResourceManagerStreamFound(
_mediator
.BaseName,
_mediator
.MainAssembly, culture.Name, satellite, fileName);
138
FrameworkEventSource.Log.ResourceManagerStreamNotFound(
_mediator
.BaseName,
_mediator
.MainAssembly, culture.Name, satellite, fileName);
149
FrameworkEventSource.Log.ResourceManagerCreatingResourceSet(
_mediator
.BaseName,
_mediator
.MainAssembly, culture.Name, fileName);
169
FrameworkEventSource.Log.ResourceManagerNotCreatingResourceSet(
_mediator
.BaseName,
_mediator
.MainAssembly, culture.Name);
184
if (
_mediator
.LocationInfo != null &&
_mediator
.LocationInfo.Namespace != null)
185
resName =
_mediator
.LocationInfo.Namespace + Type.Delimiter + defaultResName;
186
String[] resourceFiles =
_mediator
.MainAssembly.GetManifestResourceNames();
201
if (lookForCulture.Name ==
_mediator
.NeutralResourcesCulture.Name &&
202
_mediator
.FallbackLoc == UltimateResourceFallbackLocation.MainAssembly)
207
FrameworkEventSource.Log.ResourceManagerNeutralResourcesSufficient(
_mediator
.BaseName,
_mediator
.MainAssembly, lookForCulture.Name);
213
else if (lookForCulture.HasInvariantCultureName &&
_mediator
.FallbackLoc == UltimateResourceFallbackLocation.Satellite)
215
returnCulture =
_mediator
.NeutralResourcesCulture;
327
throw new NotSupportedException(Environment.GetResourceString("NotSupported_ObsoleteResourcesFile",
_mediator
.MainAssembly.GetSimpleName()));
364
if (
_mediator
.UserResourceSet == null)
370
resSetType =
_mediator
.UserResourceSet;
387
if (
_mediator
.UserResourceSet == null)
409
rs = (ResourceSet)Activator.CreateInstance(
_mediator
.UserResourceSet, args);
416
rs = (ResourceSet)Activator.CreateInstance(
_mediator
.UserResourceSet, args);
424
throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResMgrBadResSet_Type",
_mediator
.UserResourceSet.AssemblyQualifiedName), e);
437
bool canSkipSecurityCheck = (
_mediator
.MainAssembly == satellite)
438
&& (
_mediator
.CallingAssembly ==
_mediator
.MainAssembly);
440
Stream stream = satellite.GetManifestResourceStream(
_mediator
.LocationInfo, fileName, canSkipSecurityCheck, ref stackMark);
461
if (
_mediator
.LocationInfo != null)
463
String nameSpace =
_mediator
.LocationInfo.Namespace;
496
FrameworkEventSource.Log.ResourceManagerCaseInsensitiveResourceStreamLookupSucceeded(
_mediator
.BaseName,
_mediator
.MainAssembly, satellite.GetSimpleName(), givenName);
500
FrameworkEventSource.Log.ResourceManagerCaseInsensitiveResourceStreamLookupFailed(
_mediator
.BaseName,
_mediator
.MainAssembly, satellite.GetSimpleName(), givenName);
512
bool canSkipSecurityCheck =
_mediator
.MainAssembly == satellite &&
_mediator
.CallingAssembly ==
_mediator
.MainAssembly;
529
FrameworkEventSource.Log.ResourceManagerManifestResourceAccessDenied(
_mediator
.BaseName,
_mediator
.MainAssembly, satellite.GetSimpleName(), canonicalName);
540
if (!
_mediator
.LookedForSatelliteContractVersion)
542
_mediator
.SatelliteContractVersion =
_mediator
.ObtainSatelliteContractVersion(
_mediator
.MainAssembly);
543
_mediator
.LookedForSatelliteContractVersion = true;
555
satellite =
_mediator
.MainAssembly.InternalGetSatelliteAssembly(satAssemblyName, lookForCulture,
_mediator
.SatelliteContractVersion, false, ref stackMark);
570
Contract.Assert(false, "[This assert catches satellite assembly build/deployment problems - report this message to your build lab & loc engineer]" + Environment.NewLine + "GetSatelliteAssembly failed for culture " + lookForCulture.Name + " and version " + (
_mediator
.SatelliteContractVersion == null ?
_mediator
.MainAssembly.GetVersion().ToString() :
_mediator
.SatelliteContractVersion.ToString()) + " of assembly " +
_mediator
.MainAssembly.GetSimpleName() + " with error code 0x" + hr.ToString("X", CultureInfo.InvariantCulture) + Environment.NewLine + "Exception: " + fle);
577
Contract.Assert(false, "[This assert catches satellite assembly build/deployment problems - report this message to your build lab & loc engineer]" + Environment.NewLine + "GetSatelliteAssembly failed for culture " + lookForCulture.Name + " and version " + (
_mediator
.SatelliteContractVersion == null ?
_mediator
.MainAssembly.GetVersion().ToString() :
_mediator
.SatelliteContractVersion.ToString()) + " of assembly " +
_mediator
.MainAssembly.GetSimpleName() + Environment.NewLine + "Exception: " + bife);
585
FrameworkEventSource.Log.ResourceManagerGetSatelliteAssemblySucceeded(
_mediator
.BaseName,
_mediator
.MainAssembly, lookForCulture.Name, satAssemblyName);
589
FrameworkEventSource.Log.ResourceManagerGetSatelliteAssemblyFailed(
_mediator
.BaseName,
_mediator
.MainAssembly, lookForCulture.Name, satAssemblyName);
608
if (
_mediator
.UserResourceSet != null)
634
String satAssemblyName =
_mediator
.MainAssembly.GetSimpleName();
642
String satAssemName =
_mediator
.MainAssembly.GetSimpleName() + ".resources.dll";
643
if (
_mediator
.SatelliteContractVersion != null)
645
satAssemName += ", Version=" +
_mediator
.SatelliteContractVersion.ToString();
649
an.SetPublicKey(
_mediator
.MainAssembly.GetPublicKey());
660
String missingCultureName =
_mediator
.NeutralResourcesCulture.Name;
665
throw new MissingSatelliteAssemblyException(Environment.GetResourceString("MissingSatelliteAssembly_Culture_Name",
_mediator
.NeutralResourcesCulture, satAssemName), missingCultureName);
672
if (
_mediator
.MainAssembly == typeof(Object).Assembly &&
_mediator
.BaseName.Equals("mscorlib"))
684
if (
_mediator
.LocationInfo != null &&
_mediator
.LocationInfo.Namespace != null)
685
resName =
_mediator
.LocationInfo.Namespace + Type.Delimiter;
687
throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_NoNeutralAsm", resName,
_mediator
.MainAssembly.GetSimpleName()));