C# Class AngularAzureSearch.WebAPI.Helpers.Extensions

Afficher le fichier Open project: TheDarkCode/AngularAzureSearch

Méthodes publiques

Méthode Description
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/

Method Details

FormatBody() public static méthode

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
Résultat string

RemoveFromEnd() public static méthode

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
Résultat string

ToEpoch() public static méthode

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.
Résultat int