示例#1
0
 public static void SetImageDirectory(this IImageSourceServiceConfiguration config, string directory) =>
 config[ImageDirectoryKey] = directory;
示例#2
0
 public static string?GetImageDirectory(this IImageSourceServiceConfiguration config) =>
 config.TryGetValue(ImageDirectoryKey, out var directory) ? directory : null;