Condividi tramite


ProcessModelSection.ResponseDeadlockInterval Proprietà

Definizione

Ottiene o imposta un valore che indica l'intervallo di tempo per la risposta dal processo di lavoro.

public:
 property TimeSpan ResponseDeadlockInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("responseDeadlockInterval", DefaultValue="00:03:00")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan ResponseDeadlockInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("responseDeadlockInterval", DefaultValue="00:03:00")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.ResponseDeadlockInterval : TimeSpan with get, set
Public Property ResponseDeadlockInterval As TimeSpan

Valore della proprietà

TimeSpan

Oggetto TimeSpan che definisce l'intervallo. Il valore predefinito è 3 minuti.

Attributi

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare la proprietà ResponseDeadlockInterval.


// Get the current ResponseDeadlockInterval property value.
TimeSpan respDeadlock  = 
    processModelSection.ResponseDeadlockInterval;

// Set the ResponseDeadlockInterval property to
// TimeSpan.Parse("00:05:00").
processModelSection.ResponseDeadlockInterval = 
    TimeSpan.Parse("00:05:00");
' Get the current ResponseDeadlockInterval property value.
   Dim respDeadlock As TimeSpan = _
   processModelSection.ResponseDeadlockInterval

' Set the ResponseDeadlockInterval property to
' TimeSpan.Parse("00:05:00").
   processModelSection.ResponseDeadlockInterval = _
   TimeSpan.Parse("00:05:00")

Commenti

Il processo viene riavviato se sono presenti richieste in coda e se non è stata eseguita una risposta durante l'intervallo di tempo definito da ResponseDeadlockInterval.

Si applica a