public string ShardId(object message) { _adapter.Log(LogLevel.InfoLevel, $"Getting shard id for type {message.GetType()}"); if (message is GetHeadDocumentForFeedRequest) { _adapter.Log(LogLevel.InfoLevel, $"Getting shard id for GetHeadDocForFeedRequest '{((GetHeadDocumentForFeedRequest)message).SubscriptionId.Id}'"); } var result = _messageExtractor.ShardId(message); _adapter.Log(LogLevel.InfoLevel, $"Shard id was {result}"); return(result); }
public void RouteShardEnvelope() { _extractor.EntityId(_m1); _extractor.EntityMessage(_m1); _extractor.ShardId(_m1); }