C# Class Microsoft.Azure.Commands.Insights.Utilities

Static class contaning common functions
Show file Open project: Azure/azure-powershell

Public Methods

Method Description
ExtractCollectionFromResult ( this enumerator, bool fullDetails, List records, bool>.Func keepTheRecord ) : void
GetCurrentDllFileVersion ( ) : string

Gets the file version of the currently (executing) dll.

GetDefaultDescription ( string artifactName ) : string

Gets a string with a default description for artifacts like alert rules or autoscale settings

ValidateUri ( string uri, string argName = "Uri" ) : void

Checks if the given string represents a valid uri

Method Details

ExtractCollectionFromResult() public static method

public static ExtractCollectionFromResult ( this enumerator, bool fullDetails, List records, bool>.Func keepTheRecord ) : void
enumerator this
fullDetails bool
records List
keepTheRecord bool>.Func
return void

GetCurrentDllFileVersion() public static method

Gets the file version of the currently (executing) dll.
public static GetCurrentDllFileVersion ( ) : string
return string

GetDefaultDescription() public static method

Gets a string with a default description for artifacts like alert rules or autoscale settings
public static GetDefaultDescription ( string artifactName ) : string
artifactName string The name of the artifact to deacribe, e.g.: alert rule, autoscale setting
return string

ValidateUri() public static method

Checks if the given string represents a valid uri
public static ValidateUri ( string uri, string argName = "Uri" ) : void
uri string The string representing a uri
argName string The name of the argument to report as invalid
return void