background preloader

Coding

Facebook Twitter

First Steps: Exploring .NET Core and ASP.NET Core - Rick Strahl's Web Log. .NET Core and ASP.NET Core 1.0 are finally here, and in this post I'll show how to get started with these new tools using the command line tooling. This is not meant to be your typical getting started tutorial that jumps right into Visual Studio and creates a Web project from there. Rather, the purpose of this post is to demonstrate some of the core underpinnings of how .NET Core and ASP.NET Core projects are bootstrapped and using the command line tooling is actually the best way to demonstrate this.

I'll start at the beginning with 'HelloWorld' then add additional pieces and ASP.NET and demonstrate how to deploy and then run the application both on Windows and a Mac. You can find the code for this simple walkthrough at: ASP.NET From Scratch Sample on GitHub If you're brand new to .NET Core and what it all means you might also enjoy reading the Overview post first: ASP.NET and .NET Core Overview Command Line Tooling Start by downloading the .NET SDK from The steps are:

Tomcat

Reactive Extensions. The Ultimate Ajax Object. Filed: Thu, Mar 08 2007 under Programming|| Tags: ajax javascript object post get In my recent article Ten Javascript Tools Everyone Should Have I offered an AJAX object as the 10th tool. After publication, I received quite a number of requests to document the object, and so document it I shall. Introduction This object represents the pinnacle of my attempts to create a flexible and robust Ajax object. It's small, compact, object oriented, easy to follow and can handle multiple, concurrent, simultaneous requests, something the hello world tutorials always seem to miss.

An Object Lesson Creating a new ajaxObject This AJAX snippet is a javascript object. When you create the variable assignment, you pass the URL you want that that Ajax object to call. Var myRequest = new ajaxObject(' Defining the Ajax Callback Function var myRequest = new ajaxObject(' processData); Making the call: Initiating the AJAX request. updating. Exploit Exercises. LINQ Examples. Array Class Collections File Keyword String .NET ASP.NET Cast Compression Data Delegate Directive Enum Exception If Interface LINQ Loop Method Number Process Property Regex Sort StringBuilder Struct Switch Time Windows WPF Imperative code describes how to complete an algorithm step-by-step. Declarative code instead describes the end result of that algorithm. LINQ is a declarative syntax form.

It makes some computational tasks easier. Intro LINQ (language integrated query) introduces extension methods. Some of these methods are more helpful than others. Example:We use the Average extension method to average all the elements in an int array. Tip:The Average method is implemented as an extension method within the .NET Framework. Extension Method Based on: .NET 4.5 Program that uses LINQ extension: C# using System; using System.Linq; class Program { static void Main() { int[] array = { 1, 3, 5, 7 }; Console.WriteLine(array.Average()); } } Output 4 Convert ToArrayToDictionaryToListToLookup Mutate. Improving application Start up time: GeneratePublisherEvidence setting in Machine.config - Amol Ravande's Performance blog. Background : When assemblies are authenticode signed, the signed assemblies need to be verified by the certificate authority.

When CA certificate is not present on the same machine the assemblies require network or internet access. If the signed assemblies are installed on machine where CA certificate is not on the same machine and does not have network/internet access the .NET thread might timeout waiting to connect. Below is one case study I have presented. There are other ways to avoid this performance issue including performing strong name signing of assemblies, placing the CA certificate on the same machine How to : Use the following setting in the Machine.config in the runtime tag Case study : In a recent engagement, the site home page took ~54 seconds to load on IIS reset. 00000000`03a0b550 000007fe`faf12e58 cryptnet!

00000000`03a0b850 000007fe`faf145fa cryptnet! 00000000`03a0ba40 000007fe`faf1b826 cryptnet! 00000000`03a0bb70 000007fe`faf141cb cryptnet!

Virtual machine

F-Script Home. Reactive Extensions. C++