toggly
  • What is toggly?
  • 🚀Getting started
    • Creating your first project
    • Using our Feature Flag Demo
    • Inviting Your Team
    • API Documentation
  • 🔘Feature Flags
    • Feature Flags in C# / .NET
      • Views
      • Controllers & Actions
      • Dependency Injection
      • Routing
      • IFeatureManagerSnapshot
      • Persistent Flags Across Requests
      • Disabled Action Handling
      • State Change Handlers
      • Custom Context
      • Snapshot Providers
        • RavenDB
        • Entity Framework
      • Debugging Endpoint
      • Serving Front-end Flags
      • Undefined Features In Development
      • Deployments and Version
    • Feature Flags in Vue.js
      • Feature Component
      • Directly Checking a Flag
      • Users and Rollouts
      • Flag Defaults
    • Feature Flags in JavaScript
      • Directly Checking a Flag
      • Definition Refresh
      • Users and Rollouts
      • Flag Defaults
    • Feature Flags in Flutter
      • Feature Widget
      • Directly Checking a Flag
      • Users and Rollouts
      • Flag Defaults
    • Feature Flags in HTML/CSS
  • 📈Metrics
    • Metrics in C# / .NET
      • Feature Usage
      • Business Metrics
      • Performance Metrics
  • 👩‍💻Use Cases
    • For Engineers
      • Develop continuously, turn on when ready
    • For Product Managers
      • Measure Feature Impact
    • For Agile Teams
      • Faster QA Cycles
      • Streamline Your Releases
Powered by GitBook
On this page

Was this helpful?

  1. Feature Flags
  2. Feature Flags in C# / .NET

Undefined Features In Development

To enable a more streamlined developer experience, we can treat undefined features as Always On, to avoid having to go into Toggly and define the feature.

Simply add UndefinedEnabledOnDevelopment to AddTogglyWeb.

builder.Services.AddTogglyWeb(options =>
{
    options.AppKey = builder.Configuration["Toggly:AppKey"]!;
    options.Environment = builder.Configuration["Toggly:Environment"]!;
    options.UndefinedEnabledOnDevelopment = true;
});

Don't worry, we auto-detect new flags being checked, and show you any undefined ones on the Feature Definitions page at the bottom.

This works with app.Environment.IsDevelopment() to only affect development. For all other environments, you'll still need to define the feature

PreviousServing Front-end FlagsNextDeployments and Version

Last updated 2 years ago

Was this helpful?

🔘