C# Class AngularAzureSearch.WebAPI.Helpers.Extensions

Datei anzeigen Open project: TheDarkCode/AngularAzureSearch

Public Methods

Method 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 method

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
return string

RemoveFromEnd() public static method

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
return string

ToEpoch() public static method

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.
return int