/// <summary> /// Returns a new <see cref="ILocator"/> instance. /// </summary> /// <param name="context">The <see cref="CloudMediaContext"/> instance.</param> /// <param name="asset">The <see cref="IAsset"/> instance for the new <see cref="ILocator"/>.</param> /// <param name="locatorType">The <see cref="LocatorType"/>.</param> /// <param name="permissions">The <see cref="AccessPermissions"/> of the <see cref="IAccessPolicy"/> associated with the new <see cref="ILocator"/>.</param> /// <param name="duration">The duration of the <see cref="IAccessPolicy"/> associated with the new <see cref="ILocator"/>.</param> /// <returns>A a new <see cref="ILocator"/> instance.</returns> public static ILocator CreateLocator(this CloudMediaContext context, IAsset asset, LocatorType locatorType, AccessPermissions permissions, TimeSpan duration) { return(context.CreateLocator(asset, locatorType, permissions, duration, null)); }