コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MediaServicesV3TransformBase"/> class.
        /// </summary>
        /// <param name="name">The name of the transform.</param>
        protected MediaServicesV3TransformBase(string name)
        {
            // Validate
            MediaServicesV3TransformHelpers.CheckArgumentNotNullOrEmpty(name, nameof(name));

            Name        = name;
            Description = $"The {Name} Transform";
        }
コード例 #2
0
        /// <summary>
        /// Method used to get a transform
        /// </summary>
        /// <param name="transformName">Transform name</param>
        /// <returns>MediaServicesV3TransformBase</returns>
        public MediaServicesV3TransformBase GetTransform(string transformName)
        {
            MediaServicesV3TransformHelpers.CheckArgumentNotNullOrEmpty(transformName, nameof(transformName));

            // Search the dictionary
            if (!_transforms.TryGetValue(transformName, out var transform))
            {
                transform = null;
            }

            return(transform);
        }