Table of Contents

Method ForBuild

Namespace
MailFathom.Application.Coordination
Assembly
MailFathom.Application.dll

ForBuild(string)

Creates a holder for a new hold, naming the build taking it.

public static WorkLeaseHolder ForBuild(string build)

Parameters

build string

The version of the running build, which the composition root reads from its own assembly.

Returns

WorkLeaseHolder

A holder nothing else will produce, whose Build is that version.

Remarks

This is how a production hold is taken, and what a build knowing about a mode an older build does not is recognized by. NewHold() stays for a hold with no build to name, and a lease taken under one reads as having been taken by an unknown build.

Exceptions

ArgumentException

Thrown when build is blank, carries a control character or the separator, or is longer than sixty-four characters.