Table of Contents

Class EmbeddedDllClass

Namespace
Alis.Core.Aspect.Data.Dll
Assembly
Alis.dll

The embedded dll class

public static class EmbeddedDllClass

Inheritance

Inherited Members

Methods

ExtractEmbeddedDlls(string, DllType, Dictionary<PlatformInfo, string>, Assembly)

Extracts the embedded dlls using the specified dll name

public static void ExtractEmbeddedDlls(string dllName, DllType dllType, Dictionary<PlatformInfo, string> dllBytes, Assembly assembly)

Parameters

dllName string

The dll name

dllType DllType
dllBytes Dictionary<PlatformInfo, string>

The dll bytes

assembly Assembly

The assembly

ExtractEntry(string, ZipArchiveEntry)

Extracts the entry using the specified file dir

internal static void ExtractEntry(string fileDir, ZipArchiveEntry entry)

Parameters

fileDir string

The file dir

entry ZipArchiveEntry

The entry

ExtractFileFromEntry(string, ZipArchiveEntry)

Extracts the file from entry using the specified canonical destination path

internal static void ExtractFileFromEntry(string canonicalDestinationPath, ZipArchiveEntry entry)

Parameters

canonicalDestinationPath string

The canonical destination path

entry ZipArchiveEntry

The entry

ExtractZipFile(string, MemoryStream)

Extracts the zip file using the specified file dir

internal static void ExtractZipFile(string fileDir, MemoryStream zipData)

Parameters

fileDir string

The file dir

zipData MemoryStream

The zip data

GetCurrentPlatform()

Gets the platform

public static OSPlatform GetCurrentPlatform()

Returns

OSPlatform

The os platform

Exceptions

PlatformNotSupportedException

Unsupported platform.

GetDllExtension(DllType)

Gets the dll extension

internal static string GetDllExtension(DllType dllType)

Parameters

dllType DllType

Returns

string

The string

Exceptions

PlatformNotSupportedException

Unsupported platform.

GetExeExtension(OSPlatform)

Gets the exe extension using the specified current platform

internal static string GetExeExtension(OSPlatform currentPlatform)

Parameters

currentPlatform OSPlatform

The current platform

Returns

string

The string

Exceptions

PlatformNotSupportedException

Unsupported platform.

GetLibExtension(OSPlatform)

Gets the lib extension using the specified current platform

internal static string GetLibExtension(OSPlatform currentPlatform)

Parameters

currentPlatform OSPlatform

The current platform

Returns

string

The string

Exceptions

PlatformNotSupportedException

Unsupported platform.

IsAndroidSpecificConditionMet()

Describes whether is android specific condition met

internal static bool IsAndroidSpecificConditionMet()

Returns

bool

The bool

IsRunningOnAndroid()

Describes whether is running on android

internal static bool IsRunningOnAndroid()

Returns

bool

The bool

IsRunningOniOS()

Describes whether is running oni os

internal static bool IsRunningOniOS()

Returns

bool

The bool

IsValidEntry(ZipArchiveEntry)

Describes whether is valid entry

internal static bool IsValidEntry(ZipArchiveEntry entry)

Parameters

entry ZipArchiveEntry

The entry

Returns

bool

The bool

IsiOsSpecificConditionMet()

Describes whether isi os specific condition met

internal static bool IsiOsSpecificConditionMet()

Returns

bool

The bool

LoadResource(string, Assembly)

Loads the resource using the specified resource name

internal static MemoryStream LoadResource(string resourceName, Assembly assembly)

Parameters

resourceName string

The resource name

assembly Assembly

The assembly

Returns

MemoryStream

The memory stream

SetFileReadPermission(string)

Sets the file read permission using the specified file path

internal static void SetFileReadPermission(string filePath)

Parameters

filePath string

The file path