Exemplo n.º 1
0
        public async Task <string> GetRawContentAsync(string key)
        {
            var redirectable = await _redirectableStore.LoadAsync(key);

            return(redirectable switch
            {
                MicroText text => text.Text,
                MicroUrl url => url.Url,
                _ => null
            });
Exemplo n.º 2
0
 public async Task <string> CreateAsync(MicroText microText) =>
 await _redirectableStore.CreateAsync(microText);