コード例 #1
0
 /// <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;
 }
コード例 #2
0
		/// <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;
		}
コード例 #3
0
		/// <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;
		}
コード例 #4
0
        /// <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;
        }