FeatureFlagClient.GetFeatureFlagAsync Method

Definition

Overloads

Name Description
GetFeatureFlagAsync(FeatureFlag, Boolean, CancellationToken)

Retrieve an existing FeatureFlag from the configuration store.

GetFeatureFlagAsync(FeatureFlag, DateTimeOffset, CancellationToken)

Retrieve an existing FeatureFlag from the configuration store.

GetFeatureFlagAsync(String, String, CancellationToken)

Retrieve an existing FeatureFlag, uniquely identified by name and label, from the configuration store.

GetFeatureFlagAsync(FeatureFlag, Boolean, CancellationToken)

Source:
FeatureFlagClient.cs

Retrieve an existing FeatureFlag from the configuration store.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>> GetFeatureFlagAsync(Azure.Data.AppConfiguration.FeatureFlag flag, bool onlyIfChanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFeatureFlagAsync : Azure.Data.AppConfiguration.FeatureFlag * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>>
override this.GetFeatureFlagAsync : Azure.Data.AppConfiguration.FeatureFlag * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>>
Public Overridable Function GetFeatureFlagAsync (flag As FeatureFlag, Optional onlyIfChanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FeatureFlag))

Parameters

flag
FeatureFlag

The FeatureFlag to retrieve.

onlyIfChanged
Boolean

If set to true, only retrieve the feature flag from the configuration store if it has changed since the client last retrieved it. The feature flag is considered unchanged if its Etag matches the version in the configuration store. If it is unchanged, the returned Response<T> will have a status of 304 (not modified) and its Value will be null.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response containing the retrieved FeatureFlag.

Applies to

GetFeatureFlagAsync(FeatureFlag, DateTimeOffset, CancellationToken)

Source:
FeatureFlagClient.cs

Retrieve an existing FeatureFlag from the configuration store.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>> GetFeatureFlagAsync(Azure.Data.AppConfiguration.FeatureFlag flag, DateTimeOffset acceptDateTime, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFeatureFlagAsync : Azure.Data.AppConfiguration.FeatureFlag * DateTimeOffset * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>>
override this.GetFeatureFlagAsync : Azure.Data.AppConfiguration.FeatureFlag * DateTimeOffset * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>>
Public Overridable Function GetFeatureFlagAsync (flag As FeatureFlag, acceptDateTime As DateTimeOffset, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FeatureFlag))

Parameters

flag
FeatureFlag

The FeatureFlag to retrieve.

acceptDateTime
DateTimeOffset

The feature flag will be retrieved exactly as it existed at the provided time.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response containing the retrieved FeatureFlag.

Applies to

GetFeatureFlagAsync(String, String, CancellationToken)

Source:
FeatureFlagClient.cs

Retrieve an existing FeatureFlag, uniquely identified by name and label, from the configuration store.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>> GetFeatureFlagAsync(string name, string label = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFeatureFlagAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>>
override this.GetFeatureFlagAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.FeatureFlag>>
Public Overridable Function GetFeatureFlagAsync (name As String, Optional label As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FeatureFlag))

Parameters

name
String

The name of the feature flag to retrieve.

label
String

A label used to group this feature flag with others.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response containing the retrieved FeatureFlag.

Applies to