C# 클래스 AngularAzureSearch.WebAPI.Helpers.Extensions

파일 보기 프로젝트 열기: TheDarkCode/AngularAzureSearch

공개 메소드들

메소드 설명
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