Redirect Event

Fired when a redirection is received from the server.

Syntax

public event OnRedirectHandler OnRedirect;

public delegate void OnRedirectHandler(object sender, AzurerelayreceiverRedirectEventArgs e);

public class AzurerelayreceiverRedirectEventArgs : EventArgs {
  public string Location { get; }
  public bool Accept { get; set; }
}
Public Event OnRedirect As OnRedirectHandler

Public Delegate Sub OnRedirectHandler(sender As Object, e As AzurerelayreceiverRedirectEventArgs)

Public Class AzurerelayreceiverRedirectEventArgs Inherits EventArgs
  Public ReadOnly Property Location As String
  Public Property Accept As Boolean
End Class

Remarks

This event is where the client can decide whether to continue with the redirection process or not. The Accept parameter is always true by default, but if you do not want to follow the redirection, Accept may be set to false, in which case the component throws an exception. Location is the location to which the client is being redirected. Further control over redirection is provided in the FollowRedirects property.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 .NET Edition - Version 20.0 [Build 8155]