SampleSmart
1.0.0.0
SampleSmart 사용 방법을 보여 주는 예제 프로젝트입니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
InMemoryCommunicationTab.xaml.Event.cs
이 파일의 문서화 페이지로 가기
1
namespace
SampleSmart.Pages.PageSub.CommunicationTabs
;
2
11
public
sealed
class
InMemoryCommunicationTabEvent
12
{
21
private
readonly
CommunicationSampleRuntime
_runtime
;
22
47
public
InMemoryCommunicationTabEvent
(
CommunicationSampleRuntime
runtime)
48
{
49
_runtime
= runtime ??
throw
new
ArgumentNullException(nameof(runtime));
50
51
InMemorySendText
=
"Hello from SampleSmart InMemory"
;
52
InMemoryReceiveText
=
"Manual InMemory receive test"
;
53
}
54
63
public
string
InMemorySendText
{
get
;
set
; }
64
73
public
string
InMemoryReceiveText
{
get
;
set
; }
74
83
public
void
AddChannel
()
84
{
85
_runtime
.AddInMemoryChannel();
86
}
87
96
public
void
Connect
()
97
{
98
_ =
_runtime
.ConnectInMemoryAsync();
99
}
100
109
public
void
Disconnect
()
110
{
111
_ =
_runtime
.DisconnectInMemoryAsync();
112
}
113
122
public
void
SendTest
()
123
{
124
_ =
_runtime
.SendInMemoryAsync(
InMemorySendText
);
125
}
126
135
public
void
ReceiveTest
()
136
{
137
_runtime
.ReceiveInMemory(
InMemoryReceiveText
);
138
}
139
}
SampleSmart.Pages.PageSub.CommunicationTabs
Definition
CommunicationSampleRuntime.cs:21
SampleSmart.Pages.PageSub.CommunicationTabs.CommunicationSampleRuntime
Definition
CommunicationSampleRuntime.cs:40
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent.Disconnect
void Disconnect()
Definition
InMemoryCommunicationTab.xaml.Event.cs:109
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent.ReceiveTest
void ReceiveTest()
Definition
InMemoryCommunicationTab.xaml.Event.cs:135
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent.InMemoryReceiveText
string InMemoryReceiveText
Definition
InMemoryCommunicationTab.xaml.Event.cs:73
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent.SendTest
void SendTest()
Definition
InMemoryCommunicationTab.xaml.Event.cs:122
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent.InMemorySendText
string InMemorySendText
Definition
InMemoryCommunicationTab.xaml.Event.cs:63
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent.AddChannel
void AddChannel()
Definition
InMemoryCommunicationTab.xaml.Event.cs:83
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent.InMemoryCommunicationTabEvent
InMemoryCommunicationTabEvent(CommunicationSampleRuntime runtime)
Definition
InMemoryCommunicationTab.xaml.Event.cs:47
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent._runtime
readonly CommunicationSampleRuntime _runtime
Definition
InMemoryCommunicationTab.xaml.Event.cs:21
SampleSmart.Pages.PageSub.CommunicationTabs.InMemoryCommunicationTabEvent.Connect
void Connect()
Definition
InMemoryCommunicationTab.xaml.Event.cs:96
Pages
PageSub
CommunicationTabs
InMemoryCommunicationTab.xaml.Event.cs
다음에 의해 생성됨 :
1.17.0