Exemplo n.º 1
0
        bool CheckMetadata(StreamInstance stream)
        {
            var parameters = stream.instance.Metadata?.Parameters;

            if (parameters == null)
            {
                return(false);
            }

            foreach (var entry in m_Settings.entries)
            {
                if (!parameters.TryGetValue(entry.key, out var parameter) || !parameter.Value.Contains(entry.value))
                {
                    return(false);
                }
            }

            return(true);
        }
Exemplo n.º 2
0
 public async Task CopyToAsync(IStream destination, int bufferSize, CancellationToken cancellationToken)
 {
     await StreamInstance.CopyToAsync(destination.StreamInstance, bufferSize, cancellationToken);
 }
Exemplo n.º 3
0
 public async Task CopyToAsync(IStream destination)
 {
     await StreamInstance.CopyToAsync(destination.StreamInstance);
 }
Exemplo n.º 4
0
 public async Task CopyToAsync(IStream destination, int bufferSize)
 {
     await StreamInstance.CopyToAsync(destination.StreamInstance, bufferSize);
 }
Exemplo n.º 5
0
 public void CopyTo(IStream destination)
 {
     StreamInstance.CopyTo(destination.StreamInstance);
 }
Exemplo n.º 6
0
 public void CopyTo(IStream destination, int bufferSize)
 {
     StreamInstance.CopyTo(destination.StreamInstance, bufferSize);
 }
Exemplo n.º 7
0
 public async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 {
     await StreamInstance.WriteAsync(buffer, offset, count, cancellationToken);
 }
Exemplo n.º 8
0
 public async Task WriteAsync(byte[] buffer, int offset, int count)
 {
     await StreamInstance.WriteAsync(buffer, offset, count);
 }
Exemplo n.º 9
0
 public async Task <int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 {
     return(await StreamInstance.ReadAsync(buffer, offset, count, cancellationToken));
 }
Exemplo n.º 10
0
 public async Task <int> ReadAsync(byte[] buffer, int offset, int count)
 {
     return(await StreamInstance.ReadAsync(buffer, offset, count));
 }
Exemplo n.º 11
0
 public async Task FlushAsync()
 {
     await StreamInstance.FlushAsync();
 }