public Task SaveAndCloseAsync(FunctionInstanceLogEntry item, CancellationToken cancellationToken)
            {
                if (item != null)
                {
                    var str = Encoding.UTF8.GetString(_ms.ToArray());

                    // Truncate.
                    if (str.Length > FunctionInstanceLogEntry.MaxLogOutputLength)
                    {
                        // 0123456789
                        // abcdefghij
                        str = "..." + str.Substring(str.Length - (FunctionInstanceLogEntry.MaxLogOutputLength - 3));
                    }

                    item.LogOutput = str;
                }

                return(Task.FromResult(0));
            }
 public async Task SaveAndCloseAsync(FunctionInstanceLogEntry item, CancellationToken cancellationToken)
 {
     await UpdateOutputBlob(cancellationToken, flushAndClose: true);
 }
 public Task SaveAndCloseAsync(FunctionInstanceLogEntry item, CancellationToken cancellationToken) => Task.CompletedTask;
            public Task SaveAndCloseAsync(FunctionInstanceLogEntry item, CancellationToken cancellationToken)
            {
                if (item != null)
                {
                    var str = Encoding.UTF8.GetString(_ms.ToArray());

                    // Truncate. 
                    if (str.Length > FunctionInstanceLogEntry.MaxLogOutputLength)
                    {                        
                        // 0123456789
                        // abcdefghij
                        str = "..." + str.Substring(str.Length - (FunctionInstanceLogEntry.MaxLogOutputLength - 3));
                    }

                    item.LogOutput = str;
                }

                return Task.FromResult(0);
            }
 public Task SaveAndCloseAsync(FunctionInstanceLogEntry item, CancellationToken cancellationToken)
 {
     return(Task.FromResult(0));
 }
 public async Task SaveAndCloseAsync(FunctionInstanceLogEntry item, CancellationToken cancellationToken)
 {
     await UpdateOutputBlob(cancellationToken, flushAndClose : true);
 }
 public Task SaveAndCloseAsync(FunctionInstanceLogEntry item, CancellationToken cancellationToken)
 {
     return Task.FromResult(0);
 }