Click or drag to resize
EnqueuedStateQueue Property
Gets or sets a queue name to which a background job identifier will be added.

Namespace: Hangfire.States
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
[NotNullAttribute]
public string Queue { get; set; }

Property Value

Type: String
A queue name that consist only of lowercase letters, digits and underscores.
Exceptions
ExceptionCondition
ArgumentNullException The value specified for a set operation is , empty or consist only of white-space characters.
ArgumentException The value specified for a set operation is not a valid queue name.
Remarks

Queue name must consist only of lowercase letters, digits and underscores, other characters aren't permitted. Some examples:

  • "critical" (good)
  • "worker_1" (good)
  • "documents queue" (bad, whitespace)
  • "MyQueue" (bad, capital letters)
See Also