示例#1
0
        public InterceptorReference(Type serviceType)
        {
            if (serviceType == null)
            {
                throw new ArgumentNullException("'serviceType' cannot be null");
            }

            this.refType     = InterceptorReferenceType.Interface;
            this.serviceType = serviceType;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InterceptorReference"/> class.
        /// </summary>
        /// <param name="serviceType">Type of the service.</param>
        public InterceptorReference(Type serviceType)
        {
            if (serviceType == null)
            {
                throw new ArgumentNullException("'serviceType' cannot be null");
            }

            refType = InterceptorReferenceType.Interface;
            this.serviceType = serviceType;
        }
示例#3
0
        public InterceptorReference(String componentKey)
        {
            if (componentKey == null)
            {
                throw new ArgumentNullException("componentKey cannot be null");
            }

            this.refType      = InterceptorReferenceType.Key;
            this.componentKey = componentKey;
        }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InterceptorReference"/> class.
        /// </summary>
        /// <param name="componentKey">The component key.</param>
        public InterceptorReference(String componentKey)
        {
            if (componentKey == null)
            {
                throw new ArgumentNullException("componentKey cannot be null");
            }

            refType = InterceptorReferenceType.Key;
            this.componentKey = componentKey;
        }