/// <summary>Creates attribute.</summary> /// <param name="contractKey">Service key object, should implement <see cref="object.GetHashCode"/> and <see cref="object.Equals(object)"/></param> /// <param name="contractType">(optional) Service type.</param> /// <param name="ifAlreadyExported">(optional) Handles export when other such export is already exist.</param> public ExportExAttribute(object contractKey, Type contractType = null, IfAlreadyExported ifAlreadyExported = IfAlreadyExported.AppendNotKeyed) : base(contractKey as string, contractType) { ContractKey = contractKey; IfAlreadyExported = ifAlreadyExported; }
/// <summary>Creates export with handling existing export option.</summary> /// <param name="ifAlreadyExported">Handles export when other such export is already exist.</param> public ExportExAttribute(IfAlreadyExported ifAlreadyExported) : this(null, null, ifAlreadyExported) { }
/// <summary>Creates export with specified service type.</summary> <param name="contractType">Service type.</param> /// <param name="ifAlreadyExported">(optional) Handles export when other such export is already exist.</param> public ExportExAttribute(Type contractType, IfAlreadyExported ifAlreadyExported = IfAlreadyExported.AppendNotKeyed) : this(null, contractType, ifAlreadyExported) { }