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
157e7f0d
Commit
157e7f0d
authored
Mar 27, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Deamon project that will be reponsible for loading the full node and the other dependencies
parent
0279986c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
120 additions
and
0 deletions
+120
-0
Breeze.sln
Breeze/Breeze.sln
+7
-0
Breeze.Deamon.xproj
Breeze/src/Breeze.Deamon/Breeze.Deamon.xproj
+21
-0
Program.cs
Breeze/src/Breeze.Deamon/Program.cs
+46
-0
AssemblyInfo.cs
Breeze/src/Breeze.Deamon/Properties/AssemblyInfo.cs
+19
-0
project.json
Breeze/src/Breeze.Deamon/project.json
+27
-0
No files found.
Breeze/Breeze.sln
View file @
157e7f0d
...
...
@@ -16,6 +16,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Breeze.Api.Tests", "src\Bre
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Breeze.Wallet", "src\Breeze.Wallet\Breeze.Wallet.xproj", "{D16CD478-9D1E-4C69-91AD-43539E94A215}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Breeze.Deamon", "src\Breeze.Deamon\Breeze.Deamon.xproj", "{1B598E33-667F-496D-BC0D-88276E8E7632}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -34,6 +36,10 @@ Global
{D16CD478-9D1E-4C69-91AD-43539E94A215}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D16CD478-9D1E-4C69-91AD-43539E94A215}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D16CD478-9D1E-4C69-91AD-43539E94A215}.Release|Any CPU.Build.0 = Release|Any CPU
{1B598E33-667F-496D-BC0D-88276E8E7632}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B598E33-667F-496D-BC0D-88276E8E7632}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B598E33-667F-496D-BC0D-88276E8E7632}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B598E33-667F-496D-BC0D-88276E8E7632}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
@@ -42,5 +48,6 @@ Global
{E7B3E9EB-34E8-4B10-B296-4D5270E314A4} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{BD5174B4-DCE8-4594-9A16-B83E56767770} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{D16CD478-9D1E-4C69-91AD-43539E94A215} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{1B598E33-667F-496D-BC0D-88276E8E7632} = {807563C4-7259-434D-B604-A14C3DCF8E30}
EndGlobalSection
EndGlobal
Breeze/src/Breeze.Deamon/Breeze.Deamon.xproj
0 → 100644
View file @
157e7f0d
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"14.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<VisualStudioVersion
Condition=
"'$(VisualStudioVersion)' == ''"
>
14.0
</VisualStudioVersion>
<VSToolsPath
Condition=
"'$(VSToolsPath)' == ''"
>
$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
</VSToolsPath>
</PropertyGroup>
<Import
Project=
"$(VSToolsPath)\DotNet\Microsoft.DotNet.Props"
Condition=
"'$(VSToolsPath)' != ''"
/>
<PropertyGroup
Label=
"Globals"
>
<ProjectGuid>
1b598e33-667f-496d-bc0d-88276e8e7632
</ProjectGuid>
<RootNamespace>
Breeze.Deamon
</RootNamespace>
<BaseIntermediateOutputPath
Condition=
"'$(BaseIntermediateOutputPath)'=='' "
>
.\obj
</BaseIntermediateOutputPath>
<OutputPath
Condition=
"'$(OutputPath)'=='' "
>
.\bin\
</OutputPath>
<TargetFrameworkVersion>
v4.5.2
</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<SchemaVersion>
2.0
</SchemaVersion>
</PropertyGroup>
<Import
Project=
"$(VSToolsPath)\DotNet\Microsoft.DotNet.targets"
Condition=
"'$(VSToolsPath)' != ''"
/>
</Project>
Breeze/src/Breeze.Deamon/Program.cs
0 → 100644
View file @
157e7f0d
using
System.Threading
;
using
Microsoft.Extensions.Logging
;
using
Stratis.Bitcoin
;
using
Stratis.Bitcoin.Builder
;
using
Stratis.Bitcoin.Configuration
;
using
Stratis.Bitcoin.Logging
;
namespace
Breeze.Deamon
{
public
class
Program
{
public
static
void
Main
(
string
[]
args
)
{
// configure Full Node
Logs
.
Configure
(
new
LoggerFactory
().
AddConsole
(
LogLevel
.
Trace
,
false
));
NodeSettings
nodeSettings
=
NodeSettings
.
FromArguments
(
args
);
var
node
=
(
FullNode
)
new
FullNodeBuilder
()
.
UseNodeSettings
(
nodeSettings
)
//.UseWallet()
//.UseApi()
//.UseBlockNotification()
.
Build
();
System
.
Console
.
WriteLine
();
// == shut down thread ==
new
Thread
(()
=>
{
System
.
Console
.
WriteLine
(
"Press one key to stop"
);
System
.
Console
.
ReadLine
();
node
.
Dispose
();
})
{
IsBackground
=
true
//so the process terminates
}.
Start
();
// start Full Node - this will also start the API
node
.
Start
();
node
.
WaitDisposed
();
node
.
Dispose
();
}
}
}
Breeze/src/Breeze.Deamon/Properties/AssemblyInfo.cs
0 → 100644
View file @
157e7f0d
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Breeze.Deamon")]
[assembly: AssemblyTrademark("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("1b598e33-667f-496d-bc0d-88276e8e7632")]
Breeze/src/Breeze.Deamon/project.json
0 → 100644
View file @
157e7f0d
{
"title"
:
""
,
"version"
:
"1.0.0-*"
,
"buildOptions"
:
{
"emitEntryPoint"
:
true
//
TODO
uncomment
the
line
below
when
we
move
to
VS
2017
(https
:
//github.com/aspnet/Tooling/issues/
842
)
//
"outputName"
:
"breezed"
},
"dependencies"
:
{
"Breeze.Api"
:
"1.0.0-*"
,
"Breeze.Wallet"
:
"1.0.0-*"
,
"Microsoft.Extensions.Logging.Abstractions"
:
"1.1.1"
,
"Microsoft.Extensions.Logging.Console"
:
"1.1.1"
,
"Microsoft.NETCore.App"
:
{
"type"
:
"platform"
,
"version"
:
"1.1.0"
},
"Stratis.Bitcoin"
:
"1.0.1.2-alpha"
},
"frameworks"
:
{
"netcoreapp1.0"
:
{
"imports"
:
"dnxcore50"
}
}
}
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