Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.ServerEvents.Test
Project
Overview
Details
Activity
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
示例代码
Kivii.Client.ServerEvents.Test
Commits
d17a6ab0
Commit
d17a6ab0
authored
Jul 18, 2019
by
施晓雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UP
parent
ec4517e4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
11 deletions
+31
-11
FrmMain.Designer.cs
FrmMain.Designer.cs
+0
-0
FrmMain.cs
FrmMain.cs
+17
-0
Kivii.Client.ServerEvent.Test.csproj
Kivii.Client.ServerEvent.Test.csproj
+6
-4
Kivii.Client.ServerEvent.Test.sln
Kivii.Client.ServerEvent.Test.sln
+8
-2
packages.config
packages.config
+0
-5
No files found.
FrmMain.Designer.cs
View file @
d17a6ab0
This diff is collapsed.
Click to expand it.
FrmMain.cs
View file @
d17a6ab0
...
@@ -155,5 +155,22 @@ namespace Test
...
@@ -155,5 +155,22 @@ namespace Test
});
});
}
}
private
void
btnGetSubscriptions_Click
(
object
sender
,
EventArgs
e
)
{
btnGetSubscriptions
.
Enabled
=
false
;
var
task
=
_client
.
GetChannelSubscribersAsync
();
task
.
Success
(()
=>
{
btnGetSubscriptions
.
Enabled
=
true
;
foreach
(
var
item
in
task
.
Result
)
{
rtbMessage
.
AppendText
(
$"DisplayName:
{
item
.
DisplayName
}
,UserId:
{
item
.
UserId
}
,SubscriptionId:
{
item
.
SubscriptionId
}
,Channels:
{
item
.
Channels
.
Join
()}{
Environment
.
NewLine
}
"
);
}
},
true
);
task
.
Error
((
ex
)
=>
{
btnGetSubscriptions
.
Enabled
=
true
;
rtbMessage
.
AppendText
(
$"
{
DateTime
.
Now
.
ToString
(
"HH:mm:ss"
)}
:onException
{
ex
.
Message
}{
Environment
.
NewLine
}{
Environment
.
NewLine
}
"
);
},
true
);
}
}
}
}
}
Kivii.Client.ServerEvent.Test.csproj
View file @
d17a6ab0
...
@@ -32,9 +32,6 @@
...
@@ -32,9 +32,6 @@
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<Reference
Include=
"Kivii.Common.V4.5, Version=5.4.2019.7180, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
packages\Kivii.Common.5.4.2019.7180\lib\net45\Kivii.Common.V4.5.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Xml.Linq"
/>
<Reference
Include=
"System.Xml.Linq"
/>
...
@@ -68,7 +65,6 @@
...
@@ -68,7 +65,6 @@
<AutoGen>
True
</AutoGen>
<AutoGen>
True
</AutoGen>
<DependentUpon>
Resources.resx
</DependentUpon>
<DependentUpon>
Resources.resx
</DependentUpon>
</Compile>
</Compile>
<None
Include=
"packages.config"
/>
<None
Include=
"Properties\Settings.settings"
>
<None
Include=
"Properties\Settings.settings"
>
<Generator>
SettingsSingleFileGenerator
</Generator>
<Generator>
SettingsSingleFileGenerator
</Generator>
<LastGenOutput>
Settings.Designer.cs
</LastGenOutput>
<LastGenOutput>
Settings.Designer.cs
</LastGenOutput>
...
@@ -82,6 +78,12 @@
...
@@ -82,6 +78,12 @@
<ItemGroup>
<ItemGroup>
<None
Include=
"App.config"
/>
<None
Include=
"App.config"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\..\K5\Platform-V5.4\Kivii.Common\Src\Kivii.Common.V4.5.csproj"
>
<Project>
{587a47fe-0ae8-4649-9364-686e8f6c044b}
</Project>
<Name>
Kivii.Common.V4.5
</Name>
</ProjectReference>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Other similar extension points exist, see Microsoft.Common.targets.
...
...
Kivii.Client.ServerEvent.Test.sln
View file @
d17a6ab0
Microsoft Visual Studio Solution File, Format Version 12.00
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 1
5
# Visual Studio 1
4
VisualStudioVersion = 1
5.0.27703.2035
VisualStudioVersion = 1
4.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kivii.Client.ServerEvent.Test", "Kivii.Client.ServerEvent.Test.csproj", "{C0393150-DEC8-455D-BC38-21A07D207B88}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kivii.Client.ServerEvent.Test", "Kivii.Client.ServerEvent.Test.csproj", "{C0393150-DEC8-455D-BC38-21A07D207B88}"
EndProject
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kivii.Common.V4.5", "..\..\K5\Platform-V5.4\Kivii.Common\Src\Kivii.Common.V4.5.csproj", "{587A47FE-0AE8-4649-9364-686E8F6C044B}"
EndProject
Global
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Any CPU = Debug|Any CPU
...
@@ -15,6 +17,10 @@ Global
...
@@ -15,6 +17,10 @@ Global
{C0393150-DEC8-455D-BC38-21A07D207B88}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C0393150-DEC8-455D-BC38-21A07D207B88}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C0393150-DEC8-455D-BC38-21A07D207B88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C0393150-DEC8-455D-BC38-21A07D207B88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C0393150-DEC8-455D-BC38-21A07D207B88}.Release|Any CPU.Build.0 = Release|Any CPU
{C0393150-DEC8-455D-BC38-21A07D207B88}.Release|Any CPU.Build.0 = Release|Any CPU
{587A47FE-0AE8-4649-9364-686E8F6C044B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{587A47FE-0AE8-4649-9364-686E8F6C044B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{587A47FE-0AE8-4649-9364-686E8F6C044B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{587A47FE-0AE8-4649-9364-686E8F6C044B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
HideSolutionNode = FALSE
...
...
packages.config
deleted
100644 → 0
View file @
ec4517e4
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"Kivii.Common"
version
=
"5.4.2019.7180"
targetFramework
=
"net45"
/>
</
packages
>
\ No newline at end of file
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