Beispiel #1
0
        public async Task <DotNetRuProfiles.Models.Profile.Profile> GetProfile(GrainCancellationToken grainCancellationToken)
        {
            var path = Path.Combine(
                Directory.GetCurrentDirectory(),
                "AnatolyKulakov\\SpbDotNet.wiki.git\\",
                $"{this.GetPrimaryKeyString()}.md"
                );

            var file = await File.ReadAllTextAsync(path);

            return(await _markdownParser.Extract <DotNetRuProfiles.Models.Profile.Profile>(file));
        }