Tuesday, December 8, 2020
How to build .NETCORE app using docker and get output
Below is the docker file that I am going to use for build.
Then using below shell file, you can build and take out .dlls.
how to run it
$./dockerBuild.sh
Friday, November 6, 2020
Get SSL certificate using .NET Core and .NET
You can achieve this using HttpClientHandler Class and HttpClientHandler.ServerCertificateCustomValidationCallback Property.
Sample code:
Please add a reference to System.Security
Saturday, February 22, 2020
Dynamic dependency injection .NET Core WebAPI
It is being a long time after my last blog post here. I already moved to .NET Core from .NET Framework almost two years ago. And I must say it has been made my life easier. Well I can say I am intrigued with in build dependency injection.
Recently I got a requirement that needs two different implementations for single interface.
Classes : ProcessExcelFiles.cs
ProcessCsvFiles.cs
Interface : IFileUploadContentProcess.cs
Purpose of this two classes are process uploaded xlsx file or csv file.
First register class files as your desired way.
Then use a lambda function to parameterize interfaces to implementation register.
How to use:
Classes : ProcessExcelFiles.cs
ProcessCsvFiles.cs
Interface : IFileUploadContentProcess.cs
Purpose of this two classes are process uploaded xlsx file or csv file.
First register class files as your desired way.
Then use a lambda function to parameterize interfaces to implementation register.
How to use:
Wednesday, January 14, 2015
Consume wcf service with wsHttpBinding using PHP Soap Client
Recently I wrote blog post on accessing wcf using php. But that was with basicHttpBinding. Somehow after long research I found how to consume wcf with wsHttpBinding. Follow the codes,
Tuesday, January 13, 2015
How to move WordPress from local server to live site
Many of us develop wordpress sites using local server in order
to speed up the development process. Issue comes with moving website to live
host. Even we configured MySql and wp-config.php files correctly we can see
some broken links. Here I list down steps you need to host in a live environment.
Step 1 : Configure the Mysql
Log in to cpanel and create a database, add user and assign
user to database
Step 2 : Change the wp-config.php file
Step 3 : Upload sql and files to live host
You can upload website files using ftp client or directly
using cpanel file manager.
Upload sql
You need to log to phpmyadmin (localhost/phpmyadmin) in your
local server and export database to .sql file
Open .sql using text editor and change the following changes
according to your database name
Open your live phpmyadmin and import the .sql file
Step 4: Fix links
Run below sql queries according to your domain names
Everything should work now. Happy Wordpressing :)
Tuesday, July 15, 2014
Call WCF service using PHP
I have a WCF service used by a .net application. Due to some library issues I have to change .net application in to PHP language. Rather
than creating a new web service, there is a simple way of accessing WCF using PHP.
But there are few concerns. You cannot use WSHttpBinding with PHP. I have to
change my bindings in to basicHttpBinding because PHP soap protocols are notsupporting wshttpbindings.
Subscribe to:
Posts (Atom)