Feature SDK implementation
C# / .NET
Feature delivery and experimentation for ASP.NET and .NET services.
.NET serverThis runtime cannot execute inside a Next.js browser process. The page shows the native, official SDK shape; use the JavaScript, React, or Next.js pages for a live decision and event round trip with the same project, flag, event, and visitor ID.
Implementation
Official docs ↗dotnet add package Optimizely.SDK
var client = OptimizelyFactory.NewDefaultInstance(SDK_KEY);
var user = client.CreateUserContext("visitor-123");
var decision = user.Decide("demo_flag");
user.TrackEvent("demo_purchase");