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
d768e60a
Commit
d768e60a
authored
Oct 17, 2018
by
Kirill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Удалена реализация ipc через named pipes
parent
c2c21b90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
38 deletions
+14
-38
TourDataManager.sln
TourDataManager.sln
+0
-6
Debug.cs
TourDataManager/Debug.cs
+2
-4
Program.cs
TourDataManagerConsoleApplication/Program.cs
+12
-28
No files found.
TourDataManager.sln
View file @
d768e60a
...
...
@@ -4,8 +4,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TourDataManager", "TourData
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TourDataManagerConsoleApplication", "TourDataManagerConsoleApplication\TourDataManagerConsoleApplication.csproj", "{66F0D20A-DA45-45CB-8DDF-0F9900E03AE3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Clifton.Core.Pipes", "Clifton.Core.Pipes\Clifton.Core.Pipes.csproj", "{B826097C-CC24-4CAC-8D31-8A65C4B76BE9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -20,9 +18,5 @@ Global
{66F0D20A-DA45-45CB-8DDF-0F9900E03AE3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66F0D20A-DA45-45CB-8DDF-0F9900E03AE3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66F0D20A-DA45-45CB-8DDF-0F9900E03AE3}.Release|Any CPU.Build.0 = Release|Any CPU
{B826097C-CC24-4CAC-8D31-8A65C4B76BE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B826097C-CC24-4CAC-8D31-8A65C4B76BE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B826097C-CC24-4CAC-8D31-8A65C4B76BE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B826097C-CC24-4CAC-8D31-8A65C4B76BE9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
TourDataManager/Debug.cs
View file @
d768e60a
...
...
@@ -13,10 +13,8 @@ namespace TourDataManager {
Console
.
ResetColor
();
}
public
static
char
ReadKey
(){
var
ch
=
Console
.
ReadKey
().
KeyChar
;
Console
.
WriteLine
();
return
ch
;
public
static
string
ReadLine
(){
return
Console
.
ReadLine
();
}
}
}
\ No newline at end of file
TourDataManagerConsoleApplication/Program.cs
View file @
d768e60a
using
System
;
using
System.IO
;
using
System.Net
;
using
System.Text
;
using
System.Threading.Tasks
;
using
Clifton.Core.Pipes
;
using
Ninject.Activation.Strategies
;
using
TourDataManager
;
using
TourDataManager.Entities
;
...
...
@@ -18,9 +15,16 @@ namespace TourDataManagerConsoleApplication {
public
static
TourDataManager
.
TourDataManagerPlugin
TourDataManagerPlugin
;
public
static
void
Main
(
string
[]
args
){
Console
.
OutputEncoding
=
Encoding
.
UTF8
;
Console
.
InputEncoding
=
Encoding
.
UTF8
;
Console
.
WriteLine
(
"Привет"
);
var
line
=
Console
.
ReadLine
();
Console
.
WriteLine
(
line
);
//TourDataManagerPlugin = new TourDataManager.TourDataManagerPlugin(PersistentPath);
CreateServer
(
"Test3"
);
//
CreateServer("Test3");
//MainWindow();
...
...
@@ -29,30 +33,10 @@ namespace TourDataManagerConsoleApplication {
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
(){
Debug
.
Log
(
"Commands : \n0 - Auth\n1 - Show estates list\n2 - exit"
);
var
ch
=
Debug
.
Read
Key
()
;
var
ch
=
Debug
.
Read
Line
()[
0
]
;
switch
(
ch
){
case
'0'
:
...
...
@@ -78,7 +62,7 @@ namespace TourDataManagerConsoleApplication {
public
static
void
EstateWindow
(){
Debug
.
Log
(
"Commands : \n0 - Fetch tours of estate\n1 - back\n2 - exit"
);
var
ch
=
Debug
.
Read
Key
()
;
var
ch
=
Debug
.
Read
Line
()[
0
]
;
switch
(
ch
){
case
'0'
:
...
...
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