Esempio n. 1
0
        public string GetSubFolderPath(string filename = null)
        {
            NameParser parser = new NameParser(NameParserType.URL);
            string     path   = parser.Parse(SubFolderPath.Replace("%host", Host));

            return(Helpers.CombineURL(path, filename));
        }
        private AzureAppendLogDto GenerateLogDto(LogEventInfo logEvent)
        {
            var azureLogDto =
                new AzureAppendLogDto {
                ContainerRef = _client.GetContainerReference(Container.Render(logEvent))
            };

            azureLogDto.BlobRef =
                azureLogDto.ContainerRef.GetAppendBlobReference(Path.Combine(SubFolderPath.Render(logEvent),
                                                                             BlobName.Render(logEvent)));
            azureLogDto.LogEvent = logEvent;
            return(azureLogDto);
        }
Esempio n. 3
0
        public string GetSubFolderPath(string filename = null, NameParserType nameParserType = NameParserType.URL)
        {
            string path = NameParser.Parse(nameParserType, SubFolderPath.Replace("%host", Host));

            return(URLHelpers.CombineURL(path, filename));
        }
        public string GetSubFolderPath()
        {
            NameParser parser = new NameParser(NameParserType.URL);

            return(parser.Parse(SubFolderPath.Replace("%host", LocalhostRoot)));
        }
Esempio n. 5
0
 public string GetSubFolderPath()
 {
     return(NameParser.Parse(NameParserType.URL, SubFolderPath.Replace("%host", FileHelpers.ExpandFolderVariables(LocalhostRoot))));
 }
Esempio n. 6
0
 public string GetSubFolderPath()
 {
     return(NameParser.Parse(NameParserType.URL, SubFolderPath.Replace("%host", LocalhostRoot)));
 }
Esempio n. 7
0
 public string GetSubFolderPath()
 {
     return(NameParser.Parse(NameParserType.URL, SubFolderPath.Replace("%host", Helpers.GetVariableFolderPath(LocalhostRoot))));
 }