diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/ExtensionMethods/DeploymentSlotExtensions.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Web/ExtensionMethods/DeploymentSlotExtensions.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Web/ExtensionMethods/DeploymentSlotExtensions.cs b/Software/Visual_Studio/Tango.Web/ExtensionMethods/DeploymentSlotExtensions.cs new file mode 100644 index 000000000..04e5ac300 --- /dev/null +++ b/Software/Visual_Studio/Tango.Web/ExtensionMethods/DeploymentSlotExtensions.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Web; + +public static class DeploymentSlotExtensions +{ + /// <summary> + /// Gets the deployment slot web address. + /// </summary> + /// <param name="slot">The slot.</param> + /// <returns></returns> + public static String ToAddress(this DeploymentSlot slot) + { + return slot.GetAttribute<DeploymentSlotAddressAttribute>().Address; + } +} + |
