Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
10eaa60c
Commit
10eaa60c
authored
Nov 08, 2018
by
Clint.Network
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finishing for today
parent
cbd53ee8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Startup.cs
Stratis.Guru/Startup.cs
+4
-3
No files found.
Stratis.Guru/Startup.cs
View file @
10eaa60c
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment