Skip to content

Commit

Permalink
add a projectId setting (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Apr 28, 2021
1 parent 0570484 commit 5487e2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Unleash/Internal/UnleashServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public UnleashServices(UnleashSettings settings, Dictionary<string, IStrategy> s
InstanceTag = settings.InstanceTag,
CustomHttpHeaders = settings.CustomHttpHeaders,
CustomHttpHeaderProvider = settings.UnleashCustomHttpHeaderProvider
});
}, settings.ProjectId);
}
else
{
Expand Down
5 changes: 5 additions & 0 deletions src/Unleash/UnleashSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public class UnleashSettings
/// </summary>
public string InstanceTag { get; set; } = GetDefaultInstanceTag();

/// <summary>
/// Gets or sets which projects feature toggles are to be used. Feature only available to Enterprise and Unleash-hosted customers.
/// </summary>
public string ProjectId { get; set; } = null;

/// <summary>
/// Gets or sets the interval in which feature toggle changes are re-fetched.
///
Expand Down

0 comments on commit 5487e2d

Please sign in to comment.