Skip to the content.

TimeSpan Usage Generalization

Time related settings —e.g. send port’s retry interval, WCF channel’s send timeout, or SFTP adapter’s polling interval— are often, if not always, expressed in different time units —milliseconds, seconds, minutes— and rarely as plain TimeSpan values. BizTalk.Factory’s Binding DSL strives to standardize all these time related settings by surfacing them all as TimeSpans through the API, therefore freeing the developer of having to remember the time unit in which he has to express an integer time value and performing the conversion to the right time unit for him.

Even when the unit in which is expressed the time is configurable too —for instance SFTP Adapter’s Receive Location PollingInterval and PollingIntervalUnit,— BizTalk.Factory surfaces these two properties as one single Polling Interval, which, behind the scenes, is mapped to the two configurable properties of the actual configuration class.