internal static ActorId GetActorIdFromPresenceStorageKey(string presenceStorageKey) { // ActorPresenceStoragekey is of following format: // @@_<actor Kind>_<actor ID> // // See CreateActorPresenceStorageKey for how it is generated. var storageKey = presenceStorageKey.Substring(ActorPresenceStorageKeyPrefix.Length + 1); return(ActorId.TryGetActorIdFromStorageKey(storageKey)); }
private static ActorId GetActorIdFromPresenceStorageKey(string storageKey) { return(ActorId.TryGetActorIdFromStorageKey(storageKey.Substring(0, storageKey.Length - 1))); }
internal static ActorId GetActorIdFromPresenceStorageKey(string presenceStorageKey) { return(ActorId.TryGetActorIdFromStorageKey(presenceStorageKey.Substring("@@".Length + 1))); }