C# Class Microsoft.Azure.WebJobs.Script.Utility

Mostra file Open project: Azure/azure-webjobs-sdk-script

Public Methods

Method Description
FlattenException ( Exception ex, string>.Func sourceFormatter = null, bool includeSource = true ) : string
GetFunctionShortName ( string functionName ) : string
GetSubscriptionId ( ) : string
IsJson ( string input ) : bool
IsValidUserType ( Type type ) : bool
RemoveUtf8ByteOrderMark ( string input ) : string
ToJObject ( ExpandoObject value ) : JObject
ToJson ( ExpandoObject value, Formatting formatting = Formatting.Indented ) : string
ToLowerFirstCharacter ( string input ) : string

Converts the first letter of the specified string to lower case if it isn't already.

ToStringValues ( object>.this data ) : string>.IReadOnlyDictionary

Private Methods

Method Description
ApplyBindingData ( object value, object>.Dictionary bindingData ) : void

Applies any additional binding data from the input value to the specified binding data. This binding data then becomes available to the binding process (in the case of late bound bindings)

Method Details

FlattenException() public static method

public static FlattenException ( Exception ex, string>.Func sourceFormatter = null, bool includeSource = true ) : string
ex System.Exception
sourceFormatter string>.Func
includeSource bool
return string

GetFunctionShortName() public static method

public static GetFunctionShortName ( string functionName ) : string
functionName string
return string

GetSubscriptionId() public static method

public static GetSubscriptionId ( ) : string
return string

IsJson() public static method

public static IsJson ( string input ) : bool
input string
return bool

IsValidUserType() public static method

public static IsValidUserType ( Type type ) : bool
type Type
return bool

RemoveUtf8ByteOrderMark() public static method

public static RemoveUtf8ByteOrderMark ( string input ) : string
input string
return string

ToJObject() public static method

public static ToJObject ( ExpandoObject value ) : JObject
value ExpandoObject
return JObject

ToJson() public static method

public static ToJson ( ExpandoObject value, Formatting formatting = Formatting.Indented ) : string
value ExpandoObject
formatting Formatting
return string

ToLowerFirstCharacter() public static method

Converts the first letter of the specified string to lower case if it isn't already.
public static ToLowerFirstCharacter ( string input ) : string
input string
return string

ToStringValues() public static method

public static ToStringValues ( object>.this data ) : string>.IReadOnlyDictionary
data object>.this
return string>.IReadOnlyDictionary