ASKit.Common 1.0.0

dotnet add package ASKit.Common --version 1.0.0
NuGet\Install-Package ASKit.Common -Version 1.0.0
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="ASKit.Common" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ASKit.Common --version 1.0.0
#r "nuget: ASKit.Common, 1.0.0"
#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.
// Install ASKit.Common as a Cake Addin
#addin nuget:?package=ASKit.Common&version=1.0.0

// Install ASKit.Common as a Cake Tool
#tool nuget:?package=ASKit.Common&version=1.0.0

ASKit.Common

Common definitions, services, extensions and helpers.

ASKit.Common namespace

  • Helpers: OsHelper
  • Services: CliBaseService
  • record: KvArg

An example of using CliBaseService and OsHelper:

var content = "Hello world";
(var shell, var shellKey) = OsHelper.DefaultShell();
var cli = new CliBaseService(shell);
var processResult = await cli.ExecuteCommand($"{shellKey} echo {content}");
// or (type other than **string** can be used if the CLI tool returns JSON data)
var processResult2 = await cli.ExecuteCommand<string>(
					new KvArg[] { new KvArg(shellKey, $"echo {content}") });
Assert.Equal(content, processResult.Result);
Assert.Equal(content, processResult2.Result);

// Acceptable option
var expected = DateTime.Now;
content = JsonSerializer.Serialize<DateTime>(expected);
var typedProcessResult = await cli.ExecuteCommand<DateTime>
					(new KvArg[] { new KvArg(shellKey, $"echo {content}") });
var retDateTime = typedProcessResult.Result;
Assert.Equal(expected, retDateTime);

ASKit.Common.Extensions namespace

  • enum: TimePeriod
  • record: DateTimeRange, DateTimeOffsetRange
  • extensions for: DateTime and DateTimeOffset

ASKit.Common.Data namespace

  • IAuditableWithDelTime, IAuditableTime, IDeletableTime
  • IAuditableWithDel, IAuditable

ASKit.Common.Mail namespace

Mail service definitions:

  • ISkMailService
  • SkMailMessage, SkAttachment
  • SkMailOptions, SkMailTextFormat, SkSmtpDeliveryMethod

Used in the ASKit.Mail.MailKit library.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ASKit.Common:

Package Downloads
ASKit.Mail.MailKit

Implementing ASKit.Common.Mail.IMailService using MailKit

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 185 7/26/2023