Show / Hide Table of Contents

Namespace Celerik.NetCore.Util

Classes

ArgumentNullOrEmptyException

Represents errors that occur when a required argument is null or empty.

AzureTableStorageClient<TElement>

Implementation of the ITableStorageClient interface by using an Azure Table Storage.

CodeAttribute

Defines a custom Code attribute.

ConvertUtility

Provides conversion utilities.

CryptoUtility

Provides cryptography utilities.

EmbeddedFileUtility

Provides embedded file utilities.

EnumDescriptionJsonConverter

Serializes an Enum value to its corresponding DescriptionAttribute.

EnumUtility

Provides enum utilities.

ExceptionThrower

Utility to throw exceptions when a condition is matched.

FileUtility

Provides file utilities.

JsonStringLocalizer

Represents a service that provides localized strings using .json Files in replace of .resx files.

JsonStringLocalizerFactory

Represents a factory that creates JsonStringLocalizer instances.

JsonStringLocalizer is a replacement of the .resx files system, using .json files instead.

When working with JSON resource files, take into account the following instructions:

  1. Create a folder in your project to hold all JSON resource files. The recommended name for this folder is "Resources".
  2. Create the TypeName class. This is a static class (can be empty) placed in the resources folder. This class will be used to resolve the assembly where resource files are contained, and also to resolve the base file name of your resource files. The Recomended name for this class is "{SomePrefix}Resources.cs". E.g.: "UtilResources.cs".
  3. Create your JSON resources files in your resources folder, you should set them as embedded resources and name those files following these conventions:
    • "TypeName.json"
    • "TypeName-language.json"
    • "TypeName-language-country.json"
    • "TypeName-language-country-region.json"
  4. Resource strings are resolved from most specif to less specific cultures, so if no file for a culture is found, TypeName.json might be used to resolve your strings. The recomendation is to put in this file all your localized strings in "English" language, that way english will be the default resource culture.
  5. A good example of JSON resource files for a project supporting English and Spanish could be as follow:
    • UtilResources.cs
    • UtilResources.json (default culture: english strings)
    • UtilResources-es.json

LocalDate

Class to represent the localized DateTime of a particular time zone.

MaximumExceededException

Represents errors that occur when a maximum value is exceeded.

MinimunSubceededException

Represents errors that occur when a minimum value is subceeded.

MockTableStorageClient<TElement>

Implementation of the ITableStorageClient interface by using Mock Data.

PropNullException

Represents errors that occur when a required property is null or empty.

PropNullOrEmptyException

Represents errors that occur when a required property is null or empty.

QueryUtility

Provides query utilities.

SerializeAllContractResolver

Contract resolver to serialize all props in an object by not taking into account the JsonIgnore attribute.

StackTraceUtility

Provides stack trace utilities.

StringUtility

Provides string utilities.

TableStorageClient<TElement>

Base class for all services implementing the ITableStorageClient interface.

TableStorageConfig

Defines the configuration needed to access a Table Storage.

TableStorageException

Represents errors that occur when performing Table Storage operations.

TableStorageFactory

Factory to create ITableStorageClient instances.

UtilResources

Provides localized strings for this layer. By default, a JsonStringLocalizerFactory is used.

ValidateUtility

Provides validation utilities.

Interfaces

ITableStorageClient<TElement>

Interface definition to read data from and write data to a Table Storage.

Enums

TableStorageProvider

Defines the different table storage providers.

TableStorageStrategy

Defines the possible strategies when updating an entity in a Table Storage.

In This Article
Back to top Generated by DocFX