41 references to SR
System.Composition.Hosting (41)
System\Composition\Hosting\Core\CompositionDependency.cs (6)
159
return
SR
.Format(
SR
.Dependency_ToStringFormat, Site, Target.Contract, Target.Origin);
170
var list = Formatters.ReadableList(_oversuppliedTargets.Select(t =>
SR
.Format(
SR
.Dependency_QuoteParameter, t.Origin)));
171
message.AppendFormat(
SR
.Dependency_TooManyExports, Contract, list);
175
message.AppendFormat(
SR
.Dependency_ExportNotFound, Contract);
System\Composition\Hosting\Core\CompositionOperation.cs (1)
96
throw new Exception(
SR
.Sharing_Lock_Taken);
System\Composition\Hosting\Core\CycleBreakingExportDescriptor.cs (2)
44
var ex = new NotImplementedException(
SR
.NotImplemented_MetadataCycles);
45
Debug.WriteLine(
SR
.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (2)
24
var ex = new NotImplementedException(
SR
.NotImplemented_MetadataCycles);
25
Debug.WriteLine(
SR
.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Core\ExportDescriptorPromise.cs (2)
103
return
SR
.Format(
SR
.ExportDescriptor_ToStringFormat, Contract, Origin);
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (3)
50
var ex = new CompositionFailedException(
SR
.Format(
SR
.CardinalityMismatch_TooManyExports, exportKey));
51
Debug.WriteLine(
SR
.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (7)
34
if (_updateFinished) throw new InvalidOperationException(
SR
.Update_already_executed);
64
Debug.WriteLine(
SR
.Diagnostic_ThrowingException, ex.ToString());
97
message.AppendFormat(
SR
.ExportDescriptor_UnsupportedCycle, dependency.Target.Origin);
102
Debug.WriteLine(
SR
.Diagnostic_ThrowingException, ex.ToString());
124
result.AppendFormat(
SR
.ExportDescriptor_DependencyErrorLine, import.Site, step.Target.Origin);
129
result.AppendFormat(
SR
.ExportDescriptor_DependencyErrorContract, import.Contract);
137
throw new Exception(
SR
.Dependencies_Should_Be_Requested_Earlier);
System\Composition\Hosting\Core\LifetimeContext.cs (3)
94
string message =
SR
.Format(
SR
.Component_NotCreatableOutsideSharingBoundary, sharingBoundary);
96
Debug.WriteLine(
SR
.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Core\UpdateResult.cs (1)
49
throw new Exception(
SR
.Providers_Remain_To_Be_Queried);
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (7)
25
throw new CompositionFailedException(
SR
.Format(
SR
.MetadataViewProvider_InvalidViewImplementation, typeof(TMetadata).Name));
73
throw new CompositionFailedException(
SR
.Format(
SR
.MetadataViewProvider_InvalidViewImplementation, typeof(TMetadata).Name));
86
var message =
SR
.Format(
SR
.MetadataViewProvider_MissingMetadata, name);
88
Debug.WriteLine(
SR
.Diagnostic_ThrowingException, ex.ToString());
System\Composition\Hosting\Util\Formatters.cs (3)
18
string reply = string.Join(
SR
.Formatter_ListSeparatorWithSpace, items.OrderBy(t => t));
19
return !string.IsNullOrEmpty(reply) ? reply :
SR
.Formatter_None;
45
throw new Exception(
SR
.Diagnostic_InternalExceptionMessage);
System\Composition\Hosting\Util\SmallSparseInitonlyArray.cs (4)
36
throw new ArgumentException(
SR
.Format(
SR
.Key_Already_Exist, index), nameof(index));
51
throw new ArgumentException(
SR
.Format(
SR
.Key_Already_Exist, index), nameof(index));