• Refactoring,AzureConnectionString,rss,asmx–part 28

    Now,I want to see that I can read from the database the exchange rates. For this,in Azure WebAPP I go to Settings => Configuration and add my connection string. But now I have a problem: I must read from the configuration.  So back on DI with InMemory class – I inject from ASP.NET Core the…

  • Friday Links 349

    Ex-Microsoft exec Julie Larson-Green shares her secrets on building great teams | On MSFT Why big data projects fail (and what you can do about it) Think About Your API Client Exploring the .NET Core Docker files: dotnet vs aspnetcore vs aspnetcore-build AOP – Method and property interception in C# – CodeProject Front-End Tools: My…

  • In memory or sql–part 27

    When I want to perform tests,the SqlServer in memory is enough good. But,when in production,should have a proper connection string. So I figured a simple way to understand this: if no connection string in appsettings.json,then use InMemory Sql Server . If there is,it should be a read connection string. First,I have tried with ConfigurationManager.ConnectionStrings[“DBWrite”]; –…

  • Adding database in Azure –part 26

    Now getting the database – needed for historic data. When I go to Create New Database in Azure Portal,there are many types of Database (mongo,postgres,many others) – the easy choice,for me,is SqlServer ( even if the tables are not be updated – the exchange rates does not change a lot). There is something that is…

  • Code Coverage–part 25

    Install coverlet and report generator dotnet tool install coverlet.console dotnet tool install dotnet-reportgenerator-globaltool   Then dotnet coverlet Infovalutar.sln –target “dotnet” –targetargs “test InfovalutarTest\InfovalutarTest.csproj –configuration release –no-build” –format opencover –exclude “[xunit*]*” dotnet reportgenerator “-reports:coverage.opencover.xml” “-targetdir:coveragereport” “-reporttypes:HTMLInline;HTMLSummary;Badges”   And the result ?No assemblies have been covered. Updating all NuGet packages for the solution  – including a collector…

  • Friday Links 348

    huyingjie/Awesome-shiny-apps-for-statistics: <�� A curated list of Awesome Shiny Apps for Statistics (ASAS)<�� Six Reasons To Learn R For Business sharlagelfand/toronto-sexual-health-clinics Combined outlier detection with dplyr and ruler Time Series Forecasting with Recurrent Neural Networks Pipes in R Tutorial For Beginners – R-posts.com More Pipes in R – Win-Vector Blog DateTime Best Practices | Complete Developer…

  • See the tests in VSCode and improvements in powershell–part 24

    I wanted that the user can see the tests when running in  VSCode. So in devcontainer.json I have put “extensions”: [ “ms-vscode.csharp” “ms-vscode.csharp”, “hbenl.vscode-test-explorer”, “formulahendry.dotnet-test-explorer” ] and in the settings.json on .vscode folder   dotnet-test-explorer.enableTelemetry”: false, “dotnet-test-explorer.testProjectPath”:”**/*.sln”, “dotnet-test-explorer.autoExpandTree”:true   So far,so good. But – I remember that powershell have a problem. And I figure why…

  • Deploy to Azure–part 23

    Create in Azure an AppService infovalutar with InfovalutarRG resource group – can be done like here https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-dotnet or from the Azure Portal ( create AppService – I have put Linux with .NET Core 3.0) Searching how to connect AzureDevOps – the connection should be added from Project Settings (a link at the bottom of the…

  • Debug Application under VSCode and Docker–part 22

    What I wanted is that people that have only a container application ( docker) and  VSCode ( not Visual Studio,nor .NET Core Framework) be able to debug the application and run it. That means,I no longer require to install .NET Core SDK on the local PC Read a lot https://code.visualstudio.com/docs/remote/containers#_devcontainerjson-reference https://github.com/microsoft/vscode-dev-containers/tree/master/containers/dotnetcore-3.0 https://code.visualstudio.com/docs/remote/containers Some important things…

  • Making visible the application -part 21

    Trying to make visible the docker with https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/ignatandrei/InfoValutar/master/PlayWithDocker/WebAPI.yml leaving an issue: https://github.com/play-with-docker/play-with-docker/issues/370   Decided  to add to the readme the docker . Going to Shields.io . Putting some lines for beginners with docker. Reading more about port –binding . Figuring this is is: ENV ASPNETCORE_URLS=http://*:8080 #ENV ASPNETCORE_URLS=http://0.0.0.0:8080 And that was all !

I am ok , you are ok