C# Class ChannelAdvisorAccess.Misc.AP

Show file Open project: agileharbor/channelAdvisorAccess

Public Methods

Method Description
CreateQuery ( Func additionalLogInfo = null, string accountId = "", CacheManager cache = null ) : ActionPolicy
CreateQueryAsync ( Func additionalLogInfo = null, string accountId = "", CacheManager cache = null ) : ActionPolicyAsync
CreateSubmit ( Func additionalLogInfo = null, string accountId = "", CacheManager cache = null ) : ActionPolicy
CreateSubmitAsync ( Func additionalLogInfo = null, string accountId = "", CacheManager cache = null ) : ActionPolicyAsync

Private Methods

Method Description
CollestMessages ( Exception exc ) : string
CreateRetryMessage ( Func additionalLogInfo, int i, System.TimeSpan delay, Exception ex ) : string
GetDelay ( Exception ex, int retryNumber ) : System.TimeSpan
GetDelayForWebException ( WebException webException ) : TimeSpan?
GetHttpStatusCode ( WebException webException ) : HttpStatusCode?
IsError429 ( Exception ex ) : bool

Method Details

CreateQuery() public static method

public static CreateQuery ( Func additionalLogInfo = null, string accountId = "", CacheManager cache = null ) : ActionPolicy
additionalLogInfo Func
accountId string
cache CacheManager
return ActionPolicy

CreateQueryAsync() public static method

public static CreateQueryAsync ( Func additionalLogInfo = null, string accountId = "", CacheManager cache = null ) : ActionPolicyAsync
additionalLogInfo Func
accountId string
cache CacheManager
return ActionPolicyAsync

CreateSubmit() public static method

public static CreateSubmit ( Func additionalLogInfo = null, string accountId = "", CacheManager cache = null ) : ActionPolicy
additionalLogInfo Func
accountId string
cache CacheManager
return ActionPolicy

CreateSubmitAsync() public static method

public static CreateSubmitAsync ( Func additionalLogInfo = null, string accountId = "", CacheManager cache = null ) : ActionPolicyAsync
additionalLogInfo Func
accountId string
cache CacheManager
return ActionPolicyAsync