![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Static class managing loading of resources stored as embedded resources or in content files. More...
Static Public Member Functions | |
static Assembly | GetAssembly (string ResourceName) |
Gets the assembly corresponding to a given resource name. More... | |
static byte[] | LoadResource (string ResourceName) |
Loads a resource from an embedded resource. More... | |
static byte[] | LoadResource (string ResourceName, Assembly Assembly) |
Loads a resource from an embedded resource. More... | |
static string | LoadResourceAsText (string ResourceName) |
Loads a text resource from an embedded resource. More... | |
static string | LoadResourceAsText (string ResourceName, Assembly Assembly) |
Loads a text resource from an embedded resource. More... | |
static X509Certificate2 | LoadCertificate (string ResourceName) |
Loads a certificate from an embedded resource. More... | |
static X509Certificate2 | LoadCertificate (string ResourceName, Assembly Assembly) |
Loads a certificate from an embedded resource. More... | |
static X509Certificate2 | LoadCertificate (string ResourceName, string Password) |
Loads a certificate from an embedded resource. More... | |
static X509Certificate2 | LoadCertificate (string ResourceName, string Password, Assembly Assembly) |
Loads a certificate from an embedded resource. More... | |
static async Task< byte[]> | ReadAllBytesAsync (string FileName) |
Reads a binary file asynchronously. More... | |
static async Task< string > | ReadAllTextAsync (string FileName) |
Reads a text file asynchronously. More... | |
static Task | WriteAllBytesAsync (string FileName, byte[] Data) |
Creates a binary file asynchronously. More... | |
static async Task | WriteAllBytesAsync (string FileName, byte[] Data, int Offset, int Length) |
Creates a binary file asynchronously. More... | |
static Task | AppendAllBytesAsync (string FileName, byte[] Data) |
Appends a binary file asynchronously. More... | |
static async Task | AppendAllBytesAsync (string FileName, byte[] Data, int Offset, int Length) |
Appends a binary file asynchronously. More... | |
static Task | WriteAllTextAsync (string FileName, string Text) |
Creates a text file asynchronously. More... | |
static async Task | WriteAllTextAsync (string FileName, string Text, Encoding Encoding) |
Creates a text file asynchronously. More... | |
Static class managing loading of resources stored as embedded resources or in content files.
Definition at line 14 of file Resources.cs.
|
static |
Appends a binary file asynchronously.
FileName | Filename. |
Data | Binary data |
Definition at line 241 of file Resources.cs.
|
static |
Appends a binary file asynchronously.
FileName | Filename. |
Data | Binary data |
Offset | Offset into Data to start. |
Length | Number of bytes to write. |
Definition at line 253 of file Resources.cs.
|
static |
Gets the assembly corresponding to a given resource name.
ResourceName | Resource name. |
ArgumentException | If no assembly could be found. |
Definition at line 22 of file Resources.cs.
|
static |
Loads a certificate from an embedded resource.
ResourceName | Resource Name. |
IOException | If Resource name is not valid or resource not found. |
Definition at line 132 of file Resources.cs.
|
static |
Loads a certificate from an embedded resource.
ResourceName | Resource Name. |
Assembly | Assembly containing the resource. |
IOException | If Resource name is not valid or resource not found. |
Definition at line 144 of file Resources.cs.
|
static |
Loads a certificate from an embedded resource.
ResourceName | Resource Name. |
Password | Optional password. |
IOException | If Resource name is not valid or resource not found. |
Definition at line 156 of file Resources.cs.
|
static |
Loads a certificate from an embedded resource.
ResourceName | Resource Name. |
Password | Optional password. |
Assembly | Assembly containing the resource. |
IOException | If Resource name is not valid or resource not found. |
Definition at line 169 of file Resources.cs.
|
static |
Loads a resource from an embedded resource.
ResourceName | Resource Name. |
IOException | If Resource name is not valid or resource not found. |
Definition at line 61 of file Resources.cs.
|
static |
Loads a resource from an embedded resource.
ResourceName | Resource Name. |
Assembly | Assembly containing the resource. |
IOException | If Resource name is not valid or resource not found. |
Definition at line 73 of file Resources.cs.
|
static |
Loads a text resource from an embedded resource.
ResourceName | Resource Name. |
IOException | If Resource name is not valid or resource not found. |
Definition at line 96 of file Resources.cs.
|
static |
Loads a text resource from an embedded resource.
ResourceName | Resource Name. |
Assembly | Assembly containing the resource. |
IOException | If Resource name is not valid or resource not found. |
Definition at line 108 of file Resources.cs.
|
static |
Reads a binary file asynchronously.
FileName | Filename. |
Definition at line 183 of file Resources.cs.
|
static |
Reads a text file asynchronously.
FileName | Filename. |
Definition at line 205 of file Resources.cs.
|
static |
Creates a binary file asynchronously.
FileName | Filename. |
Data | Binary data |
Definition at line 216 of file Resources.cs.
|
static |
Creates a binary file asynchronously.
FileName | Filename. |
Data | Binary data |
Offset | Offset into Data to start. |
Length | Number of bytes to write. |
Definition at line 228 of file Resources.cs.
|
static |
Creates a text file asynchronously.
Definition at line 267 of file Resources.cs.
|
static |
Creates a text file asynchronously.
Definition at line 278 of file Resources.cs.