Are you over 18 and want to see adult content?
More Annotations
Castello di Amorosa A Napa Valley Castle Winery In Calistoga
Are you over 18 and want to see adult content?
Addmotor E-Bikes | Electric Fat Bikes Cargo Trike Battery
Are you over 18 and want to see adult content?
A complete backup of beautyandhealthmania.blogspot.com
Are you over 18 and want to see adult content?
Smithers, Hazeltons, Kispiox Valley, Telkwa BC Real Estate | Charlie McClary
Are you over 18 and want to see adult content?
Chuyên Đá Quý Phong Thủy Thiên Nhiên – Tài Lộc , Bình An , May Mắn
Are you over 18 and want to see adult content?
Frescobol beach paddles, ball, gear. How to play frescoball by Vero. – Vero Frescobol
Are you over 18 and want to see adult content?
Специи и пряности, эфирные масла и их применение в жизни людей
Are you over 18 and want to see adult content?
Home - Wheelfitment.eu - PCD, Offset, Center Bore, mounting and tire size data
Are you over 18 and want to see adult content?
Search for parts. Buying auto parts around the world. Auto parts catalogs.
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of newteachercenter.org
Are you over 18 and want to see adult content?
A complete backup of codex-alimentarius.net
Are you over 18 and want to see adult content?
A complete backup of thebbtcenter.com
Are you over 18 and want to see adult content?
A complete backup of powerplastics.co.uk
Are you over 18 and want to see adult content?
A complete backup of moonlighterthegame.com
Are you over 18 and want to see adult content?
A complete backup of nsck-cykelmotion.dk
Are you over 18 and want to see adult content?
Text
CMATSKAS.COM
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. CREATE A PROTECTED .NET CORE 3.1 API THAT CALLS INTO MS Create a protected .NET Core 3.1 API that calls into MS Graph on behalf of a Power App 16 May 2020 Posted in ASP.NET Core, Power Apps, MS Graph, Azure AD, security. In this blog post I'm going to explain how to create a .NET Core API that accepts authenticated requests from a Power App, validates the user and then makes a call into MS Graph to retrieve the appropriate data. SETTING UP MANAGED IDENTITIES FOR ASP.NET CORE WEB APPSEE MORE ONCMATSKAS.COM
.NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
ASP.NET MVC WEBAPI
Today, I'll show you how to create WebAPI controller methods that take optional parameters. 1. Using default values. This method is pretty self-explanatory. If you want to have optional parameters, you need to define a default value for those parameters. The best way to show this is with an example: public IHttpActionResult IMPROVING EF CORE PERFORMANCE WITH COMPILED QUERIES Improving EF Core performance with Compiled Queries 20 September 2017 Posted in ef core, performance. EF Core 2.0 is production ready and it's now fully RTM. Therefore, I hope that by now you have had the chance to take it for a spin and use it in your code. PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
CALL MS GRAPH APIS FROM ASP.NET CORE 3.1 Call MS Graph APIs from ASP.NET Core 3.1 22 April 2020 Posted in Authentication, ASP.NET Core, Azure AD, MS Graph. As I spend more time in my role as a PM for Microsoft Identity, the more I realize there is a whole world I don't know about. .NET CORE AUTHENTICATION AND AUTHORISATION USING AUTH0SEE MORE ONCMATSKAS.COM
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. CREATE A PROTECTED .NET CORE 3.1 API THAT CALLS INTO MS Create a protected .NET Core 3.1 API that calls into MS Graph on behalf of a Power App 16 May 2020 Posted in ASP.NET Core, Power Apps, MS Graph, Azure AD, security. In this blog post I'm going to explain how to create a .NET Core API that accepts authenticated requests from a Power App, validates the user and then makes a call into MS Graph to retrieve the appropriate data. SETTING UP MANAGED IDENTITIES FOR ASP.NET CORE WEB APPSEE MORE ONCMATSKAS.COM
.NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
ASP.NET MVC WEBAPI
Today, I'll show you how to create WebAPI controller methods that take optional parameters. 1. Using default values. This method is pretty self-explanatory. If you want to have optional parameters, you need to define a default value for those parameters. The best way to show this is with an example: public IHttpActionResult IMPROVING EF CORE PERFORMANCE WITH COMPILED QUERIES Improving EF Core performance with Compiled Queries 20 September 2017 Posted in ef core, performance. EF Core 2.0 is production ready and it's now fully RTM. Therefore, I hope that by now you have had the chance to take it for a spin and use it in your code. PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
SETTING UP MANAGED IDENTITIES FOR ASP.NET CORE WEB APP Setting up Managed Identities for ASP.NET Core web app running on Azure App Service 01 July 2020 Posted in ASP.NET Core, Azure Managed Identity, security, Azure, Azure AD. A few weeks ago I wrote about Secure application development with Key Vault and Azure Managed Identities which are managed, behind the scenes, by Azure Active Directory.. At the end of that blog post, I promised to PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
IMPROVING EF CORE PERFORMANCE WITH COMPILED QUERIES Improving EF Core performance with Compiled Queries 20 September 2017 Posted in ef core, performance. EF Core 2.0 is production ready and it's now fully RTM. Therefore, I hope that by now you have had the chance to take it for a spin and use it in your code. CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on CREATE A .NET CORE DEAMON APP THAT CALLS MSGRAPH WITH A A couple of days ago I blogged about pulling OneDrive data with MS Graph in .NET Core. I wrote all the code in a console app because it was the simplest way to get me what I needed. Mind you, a console app is not the best way when itASP.NET MVC WEBAPI
Today, I'll show you how to create WebAPI controller methods that take optional parameters. 1. Using default values. This method is pretty self-explanatory. If you want to have optional parameters, you need to define a default value for those parameters. The best way to show this is with an example: public IHttpActionResult CHANGING SOAP MESSAGE DATA AND NAMESPACES WITH C# The solution provided below allows you to change any part of the message on the client side before sending it to the server. This way, you have full control of the generated SOAP XML. First, we need to to implement a custom IClientMessageInspector implementation. This was my way in and I could access the full SOAP message and change it as LOGGING AND TRACING WITH ENTITY FRAMEWORK 6 Logging is important, especially when you have to troubleshoot an issue. That's when you realize that without logging you are "driving blind". Today's post is about logging with Entity Framework 6. I agree that there are tools out there that can help you with EF troubleshooting, such as EXPORT YOUR STORED PASSWORDS FROM CHROME Today, another massive security breach made the news. This time, it was about the breach of 000webhost a free hosting provider. Troy Hunt did a good write up about IMPROVING EF CORE PERFORMANCE WITH COMPILED QUERIES Improving EF Core performance with Compiled Queries 20 September 2017 Posted in ef core, performance. EF Core 2.0 is production ready and it's now fully RTM. Therefore, I hope that by now you have had the chance to take it for a spin and use it in your code. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. CREATE A .NET CORE DEAMON APP THAT CALLS MSGRAPH WITH A A couple of days ago I blogged about pulling OneDrive data with MS Graph in .NET Core. I wrote all the code in a console app because it was the simplest way to get me what I needed. Mind you, a console app is not the best way when it CALL MS GRAPH APIS FROM ASP.NET CORE 3.1 Call MS Graph APIs from ASP.NET Core 3.1 22 April 2020 Posted in Authentication, ASP.NET Core, Azure AD, MS Graph. As I spend more time in my role as a PM for Microsoft Identity, the more I realize there is a whole world I don't know about. CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
LOGGING AND TRACING WITH ENTITY FRAMEWORK 6SEE MORE ON CMATSKAS.COM IMPORTING CSV FILES USING JQUERY AND HTML5 Importing CSV files using jQuery and HTML5 09 April 2014 Posted in HTML 5, JavaScript, jQuery, Web Design, csv. One of the cool features of HTML5 is the new File API that allows the broswer to directly interact with files on the file system. Most modern browsers that support HTML5 can use this API to perform client-side only processing without the need for a round trip to the servers or the ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
IMPROVING EF CORE PERFORMANCE WITH COMPILED QUERIES Improving EF Core performance with Compiled Queries 20 September 2017 Posted in ef core, performance. EF Core 2.0 is production ready and it's now fully RTM. Therefore, I hope that by now you have had the chance to take it for a spin and use it in your code. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. CREATE A .NET CORE DEAMON APP THAT CALLS MSGRAPH WITH A A couple of days ago I blogged about pulling OneDrive data with MS Graph in .NET Core. I wrote all the code in a console app because it was the simplest way to get me what I needed. Mind you, a console app is not the best way when it CALL MS GRAPH APIS FROM ASP.NET CORE 3.1 Call MS Graph APIs from ASP.NET Core 3.1 22 April 2020 Posted in Authentication, ASP.NET Core, Azure AD, MS Graph. As I spend more time in my role as a PM for Microsoft Identity, the more I realize there is a whole world I don't know about. CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
LOGGING AND TRACING WITH ENTITY FRAMEWORK 6SEE MORE ON CMATSKAS.COM IMPORTING CSV FILES USING JQUERY AND HTML5 Importing CSV files using jQuery and HTML5 09 April 2014 Posted in HTML 5, JavaScript, jQuery, Web Design, csv. One of the cool features of HTML5 is the new File API that allows the broswer to directly interact with files on the file system. Most modern browsers that support HTML5 can use this API to perform client-side only processing without the need for a round trip to the servers or the ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
CREATE A .NET CORE DEAMON APP THAT CALLS MSGRAPH WITH A A couple of days ago I blogged about pulling OneDrive data with MS Graph in .NET Core. I wrote all the code in a console app because it was the simplest way to get me what I needed. Mind you, a console app is not the best way when it CALL MS GRAPH APIS FROM ASP.NET CORE 3.1 Call MS Graph APIs from ASP.NET Core 3.1 22 April 2020 Posted in Authentication, ASP.NET Core, Azure AD, MS Graph. As I spend more time in my role as a PM for Microsoft Identity, the more I realize there is a whole world I don't know about. .NET CORE AUTHENTICATION AND AUTHORISATION USING AUTH0 Add Authentication and Authorization to the .NET Core API. The final piece of the puzzle requires that we configure the authentication and authorization middleware in our API. Open the Startup.cs file in the API project and add the following code: public void ConfigureServices ( IServiceCollection services) {. DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
LOGGING AND TRACING WITH ENTITY FRAMEWORK 6 Logging is important, especially when you have to troubleshoot an issue. That's when you realize that without logging you are "driving blind". Today's post is about logging with Entity Framework 6. I agree that there are tools out there that can help you with EF troubleshooting, such as WORKING WITH AZURE EASYAUTH (AZURE APP SERVICE Working with authentication in your apps can sometimes be tricky and every app has its own constraints. But the Azure platform provides developers and organizations with many options when it comes to implementing authentication and authorization, from fully customized, coded solutions to turn-key authentication with little to no codechanges.
CHANGING SOAP MESSAGE DATA AND NAMESPACES WITH C# The solution provided below allows you to change any part of the message on the client side before sending it to the server. This way, you have full control of the generated SOAP XML. First, we need to to implement a custom IClientMessageInspector implementation. This was my way in and I could access the full SOAP message and change it as IMPORTING CSV FILES USING JQUERY AND HTML5 Importing CSV files using jQuery and HTML5 09 April 2014 Posted in HTML 5, JavaScript, jQuery, Web Design, csv. One of the cool features of HTML5 is the new File API that allows the broswer to directly interact with files on the file system. Most modern browsers that support HTML5 can use this API to perform client-side only processing without the need for a round trip to the servers or the CONFIGURE DATABASE MAIL ON SQL SERVER AZURE VM USING T-SQL First we need to enable the email feature on SQL Server which is disabled by default. Next, we will create a new email profile. The next step will create the email account that will be used to send the emails. You will need to change the following as appropriate for your environment: EXECUTE msdb.dbo.sysmail_add_account_sp @account_name HOW TO UPDATE YOUR GIT CREDENTIALS ON WINDOWS Git is awesome and I love it. Plain and simple. It works. Yet, there are occasions when things within Git break. And then you have to go googlebing for the solution. I'm just back from a 2-week holiday and, as expected, my Windows credentials had expired so I changed them. CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. AZURE FUNCTIONS, NODE.JS AND ENVIRONMENT VARIABLES Azure Functions provide us with a local.settings.json file where we can define these variables. For this example, I'll use 3 variables. These variables can be accessed from our code via process.env . We can define as many as you want to allow your Functions to operate. By default, these values are for local testingonly.
.NET CORE AUTHENTICATION AND AUTHORISATION USING AUTH0 Add Authentication and Authorization to the .NET Core API. The final piece of the puzzle requires that we configure the authentication and authorization middleware in our API. Open the Startup.cs file in the API project and add the following code: public void ConfigureServices ( IServiceCollection services) {. AUTOMATE LOGIN FOR AZURE POWERSHELL SCRIPTS WITH SERVICE Automate login for Azure Powershell scripts with Service Principals 23 August 2016 Posted in Azure, PowerShell, Automation, script. Automation is great. It's the bedrock of any successful IT department and the default solution for any task that has to be repeated morethan once.
ASP.NET MVC WEBAPI
Today, I'll show you how to create WebAPI controller methods that take optional parameters. 1. Using default values. This method is pretty self-explanatory. If you want to have optional parameters, you need to define a default value for those parameters. The best way to show this is with an example: public IHttpActionResult UPDATING AN MVC PARTIAL VIEW WITH AJAX Updating an MVC Partial View with Ajax 28 May 2014 Posted in ASP.NET, jQuery, MVC, ajax. Partial views in ASP.NET MVC are great. They allow you to update only a part of the DOM without having to perform a full page refresh or a postback. RESTRICT PUBLIC ACCESS TO YOUR AZURE WEB APPS WITH THE Restrict public access to your Azure Web Apps with the IPSecurityRestrictions option 29 January 2018 Posted in Azure, Website, security, PowerShell, ARM. This is a little unknown gem that I've used a few times as I help customers secure access to their AzureWeb Apps..
DISABLING NUGET PACKAGE RESTORE Disabling NuGet Package Restore 09 July 2014 Posted in NuGet, Visual Studio. Yes, this is counterproductive and a step backwards, but if you are working in an environment where your build/CI server doesn't allow NuGet Package restore then you will need to disable it. ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. AZURE FUNCTIONS, NODE.JS AND ENVIRONMENT VARIABLES Azure Functions provide us with a local.settings.json file where we can define these variables. For this example, I'll use 3 variables. These variables can be accessed from our code via process.env . We can define as many as you want to allow your Functions to operate. By default, these values are for local testingonly.
.NET CORE AUTHENTICATION AND AUTHORISATION USING AUTH0 Add Authentication and Authorization to the .NET Core API. The final piece of the puzzle requires that we configure the authentication and authorization middleware in our API. Open the Startup.cs file in the API project and add the following code: public void ConfigureServices ( IServiceCollection services) {. AUTOMATE LOGIN FOR AZURE POWERSHELL SCRIPTS WITH SERVICE Automate login for Azure Powershell scripts with Service Principals 23 August 2016 Posted in Azure, PowerShell, Automation, script. Automation is great. It's the bedrock of any successful IT department and the default solution for any task that has to be repeated morethan once.
ASP.NET MVC WEBAPI
Today, I'll show you how to create WebAPI controller methods that take optional parameters. 1. Using default values. This method is pretty self-explanatory. If you want to have optional parameters, you need to define a default value for those parameters. The best way to show this is with an example: public IHttpActionResult UPDATING AN MVC PARTIAL VIEW WITH AJAX Updating an MVC Partial View with Ajax 28 May 2014 Posted in ASP.NET, jQuery, MVC, ajax. Partial views in ASP.NET MVC are great. They allow you to update only a part of the DOM without having to perform a full page refresh or a postback. RESTRICT PUBLIC ACCESS TO YOUR AZURE WEB APPS WITH THE Restrict public access to your Azure Web Apps with the IPSecurityRestrictions option 29 January 2018 Posted in Azure, Website, security, PowerShell, ARM. This is a little unknown gem that I've used a few times as I help customers secure access to their AzureWeb Apps..
DISABLING NUGET PACKAGE RESTORE Disabling NuGet Package Restore 09 July 2014 Posted in NuGet, Visual Studio. Yes, this is counterproductive and a step backwards, but if you are working in an environment where your build/CI server doesn't allow NuGet Package restore then you will need to disable it. ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. AZURE FUNCTIONS, NODE.JS AND ENVIRONMENT VARIABLES Azure Functions provide us with a local.settings.json file where we can define these variables. For this example, I'll use 3 variables. These variables can be accessed from our code via process.env . We can define as many as you want to allow your Functions to operate. By default, these values are for local testingonly.
.NET CORE AUTHENTICATION AND AUTHORISATION USING AUTH0 Add Authentication and Authorization to the .NET Core API. The final piece of the puzzle requires that we configure the authentication and authorization middleware in our API. Open the Startup.cs file in the API project and add the following code: public void ConfigureServices ( IServiceCollection services) {. AUTOMATE LOGIN FOR AZURE POWERSHELL SCRIPTS WITH SERVICE Automate login for Azure Powershell scripts with Service Principals 23 August 2016 Posted in Azure, PowerShell, Automation, script. Automation is great. It's the bedrock of any successful IT department and the default solution for any task that has to be repeated morethan once.
ASP.NET MVC WEBAPI
Today, I'll show you how to create WebAPI controller methods that take optional parameters. 1. Using default values. This method is pretty self-explanatory. If you want to have optional parameters, you need to define a default value for those parameters. The best way to show this is with an example: public IHttpActionResult UPDATING AN MVC PARTIAL VIEW WITH AJAX Updating an MVC Partial View with Ajax 28 May 2014 Posted in ASP.NET, jQuery, MVC, ajax. Partial views in ASP.NET MVC are great. They allow you to update only a part of the DOM without having to perform a full page refresh or a postback. RESTRICT PUBLIC ACCESS TO YOUR AZURE WEB APPS WITH THE Restrict public access to your Azure Web Apps with the IPSecurityRestrictions option 29 January 2018 Posted in Azure, Website, security, PowerShell, ARM. This is a little unknown gem that I've used a few times as I help customers secure access to their AzureWeb Apps..
DISABLING NUGET PACKAGE RESTORE Disabling NuGet Package Restore 09 July 2014 Posted in NuGet, Visual Studio. Yes, this is counterproductive and a step backwards, but if you are working in an environment where your build/CI server doesn't allow NuGet Package restore then you will need to disable it. ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. AZURE FUNCTIONS, NODE.JS AND ENVIRONMENT VARIABLES Azure Functions provide us with a local.settings.json file where we can define these variables. For this example, I'll use 3 variables. These variables can be accessed from our code via process.env . We can define as many as you want to allow your Functions to operate. By default, these values are for local testingonly.
.NET CORE AUTHENTICATION AND AUTHORISATION USING AUTH0 Add Authentication and Authorization to the .NET Core API. The final piece of the puzzle requires that we configure the authentication and authorization middleware in our API. Open the Startup.cs file in the API project and add the following code: public void ConfigureServices ( IServiceCollection services) {. AUTOMATE LOGIN FOR AZURE POWERSHELL SCRIPTS WITH SERVICE Automate login for Azure Powershell scripts with Service Principals 23 August 2016 Posted in Azure, PowerShell, Automation, script. Automation is great. It's the bedrock of any successful IT department and the default solution for any task that has to be repeated morethan once.
ASP.NET MVC WEBAPI
Today, I'll show you how to create WebAPI controller methods that take optional parameters. 1. Using default values. This method is pretty self-explanatory. If you want to have optional parameters, you need to define a default value for those parameters. The best way to show this is with an example: public IHttpActionResult UPDATING AN MVC PARTIAL VIEW WITH AJAX Updating an MVC Partial View with Ajax 28 May 2014 Posted in ASP.NET, jQuery, MVC, ajax. Partial views in ASP.NET MVC are great. They allow you to update only a part of the DOM without having to perform a full page refresh or a postback. RESTRICT PUBLIC ACCESS TO YOUR AZURE WEB APPS WITH THE Restrict public access to your Azure Web Apps with the IPSecurityRestrictions option 29 January 2018 Posted in Azure, Website, security, PowerShell, ARM. This is a little unknown gem that I've used a few times as I help customers secure access to their AzureWeb Apps..
DISABLING NUGET PACKAGE RESTORE Disabling NuGet Package Restore 09 July 2014 Posted in NuGet, Visual Studio. Yes, this is counterproductive and a step backwards, but if you are working in an environment where your build/CI server doesn't allow NuGet Package restore then you will need to disable it. ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND Create an Azure AD protected API using Azure Functions and .NET Core 3.1 29 May 2020 Posted in Serverless, Functions, Azure AD, Authentication, .NET Core. It's been a long time since I got the chance to play with Azure Functions, one of my all time favorite Azureservices.
IMPROVE YOUR UNIT TESTS WITH MOQ AND MOCK.OF() Improve your unit tests with Moq and Mock.Of() 10 December 2015 Posted in unit test, moq, mocking. Spending my days writing lots of unit tests latelyYou know the drill. For most of my tests, I like to use Moq, the .NET mocking library that allows you to mock objects and services.It's one of the best libraries for complementing and supporting unit tests. .NET CORE DEPENDENCY INJECTION WITH CONSTRUCTOR PARAMETERS This post will be short and sweet, albeit one that caused me a bit of a headache. I recently worked on an ASP.NET Core project and I wanted to take advantage of the built-in Dependency Injection service to inject various services to the controllers. However, one of theservices
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
DEBUGGING C# (.NET CORE) AZURE FUNCTIONS WITH VS CODE Open the terminal of your choice and run the func init command. This should generate the following files: Open the launch.json in your favourite editor (let's say. VS Code ). The vanilla/unedited version of the file should look like this: Now let's add the following configuration to allow VS Code to debug our C# function: The finalcode in
COPY AZURE BLOB DATA BETWEEN STORAGE ACCOUNTS USING FUNCTIONSSEE MOREON CMATSKAS.COM
PROCESSING PAYMENTS AND WITH STRIPE, JAVASCRIPT AND C#SEE MORE ONCMATSKAS.COM
CONFIGURE A RUNONCE TASK ON WINDOWS Configure a RunOnce task on Windows 13 July 2016 Posted in PowerShell, Windows, Automation, Utility. Today was one of these days. Faced with a new problem I've never come across before. I was trying to configure a task to run once and only once on WORKING WITH AZURE ARM TEMPLATES IN VISUAL STUDIO CODE Working with Azure ARM Templates in Visual Studio Code 02 June 2016 Posted in Azure, VS Code, ARM. These days I spend a lot of time working with Azure. I also make a conscious effort to use all the tools available when managing my Azure resources. EF CORE MIGRATIONS WITH EXISTING DATABASE SCHEMA AND DATA add-migration MyMigrationName -ignoreChanges. to setup my first migration script against the existing database and data. This command creates a baseline, a starting point to allow us to apply further schema changes through migrations. Unfortunately, this is one of the EF Core features that's missing. The -ignoreChanges parameter is notavailable.
PROCESSING PAYMENTS ON YOUR SITE USING STRIPE AND C# Processing payments on your site using Stripe and C# 08 January 2014 Posted in Website, ASP.NET, MVC, stripe, c#. Update: The current example of processing payments is NOT PCI-compliant as the card details are posted to the server. A better approach is to use the Stripe.js to generate the token and then process the payment - thanks to Christian Bryant for raising it in the comments. AZURE FUNCTIONS, NODE.JS AND ENVIRONMENT VARIABLES Azure Functions provide us with a local.settings.json file where we can define these variables. For this example, I'll use 3 variables. These variables can be accessed from our code via process.env . We can define as many as you want to allow your Functions to operate. By default, these values are for local testingonly.
.NET CORE AUTHENTICATION AND AUTHORISATION USING AUTH0 Add Authentication and Authorization to the .NET Core API. The final piece of the puzzle requires that we configure the authentication and authorization middleware in our API. Open the Startup.cs file in the API project and add the following code: public void ConfigureServices ( IServiceCollection services) {. AUTOMATE LOGIN FOR AZURE POWERSHELL SCRIPTS WITH SERVICE Automate login for Azure Powershell scripts with Service Principals 23 August 2016 Posted in Azure, PowerShell, Automation, script. Automation is great. It's the bedrock of any successful IT department and the default solution for any task that has to be repeated morethan once.
ASP.NET MVC WEBAPI
Today, I'll show you how to create WebAPI controller methods that take optional parameters. 1. Using default values. This method is pretty self-explanatory. If you want to have optional parameters, you need to define a default value for those parameters. The best way to show this is with an example: public IHttpActionResult UPDATING AN MVC PARTIAL VIEW WITH AJAX Updating an MVC Partial View with Ajax 28 May 2014 Posted in ASP.NET, jQuery, MVC, ajax. Partial views in ASP.NET MVC are great. They allow you to update only a part of the DOM without having to perform a full page refresh or a postback. RESTRICT PUBLIC ACCESS TO YOUR AZURE WEB APPS WITH THE Restrict public access to your Azure Web Apps with the IPSecurityRestrictions option 29 January 2018 Posted in Azure, Website, security, PowerShell, ARM. This is a little unknown gem that I've used a few times as I help customers secure access to their AzureWeb Apps..
DISABLING NUGET PACKAGE RESTORE Disabling NuGet Package Restore 09 July 2014 Posted in NuGet, Visual Studio. Yes, this is counterproductive and a step backwards, but if you are working in an environment where your build/CI server doesn't allow NuGet Package restore then you will need to disable it. ENFORCING HTTPS-ONLY TRAFFIC AND HSTS SETTINGS FOR AZURE Enforcing HTTPS-only traffic and HSTS settings for Azure Web Apps and Azure Functions 23 November 2017 Posted in Azure, Website, Functions, Serverless, security. I hope that by now your site is running underHTTPS.
Toggle navigation
* Home
* About
CHRISTOS
MATSKAS
Coding and more
* __
* __
* __
* __
Page 1 of 32
Older Posts__
SETTING UP MANAGED IDENTITIES FOR ASP.NET CORE WEB APP RUNNING ONAZURE APP SERVICE
01 July 2020 Posted in ASP.NET Core , Azure Managed Identity , security, Azure , Azure AD
A few weeks ago I wrote about Secure application development with Key Vault and Azure Managed Identities which are managed, behind the scenes, by Azure Active Directory. At the end of that blog post, I promised to show you how to take your app from local development to production seamlessly, leveraging Managed Identities on the Azure App Service. What does the app currently doBefore setting things up on Azure, let's remind ourselves quickly what the application does and where Azure Managed Identities and Key Vault fit. The Razor Web App retrieves two secrets from Key Vault without having toconfigure …
------------------------- WORKING WITH AZURE EASYAUTH (AZURE APP SERVICE AUTHENTICATION) AND.NET CORE 3.1
16 June 2020 Posted in ASP.NET Core , Azure AD , Authentication , security Working with authentication in your apps can sometimes be tricky and every app has its own constraints. But the Azure platform provides developers and organizations with many options when it comes to implementing authentication and authorization, from fully customized, coded solutions to turn-key authentication with little to no code changes. Imagine the scenario where you already have an app that was coded without authentication. This could be an app that was developer to run internally but now it needs to be moved to Azure. To secure access to the app, you have 2 options: Add authentication in code sothat …
------------------------- CREATE SAMPLE DATA FOR COSMOS DB WITH .NET CORE 03 June 2020 Posted in .NET Core , CosmosDB Aren't you bored of stockmarket ticker and ToDo sample apps and data? Do you long for some more realistic data to build great app samples around it? Well, guess what? Problem solved? How do you feel about Volcanos? If you love them (and fear them) like I do, then this is the blog for you. below I'll show you how to create a small console app that generates sample data and then populates a Cosmos DB database with it. PrerequisitesSince Cosmos DB is an Azure service, you'll need and Azure Subscription. Grab one for FREE here! For this examplewe …
------------------------- CREATE AN AZURE AD PROTECTED API THAT CALLS INTO COSMOS DB WITH AZURE FUNCTIONS AND .NET CORE 3.103 June 2020
In today's post we will see how we can create an Azure AD protected API using Azure Functions. The API will use Cosmos DB as a backend and authorized users will be able to interact with the Cosmos DB data based on their permissions. We will be using .NET Core 3.1 and C# to put all this together. There are 3 main components here Azure AD to for token validation and authorizationThe Function AppThe Cosmos DB databaseFirst, we will need to create and populate our Cosmos DB with some data. If you already have sample data then that'sawesome, …
------------------------- CREATE AN AZURE AD PROTECTED API USING AZURE FUNCTIONS AND .NET CORE3.1
29 May 2020 Posted in Serverless , Functions , Azure AD , Authentication, .NET Core
Learn how to create a protected API using .NET Core 3.1, Azure Functions and Azure Active Directory … ------------------------- CREATE A PROTECTED .NET CORE 3.1 API THAT CALLS INTO MS GRAPH ON BEHALF OF A POWER APP 16 May 2020 Posted in ASP.NET Core , Power Apps , MS Graph , Azure AD, security
In this blog post I'm going to explain how to create a .NET Core API that accepts authenticated requests from a Power App, validates the user and then makes a call into MS Graph to retrieve the appropriate data. All secured via Azure AD while using the latest (and funkiest) Microsoft.Identity.Web library for authentication and the MS Graph SDK for getting the Graph data. If you haven't used the Microsoft.Identity.Web NuGet package yet, then I would urge you to have a look at the repo and start integrating it with your ASP.NETCore apps. The …
------------------------- CREATE A .NET CORE DEAMON APP THAT CALLS MSGRAPH WITH A CERTIFICATE 08 May 2020 Posted in MS Graph , Azure AD, .NET Core
A couple of days ago I blogged about pulling OneDrive data with MS Graph in .NET Core. I wrote all the code in a console app because it was the simplest way to get me what I needed. Mind you, a console app is not the best way when it comes to creating user interactive apps but it's convenient. However, convenience comes with a price: I ended up writing a console app that needs user interaction for authenticating the app. So what is the right way to do this? How can we create a headless app/daemon that can still … ------------------------- WORKING WITH ONEDRIVE DATA AND MS GRAPH IN .NET CORE 06 May 2020 Posted in Azure AD , MS Graph, .NET Core
Learn how to interact with your OneDrive data via the GraphAPI, Azure AD and .NET Core. In this blog post I explain how to use .NET Core and the Graph API with the latest MSAL library to authenticate a user and then provide access to the OneDrive data. Full code sample also available on GitHub … -------------------------Page 1 of 32
Older Posts__
cmatskas © 2021
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0