This is a single page that shows how to set up the .NET SDK. Follow the instructions below to make the changes needed using the information obtained from Split UI.
- Log in to Split console, go to the "Admin Tab" and copy an API token of type "SDK"
- Paste your API token, in
apiKeyvariable in Global.asax.cs - Create a Split and assign its name to the variable
featureNamein DefaultController.cs - Run your application, open your browser and you should see the treatment for the feature specified.
You can also set a value for featureName and userKey, using url parameters as follows:
http://localhost:38276/Default?featureName=test-net&userKey=test-id