Commit 10eaa60c authored by Clint.Network's avatar Clint.Network

Finishing for today

parent cbd53ee8
...@@ -88,6 +88,7 @@ namespace Stratis.Guru ...@@ -88,6 +88,7 @@ namespace Stratis.Guru
RequestPath = "/npm" RequestPath = "/npm"
}); });
// Add Documentation (MkDocs) Support
app.UseFileServer(new FileServerOptions app.UseFileServer(new FileServerOptions
{ {
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "Documentation/site/")), FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "Documentation/site/")),
...@@ -97,11 +98,10 @@ namespace Stratis.Guru ...@@ -97,11 +98,10 @@ namespace Stratis.Guru
DefaultFilesOptions = { DefaultFileNames = {"index.html"}} DefaultFilesOptions = { DefaultFileNames = {"index.html"}}
}); });
// Add Culture Detection Support
var allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures).Where(x => !x.IsNeutralCulture).ToList(); var allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures).Where(x => !x.IsNeutralCulture).ToList();
var defaultCulture = new RequestCulture("en-US"); var defaultCulture = new RequestCulture("en-US");
defaultCulture.UICulture.NumberFormat.CurrencySymbol = "$"; defaultCulture.UICulture.NumberFormat.CurrencySymbol = "$";
app.UseRequestLocalization(new RequestLocalizationOptions app.UseRequestLocalization(new RequestLocalizationOptions
{ {
DefaultRequestCulture = defaultCulture, DefaultRequestCulture = defaultCulture,
...@@ -109,6 +109,7 @@ namespace Stratis.Guru ...@@ -109,6 +109,7 @@ namespace Stratis.Guru
SupportedUICultures = allCultures SupportedUICultures = allCultures
}); });
// Add SignalR support for automatically update ticker price
app.UseSignalR(routes => app.UseSignalR(routes =>
{ {
routes.MapHub<UpdateHub>("/update"); routes.MapHub<UpdateHub>("/update");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment