コード例 #1
0
 public MultiTargetBearerJwtTokenHandler(GetSubscriptionId getSubscriptionId)
 {
     _getSubscriptionId = getSubscriptionId;
 }
コード例 #2
0
 public MultiTargetBearerJwtTokenHandler(IDictionary <string, string> targetSubscriptionMapping)
 {
     _getSubscriptionId = id =>
                          targetSubscriptionMapping.TryGetValue(id.ToString(), out string subId) ? subId : null;
 }