Class EmbeddedDllClass
- Namespace
- Alis.Core.Aspect.Data.Dll
- Assembly
- Alis.dll
The embedded dll class
public static class EmbeddedDllClassInheritance
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
dllNamestring-
The dll name
dllTypeDllTypedllBytesDictionary<PlatformInfo, string>-
The dll bytes
assemblyAssembly-
The assembly
ExtractEntry(string, ZipArchiveEntry)
Extracts the entry using the specified file dir
internal static void ExtractEntry(string fileDir, ZipArchiveEntry entry)Parameters
fileDirstring-
The file dir
entryZipArchiveEntry-
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
canonicalDestinationPathstring-
The canonical destination path
entryZipArchiveEntry-
The entry
ExtractZipFile(string, MemoryStream)
Extracts the zip file using the specified file dir
internal static void ExtractZipFile(string fileDir, MemoryStream zipData)Parameters
fileDirstring-
The file dir
zipDataMemoryStream-
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
dllTypeDllType
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
currentPlatformOSPlatform-
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
currentPlatformOSPlatform-
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
entryZipArchiveEntry-
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
Returns
- MemoryStream
-
The memory stream
SetFileReadPermission(string)
Sets the file read permission using the specified file path
internal static void SetFileReadPermission(string filePath)Parameters
filePathstring-
The file path