public ChannelCreationOptions GetChannelCreationOptions() { return(new ChannelCreationOptions { Name = Name, Description = Description, EncodingType = EncodingType, Input = ChannelCreationOperations.ConfigureDefaultInput(StreamingProtocol, IPRange.ToSdk(IngestAllowList)), Preview = ChannelCreationOperations.ConfigureChannelPreview(IPRange.ToSdk(PreviewAllowList)), Output = new ChannelOutput(), Encoding = EncodingType != ChannelEncodingType.None ? ChannelCreationOperations.GetDefaultEncoding(EncodingPreset) : null, Slate = EncodingType != ChannelEncodingType.None && SlateAssetId != null?ChannelCreationOperations.GetDefaultSlate(SlateAssetId) : null }); }
public StreamingEndpointCreationOptions GetCreationOptions() { return(new StreamingEndpointCreationOptions { Name = Name, Description = Description, ScaleUnits = ScaleUnits, CacheControl = new StreamingEndpointCacheControl { MaxAge = TimeSpan.FromMinutes(MaxAge) }, AccessControl = new StreamingEndpointAccessControl { IPAllowList = AllowList == null?ChannelCreationOperations.GetDefaultIpAllowList() : IPRange.ToSdk(AllowList) } }); }