@@ -15,7 +15,7 @@ public class HomeSpeakerService
1515 string address = config [ "ServerAddress" ] ?? throw new MissingConfigException ( "ServerAddress" ) ;
1616 logger . LogInformation ( $ "I was about to use { address } ") ;
1717 address = hostEnvironment . BaseAddress ;
18- logger . LogInformation ( "But instead I'll use {address }" , address ) ;
18+ logger . LogInformation ( "But instead I'll use {Address }" , address ) ;
1919 var channel = GrpcChannel . ForAddress ( address , new GrpcChannelOptions
2020 {
2121 HttpHandler = new GrpcWebHandler ( new HttpClientHandler ( ) )
@@ -116,13 +116,13 @@ public async Task RenamePlaylistAsync(string oldName, string newName)
116116 {
117117 try
118118 {
119- logger . LogInformation ( "Calling RenamePlaylist gRPC method: {oldName } -> {newName }" , oldName , newName ) ;
119+ logger . LogInformation ( "Calling RenamePlaylist gRPC method: {OldName } -> {NewName }" , oldName , newName ) ;
120120 await client . RenamePlaylistAsync ( new RenamePlaylistRequest { OldName = oldName , NewName = newName } ) ;
121- logger . LogInformation ( "Successfully called RenamePlaylist gRPC method: {oldName } -> {newName }" , oldName , newName ) ;
121+ logger . LogInformation ( "Successfully called RenamePlaylist gRPC method: {OldName } -> {NewName }" , oldName , newName ) ;
122122 }
123123 catch ( Exception ex )
124124 {
125- logger . LogError ( ex , "Error calling RenamePlaylist gRPC method: {oldName } -> {newName }" , oldName , newName ) ;
125+ logger . LogError ( ex , "Error calling RenamePlaylist gRPC method: {OldName } -> {NewName }" , oldName , newName ) ;
126126 throw ;
127127 }
128128 }
@@ -134,26 +134,26 @@ public async Task DeletePlaylistAsync(string playlistName)
134134
135135 public async Task ReorderPlaylistSongsAsync ( string playlistName , List < string > songPaths )
136136 {
137- logger . LogInformation ( "Calling ReorderPlaylistSongs gRPC method for playlist: {playlistName }" , playlistName ) ;
137+ logger . LogInformation ( "Calling ReorderPlaylistSongs gRPC method for playlist: {PlaylistName }" , playlistName ) ;
138138 await client . ReorderPlaylistSongsAsync ( new ReorderPlaylistSongsRequest
139139 {
140140 PlaylistName = playlistName ,
141141 SongPaths = { songPaths }
142142 } ) ;
143- logger . LogInformation ( "Successfully called ReorderPlaylistSongs gRPC method for playlist: {playlistName }" , playlistName ) ;
143+ logger . LogInformation ( "Successfully called ReorderPlaylistSongs gRPC method for playlist: {PlaylistName }" , playlistName ) ;
144144 }
145145
146146 public async Task UpdateSongAsync ( int songId , string name , string artist , string album )
147147 {
148- logger . LogInformation ( "Calling UpdateSong gRPC method for song: {songId }" , songId ) ;
148+ logger . LogInformation ( "Calling UpdateSong gRPC method for song: {SongId }" , songId ) ;
149149 await client . UpdateSongAsync ( new UpdateSongRequest
150150 {
151151 SongId = songId ,
152152 Name = name ,
153153 Artist = artist ,
154154 Album = album
155155 } ) ;
156- logger . LogInformation ( "Successfully called UpdateSong gRPC method for song: {songId }" , songId ) ;
156+ logger . LogInformation ( "Successfully called UpdateSong gRPC method for song: {SongId }" , songId ) ;
157157 }
158158
159159 readonly char [ ] separators = new [ ] { '/' , '\\ ' } ;
@@ -175,12 +175,12 @@ public async Task<IEnumerable<string>> GetFolders()
175175
176176 if ( directory == "c:" )
177177 {
178- logger . LogInformation ( "Directory: '{directory }' ({path })" , directory , s . Path ) ;
178+ logger . LogInformation ( "Directory: '{Directory }' ({Path })" , directory , s . Path ) ;
179179 }
180180
181181 if ( ! folders . Contains ( directory ) )
182182 {
183- logger . LogInformation ( "Directory: '{directory }' ({path })" , directory , s . Path ) ;
183+ logger . LogInformation ( "Directory: '{Directory }' ({Path })" , directory , s . Path ) ;
184184 folders . Add ( directory ) ;
185185 }
186186 }
0 commit comments