Added AppWindow
This commit is contained in:
@@ -184,4 +184,17 @@ public static class IHostBuilderExtension
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
public static IHostBuilder UseContentRoot(this IHostBuilder hostBuilder,
|
||||
string contentRoot,
|
||||
bool createDirectory)
|
||||
{
|
||||
if (createDirectory)
|
||||
{
|
||||
Directory.CreateDirectory(contentRoot);
|
||||
}
|
||||
|
||||
hostBuilder.UseContentRoot(contentRoot);
|
||||
return hostBuilder;
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public static class IHostBuilderExtensions
|
||||
{
|
||||
public static IHostBuilder UseContentRoot(this IHostBuilder hostBuilder,
|
||||
string contentRoot,
|
||||
bool createDirectory)
|
||||
{
|
||||
if (createDirectory)
|
||||
{
|
||||
Directory.CreateDirectory(contentRoot);
|
||||
}
|
||||
|
||||
hostBuilder.UseContentRoot(contentRoot);
|
||||
return hostBuilder;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user