Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TourDataManager
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill
TourDataManager
Commits
c2c21b90
Commit
c2c21b90
authored
Oct 16, 2018
by
Kirill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ipc + Unity test
parent
10a40296
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
Program.cs
TourDataManagerConsoleApplication/Program.cs
+24
-3
TourDataManagerConsoleApplication.csproj
...nsoleApplication/TourDataManagerConsoleApplication.csproj
+4
-0
No files found.
TourDataManagerConsoleApplication/Program.cs
View file @
c2c21b90
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
using
System.IO
;
using
System.IO
;
using
System.Net
;
using
System.Net
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Clifton.Core.Pipes
;
using
Ninject.Activation.Strategies
;
using
Ninject.Activation.Strategies
;
using
TourDataManager
;
using
TourDataManager
;
using
TourDataManager.Entities
;
using
TourDataManager.Entities
;
...
@@ -18,9 +19,9 @@ namespace TourDataManagerConsoleApplication {
...
@@ -18,9 +19,9 @@ namespace TourDataManagerConsoleApplication {
public
static
void
Main
(
string
[]
args
){
public
static
void
Main
(
string
[]
args
){
TourDataManagerPlugin
=
new
TourDataManager
.
TourDataManagerPlugin
(
PersistentPath
);
//
TourDataManagerPlugin = new TourDataManager.TourDataManagerPlugin(PersistentPath);
CreateServer
(
"Test3"
);
MainWindow
();
//
MainWindow();
//tourDataManager.Login(defaultLogin, defaultPassword);
//tourDataManager.Login(defaultLogin, defaultPassword);
...
@@ -28,6 +29,26 @@ namespace TourDataManagerConsoleApplication {
...
@@ -28,6 +29,26 @@ namespace TourDataManagerConsoleApplication {
Console
.
Read
();
Console
.
Read
();
}
}
private
static
ServerPipe
CreateServer
(
string
serverName
)
{
ServerPipe
serverPipe
=
new
ServerPipe
(
serverName
,
p
=>
p
.
StartStringReaderAsync
());
serverPipe
.
DataReceived
+=
(
sndr
,
args
)
=>
{
Console
.
WriteLine
(
$"Server pipe /DataRecieved :
{
args
.
String
}
"
);
};
serverPipe
.
Connected
+=
(
sndr
,
args
)
=>
{
Console
.
WriteLine
(
$"Server pipe /Connected :
{
args
}
"
);
};
serverPipe
.
PipeClosed
+=
(
sndr
,
args
)
=>
{
Console
.
WriteLine
(
$"Server pipe /Closed :
{
args
}
"
);
};
return
serverPipe
;
}
public
static
void
MainWindow
(){
public
static
void
MainWindow
(){
Debug
.
Log
(
"Commands : \n0 - Auth\n1 - Show estates list\n2 - exit"
);
Debug
.
Log
(
"Commands : \n0 - Auth\n1 - Show estates list\n2 - exit"
);
...
...
TourDataManagerConsoleApplication/TourDataManagerConsoleApplication.csproj
View file @
c2c21b90
...
@@ -64,6 +64,10 @@
...
@@ -64,6 +64,10 @@
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\Clifton.Core.Pipes\Clifton.Core.Pipes.csproj"
>
<Project>
{b826097c-cc24-4cac-8d31-8a65c4b76be9}
</Project>
<Name>
Clifton.Core.Pipes
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\TourDataManager\TourDataManager.csproj"
>
<ProjectReference
Include=
"..\TourDataManager\TourDataManager.csproj"
>
<Project>
{a62d5535-a31a-466e-8255-a5e74a98666a}
</Project>
<Project>
{a62d5535-a31a-466e-8255-a5e74a98666a}
</Project>
<Name>
TourDataManager
</Name>
<Name>
TourDataManager
</Name>
...
...
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