C# Класс AngularAzureSearch.WebAPI.Helpers.Extensions

Показать файл Открыть проект

Открытые методы

Метод Описание
FormatBody ( string contactName, string contactEmail, string contactMessage ) : string

Format Body of an Email to Send via Mail Service.

RemoveFromEnd ( this s, string suffix ) : string

Handy function to remove a suffix from the end of a string (ie: Urls).

ToEpoch ( this date ) : int

This method is used for DateTime properties to convert the date to an Epoch date that can be used for DocumentDB range indexes. See this article for more information: http://azure.microsoft.com/blog/2014/11/19/working-with-dates-in-azure-documentdb-4/

Описание методов

FormatBody() публичный статический Метод

Format Body of an Email to Send via Mail Service.
public static FormatBody ( string contactName, string contactEmail, string contactMessage ) : string
contactName string
contactEmail string
contactMessage string
Результат string

RemoveFromEnd() публичный статический Метод

Handy function to remove a suffix from the end of a string (ie: Urls).
public static RemoveFromEnd ( this s, string suffix ) : string
s this
suffix string
Результат string

ToEpoch() публичный статический Метод

This method is used for DateTime properties to convert the date to an Epoch date that can be used for DocumentDB range indexes. See this article for more information: http://azure.microsoft.com/blog/2014/11/19/working-with-dates-in-azure-documentdb-4/
public static ToEpoch ( this date ) : int
date this The incoming date to convert to epoch integer.
Результат int