mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Excluded private locator URLs from JSON serialization in Azure Media Services. Fixes #4686.
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Xml.Linq;
|
||||
using System.Xml.XPath;
|
||||
using Orchard.FileSystems.Media;
|
||||
using Orchard.Azure.MediaServices.Helpers;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Orchard.Azure.MediaServices.Models.Assets.EncoderMetadata {
|
||||
public class AssetFile {
|
||||
@@ -120,6 +121,7 @@ namespace Orchard.Azure.MediaServices.Models.Assets.EncoderMetadata {
|
||||
/// <summary>
|
||||
/// A direct URL to download the asset file using a private locator.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string PrivateUrl {
|
||||
get {
|
||||
if (!String.IsNullOrEmpty(_parentMetadata.PrivateLocatorUrl)) {
|
||||
|
@@ -1,12 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using System.Xml.XPath;
|
||||
using Orchard.FileSystems.Media;
|
||||
using Orchard.Azure.MediaServices.Helpers;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Orchard.Azure.MediaServices.Models.Assets.EncoderMetadata {
|
||||
public class Metadata {
|
||||
@@ -46,6 +45,7 @@ namespace Orchard.Azure.MediaServices.Models.Assets.EncoderMetadata {
|
||||
}
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
public string PrivateLocatorUrl {
|
||||
get {
|
||||
return _privateLocatorUrl;
|
||||
|
Reference in New Issue
Block a user