Process.Environment 1.0.4

dotnet add package Process.Environment --version 1.0.4
                    
NuGet\Install-Package Process.Environment -Version 1.0.4
                    
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="Process.Environment" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Process.Environment" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Process.Environment" />
                    
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 Process.Environment --version 1.0.4
                    
#r "nuget: Process.Environment, 1.0.4"
                    
#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 Process.Environment@1.0.4
                    
#: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=Process.Environment&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Process.Environment&version=1.0.4
                    
Install as a Cake Tool

Основные функции для работы со средой

В данном компоненте реализованные следующие функции

Диаграма классов

Статический класс для получения идентификаторов процесса

namespace Process.Environment
{
    /// <summary>
    /// Current Environment for using in project
    /// </summary>
    public static class CurrentEnvironment
    {
	    /// Gets or sets the container.
        /// The container.
        public static string Container // Возвращает текущее имя контейнера
        /// Gets the unique identifier.
        /// The unique identifier.
        public static string UniqueID // Возвращает уникальный идентификатор GUID маленькими буквами без дефисов и скобок действительный на все время работы приложения

        /// Gets the unique identifier now.
        /// The unique identifier now.
        public static string UniqueIDNow // Возвращает уникальный идентификатор GUID маленькими буквами без дефисов и скобок при каждом запросе новый идентификатор


    }
}

Атрибут для пропуска тестирования

namespace Process.Environment
{
    /// Attribute for skip coverage test
    public class NotNeedTestingAttribute : Attribute //при установке данного атрибута проверка на покрытие кода тестами будет исключена для объекта кода с данным атрибутом
}

Статический класс упрощающий работы с DateTime

	/// Adds the workdays.
    public static DateTime AddWorkdays(this DateTime originalDate, int workDays) // Добавляем только рабочие дни

    /// Determines whether this instance is holiday.
    public static bool IsHoliday(this DateTime originalDate) // проверка на праздники пока только новый год май и восьмое марта

Статический класс упрощающий работы с JSON

namespace Process.Environment
{
    /// extension methods for JSON
    public static class JHelp
    {

        /// From json.
        public static object FromJson(this string value, Type tp)

        /// From json.
        public static T FromJson<T>(this string value)

        /// Froms the json automatic.
        public static object FromJsonAuto(this string value, Type tp)

        /// Froms the json automatic.
        public static T FromJsonAuto<T>(this string value)

        /// Froms the json all.
        public static object FromJsonAll(this string value, Type tp)

        /// Froms the json all.
        public static T FromJsonAll<T>(this string value)

        /// Converts to json.
        public static string ToJson(this object value)

        /// Converts to json.
        public static string ToJson(this object value, bool formating)

        /// Converts to json auto.
        public static string ToJsonAuto(this object value)

        /// Converts to json auto.
        public static string ToJsonAuto(this object value, bool formating)

        /// Converts to json all.
        public static string ToJsonAll(this object value)

        /// Converts to json all.
        public static string ToJsonAll(this object value, bool formating)

        /// Memories the stream to json.
        public static string MemoryStreamToJson(this MemoryStream value)

        /// Memories the stream from json.
        public static object MemoryStreamFromJson(this string value)

        /// Converts to.
        public static T ConvertTo<T>(this string data)

    }

}

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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.4 578 12/25/2021 1.0.4 is deprecated because it is no longer maintained.
1.0.2 600 11/16/2021 1.0.2 is deprecated because it is no longer maintained.
1.0.1 497 11/16/2021 1.0.1 is deprecated because it is no longer maintained.