Ejemplo n.º 1
0
        public async Task <Response> SetStreamMetadata(
            SetStreamMetadataOperation operation,
            CancellationToken cancellationToken)
        {
            await operation.Invoke(_streamStore, cancellationToken);

            var response = new Response(new HALResponse(new
            {
                operation.StreamId,
                operation.MaxAge,
                operation.MaxCount,
                operation.MetadataJson
            })
                                        .AddLinks(s_links));

            return(response);
        }
 public static Link Feed(SetStreamMetadataOperation operation) => Link(operation.StreamId);