Giter Club home page Giter Club logo

Comments (6)

dabeeeenster avatar dabeeeenster commented on August 20, 2024

Hi @amunim - we're looking into this.

We don't return tags with flags as we feel that is private data that should not be sent down to the client.

from flagsmith-dotnet-client.

amunim avatar amunim commented on August 20, 2024

from flagsmith-dotnet-client.

matthewelwell avatar matthewelwell commented on August 20, 2024

Hi @amunim, I'm afraid not. It's a design decision that we have taken. There is no way to retrieve the tags from the SDKs.

I am looking into the issues you're having installing the client now.

from flagsmith-dotnet-client.

amunim avatar amunim commented on August 20, 2024

If it helps, I also tried installing it on my ASP.Net project and got the same error again.

One more thing I noticed in .Net docs

# Sync
# The method below triggers a network request
var flags = _flagsmithClient.GetEnvironmentFlags();// <-------- where is .Result here?  # This method triggers a network request
var showButton = flags.IsFeatureEnabled("secret_button");
var buttonData = flags.GetFeatureValue("secret_button").Result;

# Async
# The method below triggers a network request
var flags = await _flagsmithClient.GetEnvironmentFlags();  # This method triggers a network request
var showButton = await flags.IsFeatureEnabled("secret_button");
var buttonData = await flags.GetFeatureValue("secret_button").Result; // <--------------- why are you using await and result in the same statement?

from flagsmith-dotnet-client.

matthewelwell avatar matthewelwell commented on August 20, 2024

@amunim I have just pushed version 4.0.1 which you should now be able to install?

Those docs certainly look incorrect to me, I will take a look - thanks for pointing it out.

from flagsmith-dotnet-client.

amunim avatar amunim commented on August 20, 2024

Thanks, it finally worked and I have submitted my article to Matt.
Lastly, can you read it and look at the t4/tt script I embedded, I believe this can help reduce the friction on feature flags, so if you decide on including it on the project it will be useful not only in .NET but other languages too to have constants :)

from flagsmith-dotnet-client.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.