/// <summary> /// Initializes a new instance of the <see cref="Context"/> class /// </summary> /// <param name="id">See <see cref="Id"/></param> /// <param name="timeout">See <see cref="Timeout"/></param> /// <param name="isLeastCostRouting">See <see cref="IsLeastCostRouting"/></param> /// <param name="enableLCRWithoutRate">See <see cref="EnableLCRWithoutRate"/></param> /// <param name="forkConnectBehavior">See <see cref="ForkConnectBehavior"/></param> /// <param name="forkConnectBehaviorTimeout">See <see cref="ForkConnectBehaviorTimeout"/></param> /// <param name="lcrBlendPercentage">See <see cref="LCRBlendPercentage"/></param> /// <param name="lcrBlendToContextId">See <see cref="LCRBlendToContextId"/></param> internal Context(int id, int timeout, bool isLeastCostRouting, bool enableLCRWithoutRate, ForkConnectBehavior forkConnectBehavior, int forkConnectBehaviorTimeout, int?lcrBlendPercentage, int?lcrBlendToContextId) { this.Id = id; this.Timeout = timeout; this.IsLeastCostRouting = isLeastCostRouting; this.EnableLCRWithoutRate = enableLCRWithoutRate; this.ForkConnectBehavior = forkConnectBehavior; this.ForkConnectBehaviorTimeout = forkConnectBehaviorTimeout; this.LCRBlendPercentage = lcrBlendPercentage; this.LCRBlendToContextId = lcrBlendToContextId; }
/// <summary> /// Retrieves the TechnicalName-attribute value of <paramref name="type"/> /// </summary> /// <param name="type">Fork connect behavior as technical name</param> /// <returns>Returns the type as string</returns> public static string ToTechnicalName(this ForkConnectBehavior type) { return(Pool.ForkConnectBehaviors.ToString(type)); }