System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (10)
175rst.Claims.Dialect = reader.GetAttribute(trustConstants.Attributes.Dialect);
176if ((rst.Claims.Dialect != null) && !UriUtil.CanCreateValidUri(rst.Claims.Dialect, UriKind.Absolute))
178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3136, trustConstants.Attributes.Dialect, reader.LocalName, reader.NamespaceURI, rst.Claims.Dialect)));
181string ns = WSTrustSerializationHelper.GetRequestClaimNamespace(rst.Claims.Dialect);
212if (!StringComparer.Ordinal.Equals(rst.Claims.Dialect, WSAuthorizationConstants.Dialect))
214throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3258, rst.Claims.Dialect, WSAuthorizationConstants.Dialect)));
226rst.Claims.Add(new RequestClaim(claimType, isOptional, value));
738if (rst.Claims.Count > 0)
740requestSerializer.WriteXmlElement(writer, trustConstants.Elements.Claims, rst.Claims, rst, context);