/// <summary> /// Initializes a new instance of the <see cref = "SynchronizeContextReference" /> class. /// </summary> /// <param name = "componentKey">The component key.</param> public SynchronizeContextReference(String componentKey) { if (componentKey == null) { throw new ArgumentNullException("componentKey"); } refType = SynchronizeContextReferenceType.Key; this.componentKey = componentKey; }
/// <summary> /// Initializes a new instance of the <see cref = "SynchronizeContextReference" /> class. /// </summary> /// <param name = "componentKey">The component key.</param> public SynchronizeContextReference(String componentKey) { if (componentKey == null) { throw new ArgumentNullException("componentKey"); } refType = SynchronizeContextReferenceType.Key; this.componentKey = componentKey; }
/// <summary> /// Initializes a new instance of the <see cref="SynchronizeContextReference"/> class. /// </summary> /// <param name="serviceType">Type of the service.</param> public SynchronizeContextReference(Type serviceType) { if (serviceType == null) { throw new ArgumentNullException("'serviceType' cannot be null"); } refType = SynchronizeContextReferenceType.Interface; this.serviceType = serviceType; }
/// <summary> /// Initializes a new instance of the <see cref = "SynchronizeContextReference" /> class. /// </summary> /// <param name = "serviceType">Type of the service.</param> public SynchronizeContextReference(Type serviceType) { if (serviceType == null) { throw new ArgumentNullException("serviceType"); } refType = SynchronizeContextReferenceType.Interface; this.serviceType = serviceType; }