Microsoft.WindowsAzure.MediaServices.Client.Tests.GetKeyDeliveryUrlTests.CreateTestKey C# (CSharp) Method

CreateTestKey() public static method

public static CreateTestKey ( CloudMediaContext mediaContext, ContentKeyType contentKeyType, byte &key, string name = "" ) : IContentKey
mediaContext CloudMediaContext
contentKeyType ContentKeyType
key byte
name string
return IContentKey
        public static IContentKey CreateTestKey(CloudMediaContext mediaContext, ContentKeyType contentKeyType, out byte[] key, string name = "")
        {
            key = ContentKeyTests.GetRandomBuffer(16);
            IContentKey contentKey = mediaContext.ContentKeys.Create(Guid.NewGuid(), key, name, contentKeyType);

            return contentKey;
        }

Same methods

GetKeyDeliveryUrlTests::CreateTestKey ( CloudMediaContext mediaContext, ContentKeyType contentKeyType, string name = "" ) : IContentKey