mirror of
https://github.com/wagesj45/CapyKit.git
synced 2024-12-30 08:52:43 -06:00
Settings Helper + Documentation
The `SettingsHelper` is an agnostic way to access settings values uniformly through code. The accessor methods are controlled by the consumer. Documentation has been a bit wonky. I changed the max number of version number components allowed, so each new build should not create new changes on every single bit of documentation now.
This commit is contained in:
parent
9f6debb1d9
commit
87bd044b31
144 changed files with 838 additions and 361 deletions
|
@ -78,8 +78,7 @@ namespace CapyKit
|
|||
/// <summary> Emits an event with the given severity level, message, and method name. </summary>
|
||||
/// <remarks>
|
||||
/// In order to allow for efficient calling member access via <see cref="CallerMemberNameAttribute"/>
|
||||
/// ,
|
||||
/// it is suggested that <paramref name="args"/> is defined explicitly for formatted messages.
|
||||
/// , it is suggested that <paramref name="args"/> is defined explicitly for formatted messages.
|
||||
/// </remarks>
|
||||
/// <param name="eventLevel"> The severity level of the event. </param>
|
||||
/// <param name="message">
|
||||
|
@ -93,8 +92,9 @@ namespace CapyKit
|
|||
/// A variable-length parameters list containing arguments for formatting the message.
|
||||
/// </param>
|
||||
/// <example>
|
||||
/// CapyEventReporter.EmitEvent(EventLevel.Error, "Could not find the description for {0}.",
|
||||
/// args: new[] { enumeration });
|
||||
/// <code>
|
||||
/// CapyEventReporter.EmitEvent(EventLevel.Error, "Could not find the description for {0}.", args: new[] { enumeration });
|
||||
/// </code>
|
||||
/// </example>
|
||||
/// <seealso cref="CallerMemberNameAttribute"/>
|
||||
internal static void EmitEvent(EventLevel eventLevel, string message, [CallerMemberName] string method = null, params object[] args)
|
||||
|
|
136
CapyKit/Helpers/SettingsHelper.cs
Normal file
136
CapyKit/Helpers/SettingsHelper.cs
Normal file
|
@ -0,0 +1,136 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapyKit.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Static class containing helper methods for retrieving and setting application settings.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The specific means of accessing and storing the settings are determined by the consumer,
|
||||
/// allowing for flexibility in various environments such as <c>App.config</c> or <c>Web.config</c>
|
||||
/// .
|
||||
/// </remarks>
|
||||
/// <example>
|
||||
/// This example demonstrates how to set up the SettingsHelper class with custom accessor and
|
||||
/// detector methods that read from an App.config file. The setup is done at the beginning of the
|
||||
/// application execution, before any other usage of the helper methods.
|
||||
/// <code>
|
||||
/// public int main(string[] args)
|
||||
/// {
|
||||
/// // Set up SettingsHelper with custom accessor and detector methods
|
||||
/// Func<string, object> accessor = (key) =>
|
||||
/// {
|
||||
/// Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
|
||||
/// return config.AppSettings.Settings[key].Value;
|
||||
/// };
|
||||
///
|
||||
/// Func<string, bool> detector = (key) =>
|
||||
/// {
|
||||
/// Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
|
||||
/// return config.AppSettings.Settings.AllKeys.Contains(key);
|
||||
/// };
|
||||
///
|
||||
/// SettingsHelper.SetAccessorMethod(accessor);
|
||||
/// SettingsHelper.SetDetectorMethod(detector);
|
||||
///
|
||||
/// // Use the helper to retrieve and set settings
|
||||
/// SettingsHelper.SetApplicationSetting<int>("MySettingKey", 42);
|
||||
/// int newSetting = SettingsHelper.GetApplicationSetting<int>("MySettingKey");
|
||||
/// Console.WriteLine("New setting: {0}", newSetting);
|
||||
///
|
||||
/// int mySetting = SettingsHelper.GetApplicationSetting<int>("MySettingKey");
|
||||
/// Console.WriteLine("Retrieved setting: {0}", mySetting);
|
||||
/// }
|
||||
/// </code>
|
||||
/// </example>
|
||||
public static class SettingsHelper
|
||||
{
|
||||
#region Members
|
||||
|
||||
/// <summary>
|
||||
/// Private delegate function that retrieves a setting with the given <c>key</c>. Returns the
|
||||
/// setting as an uncast <see cref="object"/>.
|
||||
/// </summary>
|
||||
private static Func<string, object> accessor = (key) => default(object);
|
||||
|
||||
/// <summary>
|
||||
/// Private delegate function that detects if a setting with a given <c>key</c> exists. Returns <see langword="true"/>
|
||||
/// if the setting exists, <see langword="false"/> if not.
|
||||
/// </summary>
|
||||
private static Func<string, bool> detector = (key) => false;
|
||||
|
||||
#endregion Members
|
||||
|
||||
#region Methods
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a setting with the given <c>key</c>. Returns the setting as an uncast <typeparamref name="T"/>.
|
||||
/// </summary>
|
||||
/// <typeparam name="T"> The type of the setting to be retrieved. </typeparam>
|
||||
/// <param name="settingName"> The name of the setting to retrieve. </param>
|
||||
/// <returns> The value of the setting as an uncast <typeparamref name="T"/>. </returns>
|
||||
public static T GetApplicationSetting<T>(string settingName)
|
||||
{
|
||||
if (SettingsHelper.detector(settingName))
|
||||
{
|
||||
var result = Convert.ChangeType(SettingsHelper.accessor(settingName), typeof(T));
|
||||
if (result is T)
|
||||
{
|
||||
return (T)result;
|
||||
}
|
||||
|
||||
return default(T);
|
||||
}
|
||||
|
||||
return default(T);
|
||||
}
|
||||
|
||||
/// <summary> Sets the function used to retrieve application settings. </summary>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// Thrown when one or more required arguments are null.
|
||||
/// </exception>
|
||||
/// <param name="accessor"> The new function used to retrieve application settings. </param>
|
||||
public static void SetAccessorMethod(Func<string, object> accessor)
|
||||
{
|
||||
if (accessor != null)
|
||||
{
|
||||
SettingsHelper.accessor = accessor;
|
||||
}
|
||||
else
|
||||
{
|
||||
var error = "Cannot set the ApplicationSettingsHelper accessor method to a null function.";
|
||||
CapyEventReporter.EmitEvent(EventLevel.Error, error);
|
||||
throw new ArgumentNullException(error);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the function used to detect if an application setting with a given <c>key</c> exists.
|
||||
/// </summary>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// Thrown when one or more required arguments are null.
|
||||
/// </exception>
|
||||
/// <param name="detector">
|
||||
/// The new function used to detect if an application setting exists.
|
||||
/// </param>
|
||||
public static void SetDetectorMethod(Func<string, bool> detector)
|
||||
{
|
||||
if (detector != null)
|
||||
{
|
||||
SettingsHelper.detector = detector;
|
||||
}
|
||||
else
|
||||
{
|
||||
var error = "Cannot set the ApplicationSettingsHelper detector method to a null function.";
|
||||
CapyEventReporter.EmitEvent(EventLevel.Error, error);
|
||||
throw new ArgumentNullException(error);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Methods
|
||||
}
|
||||
}
|
|
@ -5,14 +5,4 @@
|
|||
<HelpKeyword index="K" term="Welcome" />
|
||||
</HelpKeywords>
|
||||
</Topic>
|
||||
<Topic id="7d36447b-0aab-4ce9-b5ed-e60ec5bee103" visible="True" title="Version History">
|
||||
<HelpKeywords>
|
||||
<HelpKeyword index="K" term="version, history" />
|
||||
</HelpKeywords>
|
||||
<Topic id="fa7407d1-9116-4ad7-a9ab-ed094685b070" visible="True" title="Version 1.0.0.0">
|
||||
<HelpKeywords>
|
||||
<HelpKeyword index="K" term="version, 1.0.0.0" />
|
||||
</HelpKeywords>
|
||||
</Topic>
|
||||
</Topic>
|
||||
</Topics>
|
|
@ -23,7 +23,7 @@
|
|||
<Language>en-US</Language>
|
||||
<TransformComponentArguments>
|
||||
<Argument Key="BibliographyDataFile" Value="True" />
|
||||
<Argument Key="MaxVersionParts" Value="" />
|
||||
<Argument Key="MaxVersionParts" Value="3" />
|
||||
<Argument Key="IncludeEnumValues" Value="True" />
|
||||
<Argument Key="EnumMemberSortOrder" Value="Value" />
|
||||
<Argument Key="FlagsEnumValueFormat" Value="IntegerValue" />
|
||||
|
@ -47,13 +47,14 @@
|
|||
<HelpFileVersion>1.0.0.0</HelpFileVersion>
|
||||
<NamingMethod>MemberName</NamingMethod>
|
||||
<ContentPlacement>AboveNamespaces</ContentPlacement>
|
||||
<RootNamespaceContainer>False</RootNamespaceContainer>
|
||||
<RootNamespaceContainer>True</RootNamespaceContainer>
|
||||
<NamespaceGrouping>False</NamespaceGrouping>
|
||||
<MaximumGroupParts>2</MaximumGroupParts>
|
||||
<Preliminary>False</Preliminary>
|
||||
<SdkLinkTarget>Blank</SdkLinkTarget>
|
||||
<VisibleItems>Attributes, ExplicitInterfaceImplementations, InheritedMembers, InheritedFrameworkMembers, Internals, Privates, PrivateFields, Protected, SealedProtected, ProtectedInternalAsProtected, NonBrowsable</VisibleItems>
|
||||
<PlugInConfigurations />
|
||||
<VisibleItems>Attributes, ExplicitInterfaceImplementations, InheritedMembers, InheritedFrameworkMembers, Internals, Privates, PrivateFields, Protected, SealedProtected, ProtectedInternalAsProtected, NonBrowsable, InternalAndPrivateIfExternal</VisibleItems>
|
||||
<PlugInConfigurations>
|
||||
</PlugInConfigurations>
|
||||
<ComponentConfigurations />
|
||||
<WarnOnMissingSourceContext>False</WarnOnMissingSourceContext>
|
||||
<HtmlSdkLinkType>Msdn</HtmlSdkLinkType>
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
# Version History
|
||||
|
||||
The topics in this section describe the various changes made to the [TODO: Project Title] over the life of the project.
|
||||
|
||||
|
||||
## Version History
|
||||
|
||||
Select a version below to see a description of its changes.
|
||||
<ul><li><p><a href="fa7407d1-9116-4ad7-a9ab-ed094685b070.md">Version 1.0.0.0</a></p></li><li><p>[TODO: Add links to each specific version page]</p></li></ul>
|
||||
|
||||
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
#### Other Resources
|
||||
<a href="849aa079-3d64-4cf1-966f-44af23c73160.md">CapyKit - C# Utilities</a>
|
|
@ -24,4 +24,4 @@ See the **Conceptual Content** topics in the Sandcastle Help File Builder's help
|
|||
|
||||
|
||||
#### Other Resources
|
||||
<a href="7d36447b-0aab-4ce9-b5ed-e60ec5bee103.md">Version History</a>
|
||||
[7d36447b-0aab-4ce9-b5ed-e60ec5bee103]
|
||||
|
|
|
@ -7,7 +7,7 @@ A hash set storing unique identifiers for events intended to only be emitted onc
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ A string of all the lower case characters.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ A string of all the numeric characters.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ A string of the most common non-alphanumeric characters.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ A string of all the upper case characters.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Default size of the generated salt.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
# accessor Field
|
||||
|
||||
|
||||
Private delegate function that retrieves a setting with the given `key`. Returns the setting as an uncast <a href="https://learn.microsoft.com/dotnet/api/system.object" target="_blank" rel="noopener noreferrer">Object</a>.
|
||||
|
||||
|
||||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
private static Func<string, Object> accessor
|
||||
```
|
||||
**F#**
|
||||
``` F#
|
||||
static val mutable private accessor: Func<string, Object>
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Field Value
|
||||
<a href="https://learn.microsoft.com/dotnet/api/system.func-2" target="_blank" rel="noopener noreferrer">Func</a>(<a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object" target="_blank" rel="noopener noreferrer">Object</a>)
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
#### Reference
|
||||
<a href="T_CapyKit_Helpers_SettingsHelper.md">SettingsHelper Class</a>
|
||||
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|
|
@ -0,0 +1,31 @@
|
|||
# detector Field
|
||||
|
||||
|
||||
Private delegate function that detects if a setting with a given `key` exists. Returns true if the setting exists, false if not.
|
||||
|
||||
|
||||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
private static Func<string, bool> detector
|
||||
```
|
||||
**F#**
|
||||
``` F#
|
||||
static val mutable private detector: Func<string, bool>
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Field Value
|
||||
<a href="https://learn.microsoft.com/dotnet/api/system.func-2" target="_blank" rel="noopener noreferrer">Func</a>(<a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a>, <a href="https://learn.microsoft.com/dotnet/api/system.boolean" target="_blank" rel="noopener noreferrer">Boolean</a>)
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
#### Reference
|
||||
<a href="T_CapyKit_Helpers_SettingsHelper.md">SettingsHelper Class</a>
|
||||
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ The default number of iterations.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ The zero-based index of the pooled item.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ The pooled item.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ A flag indicating whether the item is locked or not.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ The name of the pooled item <a href="https://learn.microsoft.com/dotnet/api/syst
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ The collection of pooled items.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ The expression to retrieve the property.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
# SettingsHelper Fields
|
||||
|
||||
|
||||
|
||||
|
||||
## Fields
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="F_CapyKit_Helpers_SettingsHelper_accessor.md">accessor</a></td>
|
||||
<td>Private delegate function that retrieves a setting with the given <code>key</code>. Returns the setting as an uncast <a href="https://learn.microsoft.com/dotnet/api/system.object" target="_blank" rel="noopener noreferrer">Object</a>.</td></tr>
|
||||
<tr>
|
||||
<td><a href="F_CapyKit_Helpers_SettingsHelper_detector.md">detector</a></td>
|
||||
<td>Private delegate function that detects if a setting with a given <code>key</code> exists. Returns true if the setting exists, false if not.</td></tr>
|
||||
</table>
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
#### Reference
|
||||
<a href="T_CapyKit_Helpers_SettingsHelper.md">SettingsHelper Class</a>
|
||||
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|
|
@ -24,4 +24,4 @@ See the **Conceptual Content** topics in the Sandcastle Help File Builder's help
|
|||
|
||||
|
||||
#### Other Resources
|
||||
<a href="7d36447b-0aab-4ce9-b5ed-e60ec5bee103.md">Version History</a>
|
||||
[7d36447b-0aab-4ce9-b5ed-e60ec5bee103]
|
||||
|
|
|
@ -7,7 +7,7 @@ Gets the value of the enumeration represented by this attribute.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Attributes.md">CapyKit.Attributes</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the <a href="T_CapyKit_Attributes_EnumerationDescr
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Attributes.md">CapyKit.Attributes</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the CapyEventArgs class with the specified event l
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Emits an event with the given severity level, message, and method name.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
@ -40,7 +40,13 @@ internal static member EmitEvent :
|
|||
In order to allow for efficient calling member access via <a href="https://learn.microsoft.com/dotnet/api/system.runtime.compilerservices.callermembernameattribute" target="_blank" rel="noopener noreferrer">CallerMemberNameAttribute</a> , it is suggested that *args* is defined explicitly for formatted messages.
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
CapyEventReporter.EmitEvent(EventLevel.Error, "Could not find the description for {0}.", args: new[] { enumeration });
|
||||
```
|
||||
|
||||
|
||||
## See Also
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Emits an event with the given severity level, message, unique identifier, and me
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Subscribes the specified event handler to the event with the given subscription
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Unsubscribes the specified event handler from the event with the given origin.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes the static fields of the <a href="T_CapyKit_CapyEventReporter.md">Ca
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ An <a href="https://learn.microsoft.com/dotnet/api/system.enum" target="_blank"
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ An <a href="https://learn.microsoft.com/dotnet/api/system.enum" target="_blank"
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ An <a href="https://learn.microsoft.com/dotnet/api/system.enum" target="_blank"
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ An <a href="https://learn.microsoft.com/dotnet/api/system.enum" target="_blank"
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ A *T* extension method that parses a string into an enumeration.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ A *T* extension method that parses a string into an enumeration.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Enumerates distinct items in this collection as defined by the key *property*.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Filters out items matching a *predicate* from the collection.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Filters out items matching a *predicate* from the collection.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ An IEnumable<T> extension method that left outer join.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ An IQueryable<T> extension method that left outer join.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ An IQueryable<T> extension method that left outer join.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ The number of pages of *pageSize* size in the given collection.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ The number of pages of *pageSize* size in the given collection.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Get a page of items from a collection, skipping *pageNumber* pages of *pageSize*
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Get a page of items from a collection, skipping *pageNumber* pages of *pageSize*
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Replaces a null or empty string with a specified replacement string.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Replaces a null or whitespace string with a specified replacement string.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Extensions.md">CapyKit.Extensions</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Compresses a given object using the `gzip` algorithm.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Compresses a given object to a string using `base64` encoding of `gzip` format.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Decompresses the given `base64` string in `gzip` format.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Decompresses a given compressed `gzip` byte stream.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Decompresses a given `base64` encoded string of `gzip` format.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Converts camel case text to human readable text.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the <a href="T_CapyKit_Helpers_LanguageHelper.md">
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Compares an unencrypted *providedPassword* with a stored, encrypted *existingPas
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Compares two session identifiers.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Compare two strings as case sensative.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Generates a new byte array of the specified length with random values.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Gets a cryptographically strong random password.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ A convenience method to generate a random string of the specified length using a
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Gets a cryptographically strong random string using the character values found i
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Hashes an unencrypted password.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Generates a new <a href="T_CapyKit_Password.md">Password</a> object using the PB
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Generates a new <a href="T_CapyKit_Password.md">Password</a> object using the PB
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the <a href="T_CapyKit_Helpers_SecurityHelper.md">
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Deserializes an object to a given *T* type.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Deserializes an object to a given *T* type.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Deserializes a `JSON` encoded string to the given *T*.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Serializes an object to a byte array.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Serializes an object to a `JSON` encoded string.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
# GetApplicationSetting<T> Method
|
||||
|
||||
|
||||
Retrieves a setting with the given `key`. Returns the setting as an uncast *T*.
|
||||
|
||||
|
||||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
public static T GetApplicationSetting<T>(
|
||||
string settingName
|
||||
)
|
||||
|
||||
```
|
||||
**F#**
|
||||
``` F#
|
||||
static member GetApplicationSetting :
|
||||
settingName : string -> 'T
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Parameters
|
||||
<dl><dt> <a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a></dt><dd>The name of the setting to retrieve.</dd></dl>
|
||||
|
||||
#### Type Parameters
|
||||
<dl><dt /><dd>The type of the setting to be retrieved.</dd></dl>
|
||||
|
||||
#### Return Value
|
||||
T
|
||||
The value of the setting as an uncast *T*.
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
#### Reference
|
||||
<a href="T_CapyKit_Helpers_SettingsHelper.md">SettingsHelper Class</a>
|
||||
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|
|
@ -0,0 +1,41 @@
|
|||
# SetAccessorMethod Method
|
||||
|
||||
|
||||
Sets the function used to retrieve application settings.
|
||||
|
||||
|
||||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
public static void SetAccessorMethod(
|
||||
Func<string, Object> accessor
|
||||
)
|
||||
```
|
||||
**F#**
|
||||
``` F#
|
||||
static member SetAccessorMethod :
|
||||
accessor : Func<string, Object> -> unit
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Parameters
|
||||
<dl><dt> <a href="https://learn.microsoft.com/dotnet/api/system.func-2" target="_blank" rel="noopener noreferrer">Func</a>(<a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object" target="_blank" rel="noopener noreferrer">Object</a>)</dt><dd>The new function used to retrieve application settings.</dd></dl>
|
||||
|
||||
## Exceptions
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception" target="_blank" rel="noopener noreferrer">ArgumentNullException</a></td>
|
||||
<td>Thrown when one or more required arguments are null.</td></tr>
|
||||
</table>
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
#### Reference
|
||||
<a href="T_CapyKit_Helpers_SettingsHelper.md">SettingsHelper Class</a>
|
||||
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|
|
@ -0,0 +1,41 @@
|
|||
# SetDetectorMethod Method
|
||||
|
||||
|
||||
Sets the function used to detect if an application setting with a given `key` exists.
|
||||
|
||||
|
||||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
public static void SetDetectorMethod(
|
||||
Func<string, bool> detector
|
||||
)
|
||||
```
|
||||
**F#**
|
||||
``` F#
|
||||
static member SetDetectorMethod :
|
||||
detector : Func<string, bool> -> unit
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Parameters
|
||||
<dl><dt> <a href="https://learn.microsoft.com/dotnet/api/system.func-2" target="_blank" rel="noopener noreferrer">Func</a>(<a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a>, <a href="https://learn.microsoft.com/dotnet/api/system.boolean" target="_blank" rel="noopener noreferrer">Boolean</a>)</dt><dd>The new function used to detect if an application setting exists.</dd></dl>
|
||||
|
||||
## Exceptions
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception" target="_blank" rel="noopener noreferrer">ArgumentNullException</a></td>
|
||||
<td>Thrown when one or more required arguments are null.</td></tr>
|
||||
</table>
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
#### Reference
|
||||
<a href="T_CapyKit_Helpers_SettingsHelper.md">SettingsHelper Class</a>
|
||||
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|
|
@ -0,0 +1,28 @@
|
|||
# SettingsHelper Constructor
|
||||
|
||||
|
||||
Initializes the static fields of the <a href="T_CapyKit_Helpers_SettingsHelper.md">SettingsHelper</a> class
|
||||
|
||||
|
||||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
static SettingsHelper()
|
||||
```
|
||||
**F#**
|
||||
``` F#
|
||||
new : unit -> SettingsHelper
|
||||
```
|
||||
|
||||
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
#### Reference
|
||||
<a href="T_CapyKit_Helpers_SettingsHelper.md">SettingsHelper Class</a>
|
||||
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|
|
@ -7,7 +7,7 @@ Compares the given plaintext password with an encrypted value using PBKDF2 algor
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Encrypts the given password using a defined algorithm.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Returns a string that represents the current object.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes the static fields of the <a href="T_CapyKit_Password.md">Password</a
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Constructor.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Encrypts the given password using a PBKDF2 algorithm.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the <a href="T_CapyKit_Pbkdf2Algorithm.md">Pbkdf2A
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Releases the lock on the item.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Sets the lock on the item indicating that it is in use.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Returns a string that represents the current object and its lock state.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the <a href="T_CapyKit_PoolItem_1.md">PoolItem(T)<
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Fill the pool item collection from an existing *T* collection.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes the pool with the specified number of items using the default constr
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes the pool with the specified number of items using the specified cons
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Gets the first available item from the pool and sets its lock.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Releases the lock on the specified item and returns it to the pool.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the <a href="T_CapyKit_Pool_1.md">Pool(T)</a> clas
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the <a href="T_CapyKit_Pool_1.md">Pool(T)</a> clas
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Initializes a new instance of the <a href="T_CapyKit_Pool_1.md">Pool(T)</a> clas
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
|
@ -7,7 +7,7 @@ Determines whether the specified properties are equal.
|
|||
|
||||
## Definition
|
||||
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
||||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
|
||||
|
||||
**C#**
|
||||
``` C#
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue