MagmaMc.JEF 5.0.1

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

// Install MagmaMc.JEF as a Cake Tool
#tool nuget:?package=MagmaMc.JEF&version=5.0.1

MagmaMc.JEF (Just Enough Functions)

Classes/Functions

Administrator

  • IsElevated(): checks if the current program running function is elevated (.NET 4.0+ or .NET 6.0+).
  • IsUserAdministrator(): checks if the current user running the program is an administrator (.NET 4.0+ or .NET 6.0+).

Disk

  • CreatePartition(short DiskNumber = 0, int partitionSizeInGB = 1, char DriveLetter = 'e'): creates a partition on the hard disk.

CMD

  • ExecuteCommand(string Command, bool Administrator = false, bool WaitForExit = false, string username = null, string password = null): executes a command in the command prompt and returns the output.

Services

  • CreateService(string serviceName, string displayName, string binPath, ServiceStartType startType, ServiceAccount serviceAccount, string username = null, string password = null, string description = null): This function creates a Windows service using sc.exe
  • AddDescription(string ServiceName, string Description): Adds A Description To A Service Created
  • Delete(string ServiceName): Deletes A Created Service

Windows

  • DoesProcessHaveWindow(Process externalProcess): checks if a process has a window or is in the background.
  • HideWindow(IntPtr Window): hides a window.
  • MaximizeWindow(IntPtr Window): maximizes a window.
  • MinimizeWindow(IntPtr Window): minimizes a window.
  • RestoreWindow(IntPtr Window): restores a window.
  • ShowWindow(IntPtr Window): shows a window.

Security

  • ComputeHash(string input, HashAlgorithm hashAlgo): Computes the string into the hash for a given string input.
  • Base64Encode(string input): Encodes a given string input into a Base64 string.
  • Base64Decode(string input): Decodes a given Base64 string into a plain text string.
  • ConvertStringToSecure(string input): Converts a plain text string into a secure string, which can be used to store passwords and other sensitive information securely in memory.

Lists

  • IsInList<T>(List<T> Array, T Value, bool DefualtValue = false): Checks if a given value is present in the input list. It returns a boolean value indicating if the value is present or not. If the value is not present, the function returns the default value.
  • GetValueFromListKey<T>(List<T> List, string include): Checks whether a given list contains a key and returns the value associated with that key. It returns a string value representing the value associated with the specified key if it is present in the input list. If the specified key is not present in the input list, the function returns the default value.
  • DoesKeyStartWith<T>(List<T> List, string include):Checks whether a given list contains a key that starts with a specified value. It returns a boolean value indicating whether a key starting with the specified value is present or not.

License

JEF is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MagmaMc.JEF:

Package Downloads
MagmaMc.UAS

A Library Containing all scripts for Magma's Universal Account System

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.1 235 10/21/2023
5.0.0 113 10/16/2023
4.1.0 167 6/7/2023
4.0.1 222 3/20/2023
4.0.0 215 3/19/2023
3.4.0 267 2/18/2023
3.3.1 321 1/5/2023
3.3.0 298 1/5/2023
3.2.0 285 1/2/2023
3.1.0 323 12/4/2022
3.0.2 338 11/9/2022
3.0.1 338 11/9/2022
3.0.0 337 11/9/2022
2.2.0 344 11/8/2022
2.1.0 349 11/7/2022
2.0.4 378 11/7/2022
2.0.3 347 11/7/2022
2.0.2 366 11/7/2022
2.0.1 386 11/7/2022
2.0.0 359 11/7/2022
1.0.0 418 10/14/2022

Version 5.0.1;
   Fixed UUID Get() Returning Type Name;