Skip to content

splitio/example-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FME Example .NET Single Page Web Application

Documentation

Table of Contents

Intro
Requirements
Quickstart
Further Reading

Intro

This single page web app shows you how to set up the FME .NET SDK and evaluate an FME feature flag. This is a ASP.NET Core MVC app built with Razor Pages.

Example.NET

Requirements

To run the example, you need:

Quickstart

To run the FME .NET SDK in the web app:

  1. Log in to Harness or create a free account.
  2. Navigate to Feature Management & Experimentation > FME Settings > Projects > View > SDK API Keys and copy a server-side SDK API key for one of your FME environments.
  3. Paste your SDK API key as the value of the sdkKey variable in FmeInitializer.cs.
  4. Create a feature flag, initiate the FME environment, define the flag's targeting rules, and assign the flag name to the featureFlagName variable in Index.cshtml.cs.
  5. Run the application, flip to your browser and you should see the treatment for the feature flag on the main page.

You can also set a value for featureFlagName and userKey, using url parameters as follows:

http://localhost:7113?featureFlagName=your_feature_flag_name&userKey=user001

Further Reading

See the FME .NET SDK reference to learn about configuration options, optimizations, and event tracking.

For more information about feature flags, see our Feature Management documentation.


Harness is a software delivery platform that delivers intelligent AI automation, so your team ships code faster, safer, and smarter.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors