Utils
class
Namespace: Orleans.Runtime
The Utils class contains a variety of utility methods for use in application and grain code.
public static class UtilsMethods
AverageTicksToMilliSeconds(float)BatchIEnumerable(IEnumerable<T>, int)DictionaryToString(ICollection<KeyValuePair<T1, T2>>, Func<T2, string?>, string?)Returns a human-readable text string that describes a dictionary that maps objects to objects.EnumerableToString(IEnumerable<T>, Func<T, string>, string, bool)Returns a human-readable text string that describes an IEnumerable collection of objects.GetStackTrace(int)SafeExecute(Action)SafeExecute(Action, ILogger?, string?)SafeExecuteAsync(Task)TicksToMilliSeconds(long)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.
