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
485cc2d3
Commit
485cc2d3
authored
Oct 17, 2018
by
Clint Mourlevat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding IAsk/Ask for putting vanity asking
parent
bcc8f416
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
HomeController.cs
Controllers/HomeController.cs
+4
-1
Ask.cs
Modules/Ask.cs
+10
-0
IAsk.cs
Modules/IAsk.cs
+7
-0
Startup.cs
Startup.cs
+3
-0
No files found.
Controllers/HomeController.cs
View file @
485cc2d3
...
...
@@ -14,16 +14,19 @@ using Newtonsoft.Json;
using
QRCoder
;
using
Stratis.Bitcoin.Networks
;
using
Stratis.Guru.Models
;
using
Stratis.Guru.Modules
;
namespace
Stratis.Guru.Controllers
{
public
class
HomeController
:
Controller
{
private
readonly
IMemoryCache
_memoryCache
;
private
IAsk
_ask
;
public
HomeController
(
IMemoryCache
memoryCache
)
public
HomeController
(
IMemoryCache
memoryCache
,
IAsk
ask
)
{
_memoryCache
=
memoryCache
;
_ask
=
ask
;
}
public
IActionResult
Index
()
...
...
Modules/Ask.cs
0 → 100644
View file @
485cc2d3
using
System.Collections.Generic
;
using
Stratis.Guru.Models
;
namespace
Stratis.Guru.Modules
{
public
class
Ask
:
IAsk
{
public
Queue
<
Vanity
>
VanityAsking
=
new
Queue
<
Vanity
>();
}
}
\ No newline at end of file
Modules/IAsk.cs
0 → 100644
View file @
485cc2d3
namespace
Stratis.Guru.Modules
{
public
interface
IAsk
{
}
}
\ No newline at end of file
Startup.cs
View file @
485cc2d3
...
...
@@ -13,6 +13,7 @@ using Microsoft.AspNetCore.Mvc;
using
Microsoft.Extensions.Configuration
;
using
Microsoft.Extensions.DependencyInjection
;
using
Microsoft.Extensions.FileProviders
;
using
Stratis.Guru.Modules
;
using
Stratis.Guru.Services
;
namespace
Stratis.Guru
...
...
@@ -41,6 +42,8 @@ namespace Stratis.Guru
services
.
AddMemoryCache
();
services
.
AddTransient
<
IAsk
,
Ask
>();
services
.
AddHostedService
<
TickerService
>();
services
.
AddHostedService
<
VanityService
>();
...
...
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