-
-
Save kmorcinek/76d750ac8e3beb55f39aef31256d5a57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SettingsLogger | |
{ | |
public static void LogSettings( | |
string inventoryPath, | |
AbcServiceSettings abcServiceSettings) | |
{ | |
string userName = UserNameService.GetUserName(); | |
var settings = new | |
{ | |
inventoryPath, | |
userName, | |
abcServiceSettings | |
}; | |
string serializedSettings = JsonConvert.SerializeObject(settings); | |
Logger.Info(serializedSettings); | |
} | |
} | |
public class AbcServiceSettings | |
{ | |
public string Url { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment