Exemplo n.º 1
0
 private void SetValue(MetadataConfiguration <AppFolders> metadataConfiguration)
 {
     metadataConfiguration.For(p => p.SampleProfileImagesFolder, Path.Combine(_env.WebRootPath, $"Common{Path.DirectorySeparatorChar}Images{Path.DirectorySeparatorChar}SampleProfilePics"));
     metadataConfiguration.For(p => p.TempFileDownloadFolder, Path.Combine(_env.WebRootPath, $"Temp{Path.DirectorySeparatorChar}Downloads"));
     metadataConfiguration.For(p => p.WebLogsFolder, Path.Combine(_env.ContentRootPath, $"App_Data{Path.DirectorySeparatorChar}Logs"));
     metadataConfiguration.For(p => p.UploadFilesFolder, Path.Combine(_env.WebRootPath, $"Upload"));
 }
Exemplo n.º 2
0
 private static void GetKickAllMetadata(
     MetadataConfiguration<RConCommandMetadata> metadataConfiguration)
 {
     metadataConfiguration
         .For(am => am.Name, "kickall")
         .For(am => am.Description, "Kicks all players from the server.");
 }
Exemplo n.º 3
0
 private static void GetGetPlayersMetadata(
     MetadataConfiguration<RConCommandMetadata> metadataConfiguration)
 {
     metadataConfiguration
         .For(am => am.Name, "getplayers")
         .For(am => am.Description, "Retrieves the list of players online.");
 }
Exemplo n.º 4
0
 private static void GetUpdateDbPlayersMetadata(
     MetadataConfiguration<RConCommandMetadata> metadataConfiguration)
 {
     metadataConfiguration
         .For(am => am.Name, "update_dbplayers")
         .For(am => am.Description, "Updates online players in the database.");
 }