コード例 #1
0
 /// <summary>
 /// Checks that a specific serializer is supported.
 /// </summary>
 /// <param name="collection">The collection.</param>
 /// <param name="holder">The holder.</param>
 /// <returns>Returns true when the holder ContentType is supported.</returns>
 public static bool SupportsSerializer(this ServiceHandlerCollection <IServiceHandlerSerialization> collection, ServiceHandlerContext holder)
 {
     return(collection.Contains(holder.ContentType));
 }
コード例 #2
0
 /// <summary>
 /// Checks that a specific serializer is supported.
 /// </summary>
 /// <param name="collection">The collection.</param>
 /// <param name="mimetype">The mime type identifier for the serializer.</param>
 /// <returns>Returns true if the serializer is supported.</returns>
 public static bool SupportsSerializer(this ServiceHandlerCollection <IServiceHandlerSerialization> collection, string mimetype)
 {
     return(collection.Contains(mimetype));
 }