DNA 1.0.7867.27064

dotnet add package DNA --version 1.0.7867.27064
                    
NuGet\Install-Package DNA -Version 1.0.7867.27064
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DNA" Version="1.0.7867.27064" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DNA" Version="1.0.7867.27064" />
                    
Directory.Packages.props
<PackageReference Include="DNA" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DNA --version 1.0.7867.27064
                    
#r "nuget: DNA, 1.0.7867.27064"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DNA@1.0.7867.27064
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DNA&version=1.0.7867.27064
                    
Install as a Cake Addin
#tool nuget:?package=DNA&version=1.0.7867.27064
                    
Install as a Cake Tool

Easily turn your console app into an application that can run as a windows service or console app depending on environment.

public class Program : DNA.Program
{
   static void Main(string[] args)
   {
      DNA.Program.Main(() => {
            DefLogs.Log.O("I'm a service writing to a logfile!");
      }, args);
   }
}

Easily execute post build code:

[PostBuildExecute]
public static void UnimportantFunctionName()
{
	//I get run on postbuild!

	//Requirements:
		/*Post-build event command line in project:*/
		//DNA --postbuild=$(TargetFileName)
}

Easily add custom command line parameters:

DNA.Utils.CommandLineProcessor.Commands.Add(new CommandLineArgument("--file", (arg) =>
{
  // this code will run if the exe is passed "-f" or "--file" as an argument
  // -f=document.txt
  Log.O(String.Format("Deleting document: {0}",(string)args));
  //Output: 
  //Deleting document: document.txt
})

default commands :

-h, --help -i, --install (install as a service on this machine based off config data, requires Admin) -u --uninstall (uninstalls the service)

Easily spin up an API focused micro-webserver that supports TLS, dynamic cert generation & Basic Auth. Add commands to execute dynamic functions and return real time data - including options to specify mime type & http response codes. Deliver all kinds of data including html, css, javascript, json, images etc. Accept commands to run functions you specify, such as restarting the service remotely.

	DNA.Web.Monitor server = new Web.Monitor();
	server.Pages.Add("GetTime", (url) =>
	{
		return new Web.Payload(new
		{
			CurrentTime = DateTime.Now
		});
	});
	server.Start();
			

Easily Cache data of any data type in memory for any time with built-in expiry-based garbage collection. If a key is not specified, the filename+codeline is used to encourage usage in loops or frequent functions.

    var data1 = Cache.Hit(() => { return new Random().Next(); });
    var data2 = Cache.Hit(() => { return new Guid(); }, 1000); //1 second cache
    var data3 = Cache.Hit(() => { return DateTime.Now; }, 1000, "key-date" ); //specify key
Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.7867.27064 973 7/16/2021
1.0.7867.24512 443 7/16/2021
1.0.7103.26270 930 6/13/2019
1.0.7103.21414 732 6/13/2019
1.0.7103.18568 720 6/13/2019
1.0.7103.17431 709 6/13/2019
1.0.7047.25172 775 4/18/2019
1.0.7044.28634 778 4/15/2019
1.0.7044.24712 773 4/15/2019
1.0.7044.23301 767 4/15/2019
1.0.7041.33572 785 4/12/2019
1.0.7041.33140 759 4/12/2019
1.0.7041.30613 753 4/12/2019
1.0.7038.33487 796 4/9/2019
1.0.7038.32950 777 4/9/2019
1.0.7030.29795 769 4/1/2019
1.0.7017.18080 760 3/19/2019
1.0.7004.22597 769 3/6/2019
1.0.6998.31030 769 2/28/2019
1.0.6998.24090 762 2/28/2019
1.0.6997.22107 754 2/27/2019
1.0.6992.22135 767 2/22/2019
1.0.6992.21321 800 2/22/2019
1.0.6992.20411 757 2/22/2019
1.0.6992.19579 750 2/22/2019
1.0.6990.18383 841 2/20/2019
1.0.6988.19684 826 2/18/2019
1.0.6988.17558 861 2/18/2019
1.0.6975.31119 856 2/5/2019
1.0.6823.22069 1,041 9/6/2018
1.0.6815.28303 1,005 8/29/2018
1.0.6815.22496 990 8/29/2018
1.0.6810.24655 1,018 8/24/2018
1.0.6809.29675 1,004 8/23/2018
1.0.6809.26793 993 8/23/2018
1.0.6809.26732 990 8/23/2018
1.0.6809.21663 997 8/23/2018
1.0.6806.23018 1,054 8/20/2018
1.0.6806.20400 1,052 8/20/2018
1.0.6806.18909 1,066 8/20/2018
1.0.6766.24392 1,440 7/12/2018
1.0.6760.18511 1,407 7/5/2018
1.0.6757.17200 1,381 7/2/2018
1.0.6752.21038 1,400 6/27/2018
1.0.6751.29941 1,184 6/26/2018
1.0.6751.28843 1,186 6/26/2018
1.0.6747.31761 1,514 6/22/2018
1.0.6747.30872 1,475 6/22/2018
1.0.6747.30107 1,401 6/22/2018
1.0.6747.19678 1,376 6/22/2018
1.0.6731.4592 1,407 6/6/2018
1.0.6731.4063 1,422 6/6/2018
1.0.6730.38099 1,400 6/5/2018
1.0.6730.36712 1,397 6/5/2018
1.0.6730.19338 1,400 6/5/2018
1.0.6730.18329 1,415 6/5/2018
1.0.6726.19077 1,452 6/1/2018
1.0.6725.31878 1,359 5/31/2018
1.0.6725.21099 1,495 5/31/2018
1.0.0.31480 1,411 5/24/2018
1.0.0.31169 1,389 5/30/2018
1.0.0.30969 1,399 5/24/2018
1.0.0.29226 1,431 5/24/2018
1.0.0.28797 1,406 5/24/2018
1.0.0.26789 1,420 5/24/2018
1.0.0.24104 1,413 5/24/2018
1.0.0.23612 1,404 5/24/2018
1.0.0.22614 1,433 5/24/2018
1.0.0.1 1,439 5/24/2018
1.0.0 1,411 5/24/2018