Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/OpenFeature/IFeatureClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public interface IFeatureClient : IEventBus
/// Returns the current status of the associated provider.
/// </summary>
/// <returns><see cref="ProviderStatus"/></returns>
ProviderStatus ProviderStatus { get; }

ProviderStatus ProviderStatus { get; }
/// <summary>
/// Resolves a boolean feature flag
/// </summary>
Expand Down Expand Up @@ -166,4 +166,13 @@ public interface IFeatureClient : IEventBus
/// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param>
/// <returns>Resolved flag details <see cref="FlagEvaluationDetails{T}"/></returns>
Task<FlagEvaluationDetails<Value>> GetObjectDetailsAsync(string flagKey, Value defaultValue, EvaluationContext? context = null, FlagEvaluationOptions? config = null, CancellationToken cancellationToken = default);

/// <summary>
/// Use this method to track user interactions and the application state.
/// </summary>
/// <param name="trackingEventName">The name associated with this tracking event</param>
/// <param name="evaluationContext">The evaluation context used in the evaluation of the flag (optional)</param>
/// <param name="trackingEventDetails">Data pertinent to the tracking event (Optional)</param>
/// <exception cref="ArgumentException">When trackingEventName is null or empty</exception>
void Track(string trackingEventName, EvaluationContext? evaluationContext = default, TrackingEventDetails? trackingEventDetails = default);
}
8 changes: 1 addition & 7 deletions src/OpenFeature/OpenFeatureClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,7 @@ await hookRunner.TriggerFinallyHooksAsync(evaluation, options?.HookHints, cancel
return evaluation;
}

/// <summary>
/// Use this method to track user interactions and the application state.
/// </summary>
/// <param name="trackingEventName">The name associated with this tracking event</param>
/// <param name="evaluationContext">The evaluation context used in the evaluation of the flag (optional)</param>
/// <param name="trackingEventDetails">Data pertinent to the tracking event (Optional)</param>
/// <exception cref="ArgumentException">When trackingEventName is null or empty</exception>
/// <inheritdoc />
public void Track(string trackingEventName, EvaluationContext? evaluationContext = default, TrackingEventDetails? trackingEventDetails = default)
{
if (string.IsNullOrWhiteSpace(trackingEventName))
Expand Down