Ejemplo n.º 1
0
 public bool Equals(InnerPartDefinition other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Original, Original));
 }
Ejemplo n.º 2
0
        private InnerPartDefinition GetPart(ComposablePartDefinition partDefinition)
        {
            var interceptor = GetInterceptor(partDefinition);

            if (interceptor == null)
            {
                // If the part is not being intercepted, suppress interception
                // by returning the original part
                return(new InnerPartDefinition(partDefinition));
            }

            var innerPart = new InnerPartDefinition(
                partDefinition,
                new InterceptingComposablePartDefinition(partDefinition, interceptor));

            return(innerPart);
        }
Ejemplo n.º 3
0
 public bool Equals(InnerPartDefinition other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Original, Original);
 }
Ejemplo n.º 4
0
        private InnerPartDefinition GetPart(ComposablePartDefinition partDefinition)
        {
            var interceptor = GetInterceptor(partDefinition);
            if (interceptor == null)
            {
                // If the part is not being intercepted, suppress interception
                // by returning the original part
                return new InnerPartDefinition(partDefinition);
            }

            var innerPart = new InnerPartDefinition(
                partDefinition,
                new InterceptingComposablePartDefinition(partDefinition, interceptor));

            return innerPart;
        }