Commit d17a6ab0 by 施晓雨

UP

parent ec4517e4
...@@ -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);
}
} }
} }
...@@ -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.
......
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15 # Visual Studio 14
VisualStudioVersion = 15.0.27703.2035 VisualStudioVersion = 14.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
......
<?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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment