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