public InterceptorReference(Type serviceType) { if (serviceType == null) { throw new ArgumentNullException("'serviceType' cannot be null"); } this.refType = InterceptorReferenceType.Interface; this.serviceType = serviceType; }
/// <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; }
public InterceptorReference(String componentKey) { if (componentKey == null) { throw new ArgumentNullException("componentKey cannot be null"); } this.refType = InterceptorReferenceType.Key; this.componentKey = componentKey; }
/// <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; }