コード例 #1
0
        internal static void DefinitionContainsNoExports(Type type)
        {
            ArgumentNullException.ThrowIfNull(type);

            if (CompositionTraceSource.CanWriteInformation)
            {
                CompositionTraceSource.WriteInformation(CompositionTraceId.Discovery_DefinitionContainsNoExports,
                                                        SR.CompositionTrace_Discovery_DefinitionContainsNoExports,
                                                        type.GetDisplayName());
            }
        }
コード例 #2
0
        internal static void DefinitionMarkedWithPartNotDiscoverableAttribute(Type type)
        {
            ArgumentNullException.ThrowIfNull(type);

            if (CompositionTraceSource.CanWriteInformation)
            {
                CompositionTraceSource.WriteInformation(CompositionTraceId.Discovery_DefinitionMarkedWithPartNotDiscoverableAttribute,
                                                        SR.CompositionTrace_Discovery_DefinitionMarkedWithPartNotDiscoverableAttribute,
                                                        type.GetDisplayName());
            }
        }
コード例 #3
0
        internal static void PartDefinitionResurrected(ComposablePartDefinition definition)
        {
            ArgumentNullException.ThrowIfNull(definition);

            if (CompositionTraceSource.CanWriteInformation)
            {
                CompositionTraceSource.WriteInformation(CompositionTraceId.Rejection_DefinitionResurrected,
                                                        SR.CompositionTrace_Rejection_DefinitionResurrected,
                                                        definition.GetDisplayName());
            }
        }
コード例 #4
0
        internal static void DefinitionMismatchedExportArity(Type type, MemberInfo member)
        {
            ArgumentNullException.ThrowIfNull(type);
            ArgumentNullException.ThrowIfNull(member);

            if (CompositionTraceSource.CanWriteInformation)
            {
                CompositionTraceSource.WriteInformation(CompositionTraceId.Discovery_DefinitionMismatchedExportArity,
                                                        SR.CompositionTrace_Discovery_DefinitionMismatchedExportArity,
                                                        type.GetDisplayName(), member.GetDisplayName());
            }
        }
コード例 #5
0
        internal static void PartDefinitionResurrected(ComposablePartDefinition definition)
        {
            if (definition == null)
            {
                throw new ArgumentNullException(nameof(definition));
            }

            if (CompositionTraceSource.CanWriteInformation)
            {
                CompositionTraceSource.WriteInformation(CompositionTraceId.Rejection_DefinitionResurrected,
                                                        SR.CompositionTrace_Rejection_DefinitionResurrected,
                                                        definition.GetDisplayName());
            }
        }
コード例 #6
0
        internal static void DefinitionContainsNoExports(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException(nameof(type));
            }

            if (CompositionTraceSource.CanWriteInformation)
            {
                CompositionTraceSource.WriteInformation(CompositionTraceId.Discovery_DefinitionContainsNoExports,
                                                        SR.CompositionTrace_Discovery_DefinitionContainsNoExports,
                                                        type.GetDisplayName());
            }
        }
コード例 #7
0
        public static void Registration_ConstructorConventionOverridden(Type type)
        {
            if (type == null)
            {
                throw new Exception(SR.Diagnostic_InternalExceptionMessage);
            }

            if (CompositionTraceSource.CanWriteInformation)
            {
                CompositionTraceSource.WriteInformation(CompositionTraceId.Registration_ConstructorConventionOverridden,
                                                        SR.Registration_ConstructorConventionOverridden,
                                                        type.FullName);
            }
        }
コード例 #8
0
        internal static void DefinitionMismatchedExportArity(Type type, MemberInfo member)
        {
            if (type == null)
            {
                throw new ArgumentNullException(nameof(type));
            }

            if (member == null)
            {
                throw new ArgumentNullException(nameof(member));
            }

            if (CompositionTraceSource.CanWriteInformation)
            {
                CompositionTraceSource.WriteInformation(CompositionTraceId.Discovery_DefinitionMismatchedExportArity,
                                                        SR.CompositionTrace_Discovery_DefinitionMismatchedExportArity,
                                                        type.GetDisplayName(), member.GetDisplayName());
            }
        }