Exemplo n.º 1
0
        public static string SystemTargetName(GrainType id)
        {
            if (singletonSystemTargetNames.TryGetValue(id, out var name))
            {
                return(name);
            }

            return(id.ToStringUtf8());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns the generic grain type corresponding to the provided value.
        /// </summary>
        public static bool TryParse(GrainType grainType, out GenericGrainType result)
        {
            if (TypeConverterExtensions.IsGenericType(grainType.ToStringUtf8()))
            {
                result = new GenericGrainType(grainType);
                return(true);
            }

            result = default;
            return(false);
        }
Exemplo n.º 3
0
 public override readonly string ToString() => $"{_type.ToStringUtf8()}/{_key.ToStringUtf8()}";