示例#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);
        }
示例#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)));
        }
示例#5
0
 public string GetSubFolderPath()
 {
     return(NameParser.Parse(NameParserType.URL, SubFolderPath.Replace("%host", FileHelpers.ExpandFolderVariables(LocalhostRoot))));
 }
示例#6
0
 public string GetSubFolderPath()
 {
     return(NameParser.Parse(NameParserType.URL, SubFolderPath.Replace("%host", LocalhostRoot)));
 }
示例#7
0
 public string GetSubFolderPath()
 {
     return(NameParser.Parse(NameParserType.URL, SubFolderPath.Replace("%host", Helpers.GetVariableFolderPath(LocalhostRoot))));
 }