Пример #1
0
        public static string SystemTargetName(GrainId id)
        {
            string name;

            if (singletonSystemTargetNames.TryGetValue(id, out name))
            {
                return(name);
            }
            if (nonSingletonSystemTargetNames.TryGetValue(id.GetTypeCode(), out name))
            {
                return(name);
            }
            return(String.Empty);
        }
Пример #2
0
        private bool GetUnordered()
        {
            if (RuntimeClient.Current == null)
            {
                return(false);
            }

            return(RuntimeClient.Current.GrainTypeResolver != null && RuntimeClient.Current.GrainTypeResolver.IsUnordered(GrainId.GetTypeCode()));
        }