Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
Breeze
Commits
fc9814a6
Commit
fc9814a6
authored
Mar 27, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Api as a feature of the Full Node
parent
ead042b2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
8 deletions
+41
-8
.gitignore
.gitignore
+1
-0
ApiFeature.cs
Breeze/src/Breeze.Api/ApiFeature.cs
+30
-0
Program.cs
Breeze/src/Breeze.Api/Program.cs
+7
-7
project.json
Breeze/src/Breeze.Api/project.json
+1
-0
Program.cs
Breeze/src/Breeze.Deamon/Program.cs
+2
-1
No files found.
.gitignore
View file @
fc9814a6
...
@@ -257,3 +257,4 @@ ModelManifest.xml
...
@@ -257,3 +257,4 @@ ModelManifest.xml
# DNX
# DNX
project.lock.json
project.lock.json
/Breeze/src/Breeze.Deamon/Wallets
Breeze/src/Breeze.Api/ApiFeature.cs
0 → 100644
View file @
fc9814a6
using
Stratis.Bitcoin.Builder
;
using
Stratis.Bitcoin.Builder.Feature
;
namespace
Breeze.Api
{
public
class
ApiFeature
:
FullNodeFeature
{
public
override
void
Start
()
{
Program
.
Main
(
null
);
}
}
public
static
class
ApiFeatureExtension
{
public
static
IFullNodeBuilder
UseApi
(
this
IFullNodeBuilder
fullNodeBuilder
)
{
fullNodeBuilder
.
ConfigureFeature
(
features
=>
{
features
.
AddFeature
<
ApiFeature
>()
.
FeatureServices
(
services
=>
{
});
});
return
fullNodeBuilder
;
}
}
}
Breeze/src/Breeze.Api/Program.cs
View file @
fc9814a6
...
@@ -12,14 +12,14 @@ namespace Breeze.Api
...
@@ -12,14 +12,14 @@ namespace Breeze.Api
{
{
public
static
void
Main
(
string
[]
args
)
public
static
void
Main
(
string
[]
args
)
{
{
var
host
=
new
WebHostBuilder
()
var
host
=
new
WebHostBuilder
()
.
UseKestrel
()
.
UseKestrel
()
.
UseContentRoot
(
Directory
.
GetCurrentDirectory
())
.
UseContentRoot
(
Directory
.
GetCurrentDirectory
())
.
UseIISIntegration
()
.
UseIISIntegration
()
.
UseStartup
<
Startup
>()
.
UseStartup
<
Startup
>()
.
Build
();
.
Build
();
host
.
Run
();
host
.
Run
();
}
}
}
}
}
}
Breeze/src/Breeze.Api/project.json
View file @
fc9814a6
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
"Microsoft.Extensions.Options.ConfigurationExtensions"
:
"1.1.1"
,
"Microsoft.Extensions.Options.ConfigurationExtensions"
:
"1.1.1"
,
"Microsoft.NETCore.App"
:
"1.1.0"
,
"Microsoft.NETCore.App"
:
"1.1.0"
,
"NBitcoin"
:
"3.0.2.10"
,
"NBitcoin"
:
"3.0.2.10"
,
"Stratis.Bitcoin"
:
"1.0.1.2-alpha"
,
"System.Reactive"
:
"3.1.1"
"System.Reactive"
:
"3.1.1"
},
},
...
...
Breeze/src/Breeze.Deamon/Program.cs
View file @
fc9814a6
using
System.Threading
;
using
System.Threading
;
using
Breeze.Api
;
using
Microsoft.Extensions.Logging
;
using
Microsoft.Extensions.Logging
;
using
Stratis.Bitcoin
;
using
Stratis.Bitcoin
;
using
Stratis.Bitcoin.Builder
;
using
Stratis.Bitcoin.Builder
;
...
@@ -18,7 +19,7 @@ namespace Breeze.Deamon
...
@@ -18,7 +19,7 @@ namespace Breeze.Deamon
var
node
=
(
FullNode
)
new
FullNodeBuilder
()
var
node
=
(
FullNode
)
new
FullNodeBuilder
()
.
UseNodeSettings
(
nodeSettings
)
.
UseNodeSettings
(
nodeSettings
)
//.UseWallet()
//.UseWallet()
//
.UseApi()
.
UseApi
()
//.UseBlockNotification()
//.UseBlockNotification()
.
Build
();
.
Build
();
...
...
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