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 AventusHelper(MediaServicesAccountConfig config) { AccountConfig = config; if (config.TelemetryStorage != null) { TelemetryStorage = new TelemetryStorage(config.TelemetryStorage); } if (config.MetaData.Thumbprint != null) { AventusDNSTail = config.MetaData.aventusDNSBase; Certificate = ChannelCreationOperations.GetCertificate(config.MetaData.Thumbprint); TelemetryClient = ChannelCreationOperations.GetWebClient(null, Certificate); } }
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) } }); }