Edytuj

Udostępnij za pośrednictwem


Utils Class

Definition

The Utils class contains a variety of utility methods for use in application and grain code.

public static class Utils
type Utils = class
Public Module Utils
Inheritance
Utils

Methods

AverageTicksToMilliSeconds(Single)
BatchIEnumerable<T>(IEnumerable<T>, Int32)
CalculateIdHash(String)

Calculates an integer hash value based on the consistent identity hash of a string.

DictionaryToString<T1,T2>(ICollection<KeyValuePair<T1,T2>>, Func<T2,String>, String)

Returns a human-readable text string that describes a dictionary that maps objects to objects.

EnumerableToString<T>(IEnumerable<T>, Func<T,String>, String, Boolean)

Returns a human-readable text string that describes an IEnumerable collection of objects.

Flatten(ReflectionTypeLoadException)
FlattenAggregate(Exception)
FromKeyString(String, IGrainReferenceRuntime)
GetStackTrace(Int32)
SafeExecute(Action, ILogger, Func<String>)
SafeExecute(Action, ILogger, String)
SafeExecute(Action, Logger, Func<String>)
SafeExecute(Action, Logger, String)
SafeExecute(Action)
Since(DateTime)
Tail(String, Int32)

Get the last characters of a string

TicksToMilliSeconds(Int64)
TimeSpanToString(TimeSpan)
ToGatewayAddress(Uri)

Parse a Uri as a Silo address, excluding the generation identifier.

ToGatewayUri(IPEndPoint)

Represent an IP end point in the gateway URI format..

ToGatewayUri(SiloAddress)

Represent a silo address in the gateway URI format.

ToIPEndPoint(Uri)

Parse a Uri as an IPEndpoint.

ToSiloAddress(Uri)

Parse a Uri as a Silo address, including the IPEndpoint and generation identifier.

TryFindException(Exception, Type, Exception)

Applies to