MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

Top 5 most used .Net Libraries that are Open Source

Published on 24 August 15
3120
0
1
Top 5 most used .Net Libraries that are Open Source - Image 1
Open Source Libraries are meant to help us out with problems and solve them effectively. Great open source libraries would include fantastic documentation and extensive library frameworks that allow easy plug-ins.

So without further ado, here are 5 open source libraries that you may like to use for your purposes.
1. Formo
As many programmers of console app or web applications should know managing yourapp.config's and web.config's application settings is never amusing, especially if you are required to read DateTime or int values.

However, by using Formo, it can solve your problems rather handsomely by simply uncovering the settings as a dynamic object, users can read the codes much easily. You can say that Formo is known for perfect reading of config files rather perfectly.

For example,
dynamic config = new Formo.Configuration();

// This simply reads the string
string apiEndPoint = config.ApiEndPoint;

// This converts the value in to an int, no
// need to do any conversion in your code
int timeout = config.ApiTimeout<int>();

2. Postal
The concept of Postal is simple; your views folder has an additional subdirectory called Emails which contains all your Razor Email templates and anything else that Razor has to offer such as layouts, strongly-typed models and Url-helpers.

An example of ending an e-mail:
dynamic email = new Email("Example"); // Uses Views\Emails\Example.cshtml
email.To = "webninja@example.com";
email.FunnyLink = DB.GetRandomLolcatLink();
email.Send();
Fundamentally, you can create an Email object and insert some properties onto it, which you can then place inside your Email template.

But, of course you can use strongly-typed Models if you want to. Postal is compatible with Web.config's smtp settings which makes it blend well with services like Mandrill or Postmark, providing users with awesome features including image inlining.

3. Topshelf
Writing a Windows Service can be very hard. Writing and configuring the part that creates the service on the system is deemed to be disastrous. Furthermore, if you follow the Visual Studio Way of doing things, the mess exacerbates. With the tremendously complex coding required many are looking for an easy way out. And their prayers have been answered with Topshelf Service.

Really the software is a lifesaver. First you create a console app and add Topshelf through NuGet. Then, you create a class that holds your service logic. The only important thing is that the class must have some kind of Start and Stopmethod and finally the main method of theProgram.cs should look something like this:

public static void Main()
{
HostFactory.Run(c =>
{
c.Service<BookSyncService>(s =>
{
s.WhenStarted(tc => tc.Start());
s.WhenStopped(tc => tc.Stop());
});;

c.UseNLog();

c.SetServiceName("BookSync");
c.SetDisplayName("Book Sync Service");
c.SetDescription("Sync books");
});
}
The result is a simple .exe file that you can use to install, uninstall, start and stop your Windows Service. To install it you simply go to the command-line and execute
.\yourservice.exe install

4. Hangfire
Hangfire is an open source library which enables the user to seamlessly add background processing to your ASP.net application. It's undeniably easy to start and scheduling arrangement work can be very direct to use.

Here's why:

BackgroundJob.Enqueue(() => Console.WriteLine;

Furthermore, the built-in dashboard provides you with a great view of what is happening and what issues may arise.

Hangfire also enables you to structure your background jobs as you see fit as all you need is a public method.

Lastly, Hangfire processes your codes and divide your codes into places like Windows Services, Console Applications and Azure Web Workers.

5. CsvHelper
If you happen to handle data from legacy systems, the CSV files are known to be commonly used when exporting data. Previously, people would copy/paste from codeproject.

But that all changed with CsvHelper. The key feature of the CsvHelper is how CsvClassMap is able to populate a certain POCO class. After which, you can use the CsvReader to convert each row into an instance of that POCO class. This means you don't have to know every single detail occur when you read the CSV files. Furthermore, the class maps of the CsvHelper provide a lot of configuration options
c.SetServiceName("BookSync");
c.SetDisplayName("Book Sync Service");
c.SetDescription("Sync books");
The result is a simple .exe file that you can use to install, uninstall, start and stop your Windows Service. To install it you simply go to the command-line and execute
.\yourservice.exe install

Before I conclude, the main reason for having open source libraries is to reduce your workload and grant you convenience and efficiency by looking out to alleviate all the tedious problems such as background processing or creating a Windows Service. Hence, this batch of top 5 open source libraries are here to provide you with advantages that paves the way for you to better focus on your applications.

For Career opportunities in .Net Technologies visit



















































































Top 5 most used .Net Libraries that are Open Source - Image 1

Open Source Libraries are meant to help us out with problems and solve them effectively. Great open source libraries would include fantastic documentation and extensive library frameworks that allow easy plug-ins.

So without further ado, here are 5 open source libraries that you may like to use for your purposes.

1. Formo

As many programmers of console app or web applications should know managing yourapp.config's and web.config's application settings is never amusing, especially if you are required to read DateTime or int values.

However, by using Formo, it can solve your problems rather handsomely by simply uncovering the settings as a dynamic object, users can read the codes much easily. You can say that Formo is known for perfect reading of config files rather perfectly.

For example,

dynamic config = new Formo.Configuration();

// This simply reads the string
string apiEndPoint = config.ApiEndPoint;

// This converts the value in to an int, no
// need to do any conversion in your code
int timeout = config.ApiTimeout();

2. Postal

The concept of Postal is simple; your views folder has an additional subdirectory called Emails which contains all your Razor Email templates and anything else that Razor has to offer such as layouts, strongly-typed models and Url-helpers.

An example of ending an e-mail:

dynamic email = new Email("Example"); // Uses Views\Emails\Example.cshtml
email.To = "webninja@example.com";
email.FunnyLink = DB.GetRandomLolcatLink();
email.Send();

Fundamentally, you can create an Email object and insert some properties onto it, which you can then place inside your Email template.

But, of course you can use strongly-typed Models if you want to. Postal is compatible with Web.config's smtp settings which makes it blend well with services like Mandrill or Postmark, providing users with awesome features including image inlining.

3. Topshelf

Writing a Windows Service can be very hard. Writing and configuring the part that creates the service on the system is deemed to be disastrous. Furthermore, if you follow the Visual Studio Way of doing things, the mess exacerbates. With the tremendously complex coding required many are looking for an easy way out. And their prayers have been answered with Topshelf Service.

Really the software is a lifesaver. First you create a console app and add Topshelf through NuGet. Then, you create a class that holds your service logic. The only important thing is that the class must have some kind of Start and Stopmethod and finally the main method of theProgram.cs should look something like this:

public static void Main()
{
HostFactory.Run(c =>
{
c.Service(s =>
{
s.WhenStarted(tc => tc.Start());
s.WhenStopped(tc => tc.Stop());
});;

c.UseNLog();

c.SetServiceName("BookSync");
c.SetDisplayName("Book Sync Service");
c.SetDescription("Sync books");
});
}

The result is a simple .exe file that you can use to install, uninstall, start and stop your Windows Service. To install it you simply go to the command-line and execute
.\yourservice.exe install

4. Hangfire

Hangfire is an open source library which enables the user to seamlessly add background processing to your ASP.net application. It's undeniably easy to start and scheduling arrangement work can be very direct to use.

Here's why:

BackgroundJob.Enqueue(() => Console.WriteLine;

Furthermore, the built-in dashboard provides you with a great view of what is happening and what issues may arise.

Hangfire also enables you to structure your background jobs as you see fit as all you need is a public method.

Lastly, Hangfire processes your codes and divide your codes into places like Windows Services, Console Applications and Azure Web Workers.

5. CsvHelper

If you happen to handle data from legacy systems, the CSV files are known to be commonly used when exporting data. Previously, people would copy/paste from codeproject.

But that all changed with CsvHelper. The key feature of the CsvHelper is how CsvClassMap is able to populate a certain POCO class. After which, you can use the CsvReader to convert each row into an instance of that POCO class. This means you don't have to know every single detail occur when you read the CSV files. Furthermore, the class maps of the CsvHelper provide a lot of configuration options

c.SetServiceName("BookSync");
c.SetDisplayName("Book Sync Service");
c.SetDescription("Sync books");

The result is a simple .exe file that you can use to install, uninstall, start and stop your Windows Service. To install it you simply go to the command-line and execute
.\yourservice.exe install

Before I conclude, the main reason for having open source libraries is to reduce your workload and grant you convenience and efficiency by looking out to alleviate all the tedious problems such as background processing or creating a Windows Service. Hence, this batch of top 5 open source libraries are here to provide you with advantages that paves the way for you to better focus on your applications.

For Career opportunities in .Net Technologies visit

ASP.NET | VB.NET | Sharepoint | C-Sharp (C#)

This blog is listed under Open Source and Development & Implementations Community

Post a Comment

Please notify me the replies via email.

Important:
  • We hope the conversations that take place on MyTechLogy.com will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.
You may also be interested in
Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top