GetNotValidURIs()
_context
.StreamingEndpoints
.AsEnumerable()
- .Where(o => (o.State != StreamingEndpointState.Running) || (o.ScaleUnits > 0))
+ .Where(o => (o.State != StreamingEndpointState.Running) || (o.ScaleUnits == 0))
.Select(
o =>
template.BindByPosition(new Uri("http://" + o.HostName), l.ContentAccessComponent,
diff --git a/AMSExplorer/options.Designer.cs b/AMSExplorer/options.Designer.cs
index 78bbb34c..b185a811 100644
--- a/AMSExplorer/options.Designer.cs
+++ b/AMSExplorer/options.Designer.cs
@@ -58,6 +58,16 @@ private void InitializeComponent()
this.textBoxCustomPlayer = new System.Windows.Forms.TextBox();
this.checkBoxEnableCustomPlayer = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.numericUpDownAMEPrice = new System.Windows.Forms.NumericUpDown();
+ this.numericUpDownLegacyEncodingPrice = new System.Windows.Forms.NumericUpDown();
+ this.label5 = new System.Windows.Forms.Label();
+ this.numericUpDownIndexingPrice = new System.Windows.Forms.NumericUpDown();
+ this.label6 = new System.Windows.Forms.Label();
+ this.textBoxCurrency = new System.Windows.Forms.TextBox();
+ this.groupBox4 = new System.Windows.Forms.GroupBox();
+ this.amspriceslink = new System.Windows.Forms.LinkLabel();
+ this.label7 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownLocatorDuration)).BeginInit();
@@ -66,6 +76,10 @@ private void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.groupBox3.SuspendLayout();
this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAMEPrice)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLegacyEncodingPrice)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownIndexingPrice)).BeginInit();
+ this.groupBox4.SuspendLayout();
this.SuspendLayout();
//
// buttonOk
@@ -267,7 +281,7 @@ private void InitializeComponent()
this.groupBox2.Controls.Add(this.checkBoxOneUpDownload);
this.groupBox2.Location = new System.Drawing.Point(12, 148);
this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(496, 148);
+ this.groupBox2.Size = new System.Drawing.Size(496, 155);
this.groupBox2.TabIndex = 50;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Other settings";
@@ -348,7 +362,7 @@ private void InitializeComponent()
//
this.groupBox3.Controls.Add(this.textBoxCustomPlayer);
this.groupBox3.Controls.Add(this.checkBoxEnableCustomPlayer);
- this.groupBox3.Location = new System.Drawing.Point(12, 302);
+ this.groupBox3.Location = new System.Drawing.Point(12, 455);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(496, 89);
this.groupBox3.TabIndex = 51;
@@ -381,17 +395,147 @@ private void InitializeComponent()
this.panel1.Controls.Add(this.buttonCancel);
this.panel1.Controls.Add(this.buttonOk);
this.panel1.Controls.Add(this.buttonReset);
- this.panel1.Location = new System.Drawing.Point(-2, 401);
+ this.panel1.Location = new System.Drawing.Point(-2, 558);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(523, 48);
this.panel1.TabIndex = 63;
//
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(40, 51);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(153, 13);
+ this.label4.TabIndex = 54;
+ this.label4.Text = "Encoding price per output GB :";
+ //
+ // numericUpDownAMEPrice
+ //
+ this.numericUpDownAMEPrice.DecimalPlaces = 2;
+ this.numericUpDownAMEPrice.Increment = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 131072});
+ this.numericUpDownAMEPrice.Location = new System.Drawing.Point(260, 49);
+ this.numericUpDownAMEPrice.Name = "numericUpDownAMEPrice";
+ this.numericUpDownAMEPrice.Size = new System.Drawing.Size(63, 20);
+ this.numericUpDownAMEPrice.TabIndex = 55;
+ this.numericUpDownAMEPrice.Value = new decimal(new int[] {
+ 199,
+ 0,
+ 0,
+ 131072});
+ //
+ // numericUpDownLegacyEncodingPrice
+ //
+ this.numericUpDownLegacyEncodingPrice.DecimalPlaces = 2;
+ this.numericUpDownLegacyEncodingPrice.Increment = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 131072});
+ this.numericUpDownLegacyEncodingPrice.Location = new System.Drawing.Point(260, 75);
+ this.numericUpDownLegacyEncodingPrice.Name = "numericUpDownLegacyEncodingPrice";
+ this.numericUpDownLegacyEncodingPrice.Size = new System.Drawing.Size(63, 20);
+ this.numericUpDownLegacyEncodingPrice.TabIndex = 57;
+ this.numericUpDownLegacyEncodingPrice.Value = new decimal(new int[] {
+ 139,
+ 0,
+ 0,
+ 131072});
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(40, 77);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(218, 13);
+ this.label5.TabIndex = 56;
+ this.label5.Text = "Legacy encoding price per input/output GB :";
+ //
+ // numericUpDownIndexingPrice
+ //
+ this.numericUpDownIndexingPrice.DecimalPlaces = 2;
+ this.numericUpDownIndexingPrice.Enabled = false;
+ this.numericUpDownIndexingPrice.Increment = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 131072});
+ this.numericUpDownIndexingPrice.Location = new System.Drawing.Point(260, 101);
+ this.numericUpDownIndexingPrice.Name = "numericUpDownIndexingPrice";
+ this.numericUpDownIndexingPrice.Size = new System.Drawing.Size(63, 20);
+ this.numericUpDownIndexingPrice.TabIndex = 59;
+ this.numericUpDownIndexingPrice.Value = new decimal(new int[] {
+ 199,
+ 0,
+ 0,
+ 131072});
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(39, 103);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(194, 13);
+ this.label6.TabIndex = 58;
+ this.label6.Text = "Content indexer price per content hour :";
+ //
+ // textBoxCurrency
+ //
+ this.textBoxCurrency.Location = new System.Drawing.Point(260, 23);
+ this.textBoxCurrency.Name = "textBoxCurrency";
+ this.textBoxCurrency.Size = new System.Drawing.Size(51, 20);
+ this.textBoxCurrency.TabIndex = 60;
+ this.textBoxCurrency.Text = "$";
+ //
+ // groupBox4
+ //
+ this.groupBox4.Controls.Add(this.amspriceslink);
+ this.groupBox4.Controls.Add(this.label7);
+ this.groupBox4.Controls.Add(this.textBoxCurrency);
+ this.groupBox4.Controls.Add(this.numericUpDownAMEPrice);
+ this.groupBox4.Controls.Add(this.numericUpDownLegacyEncodingPrice);
+ this.groupBox4.Controls.Add(this.label5);
+ this.groupBox4.Controls.Add(this.numericUpDownIndexingPrice);
+ this.groupBox4.Controls.Add(this.label6);
+ this.groupBox4.Controls.Add(this.label4);
+ this.groupBox4.Location = new System.Drawing.Point(12, 309);
+ this.groupBox4.Name = "groupBox4";
+ this.groupBox4.Size = new System.Drawing.Size(496, 140);
+ this.groupBox4.TabIndex = 64;
+ this.groupBox4.TabStop = false;
+ this.groupBox4.Text = "Prices (for job cost estimation)";
+ //
+ // amspriceslink
+ //
+ this.amspriceslink.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.amspriceslink.AutoSize = true;
+ this.amspriceslink.Location = new System.Drawing.Point(360, 26);
+ this.amspriceslink.Name = "amspriceslink";
+ this.amspriceslink.Size = new System.Drawing.Size(115, 13);
+ this.amspriceslink.TabIndex = 62;
+ this.amspriceslink.TabStop = true;
+ this.amspriceslink.Text = "Media Services Pricing";
+ this.amspriceslink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.amspriceslink_LinkClicked);
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(39, 26);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(90, 13);
+ this.label7.TabIndex = 61;
+ this.label7.Text = "Currency symbol :";
+ //
// Options
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
- this.ClientSize = new System.Drawing.Size(520, 449);
+ this.ClientSize = new System.Drawing.Size(520, 606);
+ this.Controls.Add(this.groupBox4);
this.Controls.Add(this.panel1);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox2);
@@ -410,6 +554,11 @@ private void InitializeComponent()
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.panel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAMEPrice)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLegacyEncodingPrice)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownIndexingPrice)).EndInit();
+ this.groupBox4.ResumeLayout(false);
+ this.groupBox4.PerformLayout();
this.ResumeLayout(false);
}
@@ -445,5 +594,15 @@ private void InitializeComponent()
private System.Windows.Forms.NumericUpDown numericUpDownLocatorDuration;
private System.Windows.Forms.CheckBox checkBoxDisplayAssetStorage;
private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.NumericUpDown numericUpDownAMEPrice;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.NumericUpDown numericUpDownLegacyEncodingPrice;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.NumericUpDown numericUpDownIndexingPrice;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.TextBox textBoxCurrency;
+ private System.Windows.Forms.GroupBox groupBox4;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.LinkLabel amspriceslink;
}
}
\ No newline at end of file
diff --git a/AMSExplorer/options.cs b/AMSExplorer/options.cs
index c5536792..c0e53595 100644
--- a/AMSExplorer/options.cs
+++ b/AMSExplorer/options.cs
@@ -24,6 +24,8 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using System.Diagnostics;
+
namespace AMSExplorer
{
@@ -56,7 +58,10 @@ private void buttonOk_Click(object sender, EventArgs e)
Properties.Settings.Default.DefaultJobPriority = (int)numericUpDownPriority.Value;
Properties.Settings.Default.DefaultLocatorDurationDays = (int)numericUpDownLocatorDuration.Value;
-
+ Properties.Settings.Default.AMEPrice = numericUpDownAMEPrice.Value;
+ Properties.Settings.Default.LegacyEncodingPrice = numericUpDownLegacyEncodingPrice.Value;
+ Properties.Settings.Default.IndexingPrice = numericUpDownIndexingPrice.Value;
+ Properties.Settings.Default.Currency = textBoxCurrency.Text;
Properties.Settings.Default.Save();
}
@@ -83,7 +88,11 @@ private void buttonReset_Click(object sender, EventArgs e)
checkBoxEnableCustomPlayer.Checked = false;
numericUpDownPriority.Value = 10;
+ textBoxCurrency.Text = "$";
numericUpDownLocatorDuration.Value = 365;
+ numericUpDownAMEPrice.Value = ((decimal)1.99);
+ numericUpDownLegacyEncodingPrice.Value = ((decimal)1.39);
+ numericUpDownIndexingPrice.Value = ((decimal)10);
Properties.Settings.Default.WAMEPresetXMLFilesCurrentFolder = Application.StartupPath + Constants.PathAMEFiles; // we reset the XML files folders
Properties.Settings.Default.PremiumWorkflowPresetXMLFilesCurrentFolder = Application.StartupPath + Constants.PathPremiumWorkflowFiles;
@@ -116,11 +125,24 @@ private void options_Load(object sender, EventArgs e)
numericUpDownPriority.Value = Properties.Settings.Default.DefaultJobPriority;
numericUpDownLocatorDuration.Value = Properties.Settings.Default.DefaultLocatorDurationDays;
+
+ textBoxCurrency.Text = Properties.Settings.Default.Currency;
+ numericUpDownAMEPrice.Value = Properties.Settings.Default.AMEPrice;
+ numericUpDownLegacyEncodingPrice.Value = Properties.Settings.Default.LegacyEncodingPrice;
+ numericUpDownIndexingPrice.Value = Properties.Settings.Default.IndexingPrice;
+
+ amspriceslink.Links.Add(new LinkLabel.Link(0, amspriceslink.Text.Length, "http://azure.microsoft.com/en-us/pricing/details/media-services/"));
+
}
private void checkBoxEnableCustomPlayer_CheckedChanged(object sender, EventArgs e)
{
textBoxCustomPlayer.Enabled = checkBoxEnableCustomPlayer.Checked;
}
+
+ private void amspriceslink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ {
+ Process.Start(e.Link.LinkData as string);
+ }
}
}
diff --git a/AMSExplorer/options.resx b/AMSExplorer/options.resx
index df8339b6..5f621e80 100644
--- a/AMSExplorer/options.resx
+++ b/AMSExplorer/options.resx
@@ -120,4 +120,10 @@
17, 17
+
+ 17, 17
+
+
+ 53
+
\ No newline at end of file
diff --git a/SetupAMSExplorer/SetupAMSExplorer.isl b/SetupAMSExplorer/SetupAMSExplorer.isl
index a40795fc..b24ebe45 100644
--- a/SetupAMSExplorer/SetupAMSExplorer.isl
+++ b/SetupAMSExplorer/SetupAMSExplorer.isl
@@ -4389,7 +4389,7 @@ UwBpAG4AZwBsAGUASQBtAGEAZwBlAAEARQB4AHAAcgBlAHMAcwA=
PROGMSG_IIS_ROLLBACKVROOTS | ##IDS_PROGMSG_IIS_ROLLBACKVROOTS## | |
PROGMSG_IIS_ROLLBACKWEBSERVICEEXTENSIONS | ##IDS_PROGMSG_IIS_ROLLBACKWEBSERVICEEXTENSIONS## | |
PROGRAMFILETOLAUNCHATEND | [INSTALLDIR]AMSExplorer.Primary output | |
- ProductCode | {E6B4F2A0-B81D-4A81-B76A-DEA449477C93} | |
+ ProductCode | {EECC0C7E-223D-403C-8D6D-1B21590C1A3E} | |
ProductName | Azure Media Services Explorer | |
ProductVersion | 3.03 | |
ProgressType0 | install | |