quite a bit, too much to summarize here
This commit is contained in:
parent
24845b6b52
commit
5f22d25559
336 changed files with 171740 additions and 351 deletions
4
.editorconfig
Normal file
4
.editorconfig
Normal file
|
@ -0,0 +1,4 @@
|
|||
[*.cs]
|
||||
|
||||
# CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
|
||||
dotnet_diagnostic.CS8632.severity = suggestion
|
BIN
.vs/WindowsFormsApplication2/v16/.suo
Normal file
BIN
.vs/WindowsFormsApplication2/v16/.suo
Normal file
Binary file not shown.
|
@ -1,8 +1,15 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.35931.194
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JellyfinRPCGUI", "WindowsFormsApplication2\JellyfinRPCGUI.csproj", "{F07CE1DA-EA8C-44A4-86A4-94996FDBE980}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{18AE48CC-BDAD-481E-A86F-A9CE5FE5FF80}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.editorconfig = .editorconfig
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
|
@ -17,4 +24,7 @@ Global
|
|||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {E3F71448-EE31-48CD-8724-5D19832E014B}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
Binary file not shown.
2
WindowsFormsApplication2/AboutBox1.Designer.cs
generated
2
WindowsFormsApplication2/AboutBox1.Designer.cs
generated
|
@ -1,4 +1,4 @@
|
|||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
partial class AboutBox1
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Linq;
|
|||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
partial class AboutBox1 : Form
|
||||
{
|
||||
|
|
377
WindowsFormsApplication2/ConfigForm.Designer.cs
generated
377
WindowsFormsApplication2/ConfigForm.Designer.cs
generated
|
@ -1,4 +1,4 @@
|
|||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
partial class ConfigForm
|
||||
{
|
||||
|
@ -28,35 +28,51 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.tabPage3 = new System.Windows.Forms.TabPage();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.maskedTextBox2 = new System.Windows.Forms.MaskedTextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.textBox6 = new System.Windows.Forms.TextBox();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.textBox6 = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.maskedTextBox2 = new System.Windows.Forms.MaskedTextBox();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.tabPage3.SuspendLayout();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.label1);
|
||||
this.tabPage1.Controls.Add(this.button3);
|
||||
this.tabPage1.Controls.Add(this.textBox1);
|
||||
this.tabPage1.Controls.Add(this.textBox2);
|
||||
this.tabPage1.Controls.Add(this.label2);
|
||||
this.tabPage1.Controls.Add(this.maskedTextBox1);
|
||||
this.tabPage1.Controls.Add(this.label3);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(276, 152);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "Manual Setup";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
|
@ -67,6 +83,17 @@
|
|||
this.label1.Text = "Server URL";
|
||||
this.label1.Click += new System.EventHandler(this.label1_Click);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.button3.Location = new System.Drawing.Point(101, 126);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 8;
|
||||
this.button3.Text = "Submit";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.button3_Click);
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(9, 19);
|
||||
|
@ -74,6 +101,14 @@
|
|||
this.textBox1.Size = new System.Drawing.Size(261, 20);
|
||||
this.textBox1.TabIndex = 1;
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(9, 57);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(261, 20);
|
||||
this.textBox2.TabIndex = 3;
|
||||
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
|
@ -84,13 +119,14 @@
|
|||
this.label2.Text = "User ID";
|
||||
this.label2.Click += new System.EventHandler(this.label2_Click);
|
||||
//
|
||||
// textBox2
|
||||
// maskedTextBox1
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(9, 57);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(261, 20);
|
||||
this.textBox2.TabIndex = 3;
|
||||
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
|
||||
this.maskedTextBox1.HidePromptOnLeave = true;
|
||||
this.maskedTextBox1.Location = new System.Drawing.Point(9, 96);
|
||||
this.maskedTextBox1.Name = "maskedTextBox1";
|
||||
this.maskedTextBox1.PasswordChar = '●';
|
||||
this.maskedTextBox1.Size = new System.Drawing.Size(261, 20);
|
||||
this.maskedTextBox1.TabIndex = 5;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
|
@ -102,14 +138,82 @@
|
|||
this.label3.Text = "API Key";
|
||||
this.label3.Click += new System.EventHandler(this.label3_Click);
|
||||
//
|
||||
// maskedTextBox1
|
||||
// tabPage3
|
||||
//
|
||||
this.maskedTextBox1.HidePromptOnLeave = true;
|
||||
this.maskedTextBox1.Location = new System.Drawing.Point(9, 96);
|
||||
this.maskedTextBox1.Name = "maskedTextBox1";
|
||||
this.maskedTextBox1.PasswordChar = '●';
|
||||
this.maskedTextBox1.Size = new System.Drawing.Size(261, 20);
|
||||
this.maskedTextBox1.TabIndex = 5;
|
||||
this.tabPage3.Controls.Add(this.button5);
|
||||
this.tabPage3.Controls.Add(this.maskedTextBox2);
|
||||
this.tabPage3.Controls.Add(this.label8);
|
||||
this.tabPage3.Controls.Add(this.textBox6);
|
||||
this.tabPage3.Controls.Add(this.textBox5);
|
||||
this.tabPage3.Controls.Add(this.label7);
|
||||
this.tabPage3.Controls.Add(this.label6);
|
||||
this.tabPage3.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage3.Name = "tabPage3";
|
||||
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage3.Size = new System.Drawing.Size(276, 152);
|
||||
this.tabPage3.TabIndex = 2;
|
||||
this.tabPage3.Text = "Login";
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Location = new System.Drawing.Point(103, 126);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(75, 23);
|
||||
this.button5.TabIndex = 6;
|
||||
this.button5.Text = "Submit";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
this.button5.Click += new System.EventHandler(this.button5_Click);
|
||||
//
|
||||
// maskedTextBox2
|
||||
//
|
||||
this.maskedTextBox2.Location = new System.Drawing.Point(9, 104);
|
||||
this.maskedTextBox2.Name = "maskedTextBox2";
|
||||
this.maskedTextBox2.PasswordChar = '●';
|
||||
this.maskedTextBox2.Size = new System.Drawing.Size(260, 20);
|
||||
this.maskedTextBox2.TabIndex = 5;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(8, 88);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(53, 13);
|
||||
this.label8.TabIndex = 4;
|
||||
this.label8.Text = "Password";
|
||||
//
|
||||
// textBox6
|
||||
//
|
||||
this.textBox6.Location = new System.Drawing.Point(9, 62);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.Size = new System.Drawing.Size(260, 20);
|
||||
this.textBox6.TabIndex = 3;
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.Location = new System.Drawing.Point(9, 20);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(260, 20);
|
||||
this.textBox5.TabIndex = 1;
|
||||
this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(8, 46);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(55, 13);
|
||||
this.label7.TabIndex = 2;
|
||||
this.label7.Text = "Username";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(8, 3);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(63, 13);
|
||||
this.label6.TabIndex = 0;
|
||||
this.label6.Text = "Server URL";
|
||||
this.label6.Click += new System.EventHandler(this.label6_Click);
|
||||
//
|
||||
// tabControl1
|
||||
//
|
||||
|
@ -122,29 +226,13 @@
|
|||
this.tabControl1.Size = new System.Drawing.Size(284, 178);
|
||||
this.tabControl1.TabIndex = 9;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.label1);
|
||||
this.tabPage1.Controls.Add(this.button3);
|
||||
this.tabPage1.Controls.Add(this.textBox1);
|
||||
this.tabPage1.Controls.Add(this.label2);
|
||||
this.tabPage1.Controls.Add(this.textBox2);
|
||||
this.tabPage1.Controls.Add(this.maskedTextBox1);
|
||||
this.tabPage1.Controls.Add(this.label3);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(276, 152);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "Manual Setup";
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.label9);
|
||||
this.tabPage2.Controls.Add(this.button4);
|
||||
this.tabPage2.Controls.Add(this.textBox4);
|
||||
this.tabPage2.Controls.Add(this.label5);
|
||||
this.tabPage2.Controls.Add(this.label4);
|
||||
this.tabPage2.Controls.Add(this.textBox3);
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
|
@ -153,66 +241,18 @@
|
|||
this.tabPage2.Text = "Quick Connect";
|
||||
this.tabPage2.Click += new System.EventHandler(this.tabPage2_Click);
|
||||
//
|
||||
// tabPage3
|
||||
// label9
|
||||
//
|
||||
this.tabPage3.Controls.Add(this.button5);
|
||||
this.tabPage3.Controls.Add(this.maskedTextBox2);
|
||||
this.tabPage3.Controls.Add(this.label8);
|
||||
this.tabPage3.Controls.Add(this.textBox6);
|
||||
this.tabPage3.Controls.Add(this.label7);
|
||||
this.tabPage3.Controls.Add(this.textBox5);
|
||||
this.tabPage3.Controls.Add(this.label6);
|
||||
this.tabPage3.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage3.Name = "tabPage3";
|
||||
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage3.Size = new System.Drawing.Size(276, 152);
|
||||
this.tabPage3.TabIndex = 2;
|
||||
this.tabPage3.Text = "Login";
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(7, 77);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(260, 20);
|
||||
this.textBox3.TabIndex = 0;
|
||||
this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(71, 55);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(134, 13);
|
||||
this.label4.TabIndex = 1;
|
||||
this.label4.Text = "Enter Quick Connect Code";
|
||||
this.label4.Click += new System.EventHandler(this.label4_Click_1);
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(107, 7);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(63, 13);
|
||||
this.label5.TabIndex = 2;
|
||||
this.label5.Text = "Server URL";
|
||||
this.label5.Click += new System.EventHandler(this.label5_Click);
|
||||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Location = new System.Drawing.Point(7, 24);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(260, 20);
|
||||
this.textBox4.TabIndex = 3;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(6, 3);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(63, 13);
|
||||
this.label6.TabIndex = 0;
|
||||
this.label6.Text = "Server URL";
|
||||
this.label6.Click += new System.EventHandler(this.label6_Click);
|
||||
this.label9.AutoEllipsis = true;
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label9.Location = new System.Drawing.Point(7, 74);
|
||||
this.label9.MaximumSize = new System.Drawing.Size(260, 0);
|
||||
this.label9.MinimumSize = new System.Drawing.Size(260, 0);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(260, 13);
|
||||
this.label9.TabIndex = 5;
|
||||
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// button4
|
||||
//
|
||||
|
@ -224,67 +264,32 @@
|
|||
this.button4.UseVisualStyleBackColor = true;
|
||||
this.button4.Click += new System.EventHandler(this.button4_Click);
|
||||
//
|
||||
// textBox5
|
||||
// textBox4
|
||||
//
|
||||
this.textBox5.Location = new System.Drawing.Point(7, 20);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(260, 20);
|
||||
this.textBox5.TabIndex = 1;
|
||||
this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
|
||||
this.textBox4.Location = new System.Drawing.Point(8, 24);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(260, 20);
|
||||
this.textBox4.TabIndex = 3;
|
||||
//
|
||||
// label7
|
||||
// label5
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(6, 46);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(55, 13);
|
||||
this.label7.TabIndex = 2;
|
||||
this.label7.Text = "Username";
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(107, 7);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(63, 13);
|
||||
this.label5.TabIndex = 2;
|
||||
this.label5.Text = "Server URL";
|
||||
this.label5.Click += new System.EventHandler(this.label5_Click);
|
||||
//
|
||||
// textBox6
|
||||
// label4
|
||||
//
|
||||
this.textBox6.Location = new System.Drawing.Point(7, 62);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.Size = new System.Drawing.Size(260, 20);
|
||||
this.textBox6.TabIndex = 3;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(6, 88);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(53, 13);
|
||||
this.label8.TabIndex = 4;
|
||||
this.label8.Text = "Password";
|
||||
//
|
||||
// maskedTextBox2
|
||||
//
|
||||
this.maskedTextBox2.Location = new System.Drawing.Point(7, 104);
|
||||
this.maskedTextBox2.Name = "maskedTextBox2";
|
||||
this.maskedTextBox2.PasswordChar = '●';
|
||||
this.maskedTextBox2.Size = new System.Drawing.Size(260, 20);
|
||||
this.maskedTextBox2.TabIndex = 5;
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Location = new System.Drawing.Point(101, 126);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(75, 23);
|
||||
this.button5.TabIndex = 6;
|
||||
this.button5.Text = "Submit";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
this.button5.Click += new System.EventHandler(this.button5_Click);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.button3.Location = new System.Drawing.Point(101, 126);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 8;
|
||||
this.button3.Text = "Submit";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.button3_Click);
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(85, 47);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(106, 13);
|
||||
this.label4.TabIndex = 1;
|
||||
this.label4.Text = "Quick Connect Code";
|
||||
this.label4.Click += new System.EventHandler(this.label4_Click_1);
|
||||
//
|
||||
// ConfigForm
|
||||
//
|
||||
|
@ -300,41 +305,41 @@
|
|||
this.Text = "Server Config";
|
||||
this.TopMost = true;
|
||||
this.Load += new System.EventHandler(this.ConfigForm_Load);
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage1.PerformLayout();
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.tabPage2.PerformLayout();
|
||||
this.tabPage3.ResumeLayout(false);
|
||||
this.tabPage3.PerformLayout();
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.tabPage2.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.MaskedTextBox maskedTextBox1;
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.MaskedTextBox maskedTextBox1;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TabPage tabPage3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.MaskedTextBox maskedTextBox2;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.TextBox textBox6;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label4;
|
||||
public System.Windows.Forms.Label label9;
|
||||
}
|
||||
}
|
|
@ -7,8 +7,9 @@ using System.Drawing;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
public partial class ConfigForm : Form
|
||||
{
|
||||
|
@ -46,13 +47,16 @@ namespace WindowsFormsApplication2
|
|||
this.Close();
|
||||
}
|
||||
|
||||
private void ConfigForm_Load(object sender, EventArgs e)
|
||||
static string quickConnectLabel;
|
||||
private async void ConfigForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Text = ConfigManager.GetEntry("ServerURL");
|
||||
textBox2.Text = ConfigManager.GetEntry("UserID");
|
||||
maskedTextBox1.Text = ConfigManager.GetEntry("APIKey");
|
||||
textBox4.Text = ConfigManager.GetEntry("ServerURL");
|
||||
textBox5.Text = ConfigManager.GetEntry("ServerURL");
|
||||
quickConnectLabel = await JellyfinAPI.SendQuickConnectRequest();
|
||||
label9.Text = quickConnectLabel;
|
||||
}
|
||||
|
||||
private void label4_Click(object sender, EventArgs e)
|
||||
|
@ -77,7 +81,7 @@ namespace WindowsFormsApplication2
|
|||
|
||||
private void button4_Click(object sender, EventArgs e)
|
||||
{
|
||||
ConfigManager.SetEntry("ServerURL", textBox4.Text);
|
||||
ConfigManager.SetEntry("ServerURL", textBox4.Text);
|
||||
}
|
||||
|
||||
private void label6_Click(object sender, EventArgs e)
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
internal class ConfigManager
|
||||
{
|
||||
|
|
|
@ -2,16 +2,17 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
class ConsoleManager
|
||||
{
|
||||
static Form1 MainForm;
|
||||
public static string lineToWrite;
|
||||
public static void WriteToConsole(string Line)
|
||||
{
|
||||
MainForm = new Form1();
|
||||
MainForm.listBox1.Items.Add(Line);
|
||||
lineToWrite = Line;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
12
WindowsFormsApplication2/Discord/ActivityManager.cs
Normal file
12
WindowsFormsApplication2/Discord/ActivityManager.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial class ActivityManager
|
||||
{
|
||||
public void RegisterCommand()
|
||||
{
|
||||
RegisterCommand(null);
|
||||
}
|
||||
}
|
||||
}
|
9
WindowsFormsApplication2/Discord/Constants.cs
Normal file
9
WindowsFormsApplication2/Discord/Constants.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
static class Constants
|
||||
{
|
||||
public const string DllName = "discord_game_sdk";
|
||||
}
|
||||
}
|
4421
WindowsFormsApplication2/Discord/Core.cs
Normal file
4421
WindowsFormsApplication2/Discord/Core.cs
Normal file
File diff suppressed because it is too large
Load diff
53
WindowsFormsApplication2/Discord/ImageManager.cs
Normal file
53
WindowsFormsApplication2/Discord/ImageManager.cs
Normal file
|
@ -0,0 +1,53 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
#if UNITY_EDITOR || UNITY_STANDALONE
|
||||
using UnityEngine;
|
||||
#endif
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial struct ImageHandle
|
||||
{
|
||||
static public ImageHandle User(Int64 id)
|
||||
{
|
||||
return User(id, 128);
|
||||
}
|
||||
|
||||
static public ImageHandle User(Int64 id, UInt32 size)
|
||||
{
|
||||
return new ImageHandle
|
||||
{
|
||||
Type = ImageType.User,
|
||||
Id = id,
|
||||
Size = size,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public partial class ImageManager
|
||||
{
|
||||
public void Fetch(ImageHandle handle, FetchHandler callback)
|
||||
{
|
||||
Fetch(handle, false, callback);
|
||||
}
|
||||
|
||||
public byte[] GetData(ImageHandle handle)
|
||||
{
|
||||
var dimensions = GetDimensions(handle);
|
||||
var data = new byte[dimensions.Width * dimensions.Height * 4];
|
||||
GetData(handle, data);
|
||||
return data;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR || UNITY_STANDALONE
|
||||
public Texture2D GetTexture(ImageHandle handle)
|
||||
{
|
||||
var dimensions = GetDimensions(handle);
|
||||
var texture = new Texture2D((int)dimensions.Width, (int)dimensions.Height, TextureFormat.RGBA32, false, true);
|
||||
texture.LoadRawTextureData(GetData(handle));
|
||||
texture.Apply();
|
||||
return texture;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
26
WindowsFormsApplication2/Discord/LobbyManager.cs
Normal file
26
WindowsFormsApplication2/Discord/LobbyManager.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial class LobbyManager
|
||||
{
|
||||
public IEnumerable<User> GetMemberUsers(Int64 lobbyID)
|
||||
{
|
||||
var memberCount = MemberCount(lobbyID);
|
||||
var members = new List<User>();
|
||||
for (var i = 0; i < memberCount; i++)
|
||||
{
|
||||
members.Add(GetMemberUser(lobbyID, GetMemberUserId(lobbyID, i)));
|
||||
}
|
||||
return members;
|
||||
}
|
||||
|
||||
public void SendLobbyMessage(Int64 lobbyID, string data, SendLobbyMessageHandler handler)
|
||||
{
|
||||
SendLobbyMessage(lobbyID, Encoding.UTF8.GetBytes(data), handler);
|
||||
}
|
||||
}
|
||||
}
|
20
WindowsFormsApplication2/Discord/StorageManager.cs
Normal file
20
WindowsFormsApplication2/Discord/StorageManager.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial class StorageManager
|
||||
{
|
||||
public IEnumerable<FileStat> Files()
|
||||
{
|
||||
var fileCount = Count();
|
||||
var files = new List<FileStat>();
|
||||
for (var i = 0; i < fileCount; i++)
|
||||
{
|
||||
files.Add(StatAt(i));
|
||||
}
|
||||
return files;
|
||||
}
|
||||
}
|
||||
}
|
32
WindowsFormsApplication2/Discord/StoreManager.cs
Normal file
32
WindowsFormsApplication2/Discord/StoreManager.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial class StoreManager
|
||||
{
|
||||
public IEnumerable<Entitlement> GetEntitlements()
|
||||
{
|
||||
var count = CountEntitlements();
|
||||
var entitlements = new List<Entitlement>();
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
entitlements.Add(GetEntitlementAt(i));
|
||||
}
|
||||
return entitlements;
|
||||
}
|
||||
|
||||
public IEnumerable<Sku> GetSkus()
|
||||
{
|
||||
var count = CountSkus();
|
||||
var skus = new List<Sku>();
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
skus.Add(GetSkuAt(i));
|
||||
}
|
||||
return skus;
|
||||
}
|
||||
}
|
||||
}
|
44
WindowsFormsApplication2/DiscordRPC.cs
Normal file
44
WindowsFormsApplication2/DiscordRPC.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Discord;
|
||||
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
class DiscordRPC
|
||||
{
|
||||
public static Int64 discordAppID = Int64.Parse(ConfigManager.GetEntry("DiscordClientID"));
|
||||
|
||||
|
||||
static void UpdateActivity(Discord.Discord discord)
|
||||
{
|
||||
var activityManager = discord.GetActivityManager();
|
||||
string[] RPCVari = JellyfinAPI.Jellyfin().Result.Split('|');
|
||||
if (JellyfinAPI.Jellyfin().Result != null)
|
||||
{
|
||||
var activity = new Discord.Activity
|
||||
{
|
||||
Details = RPCVari.GetValue(int.Parse("2")).ToString(),
|
||||
State = RPCVari.GetValue(int.Parse("3")).ToString(),
|
||||
Timestamps =
|
||||
{
|
||||
Start = Utils.DateTimeInUnix(DateTime.Now) - Utils.DateTimeInUnix(DateTime.Parse(RPCVari.GetValue(int.Parse("5")).ToString())),
|
||||
End = Utils.DateTimeInUnix(DateTime.Now) + (Utils.DateTimeInUnix(DateTime.Parse(RPCVari.GetValue(int.Parse("4")).ToString())) - Utils.DateTimeInUnix(DateTime.Parse(RPCVari.GetValue(int.Parse("5")).ToString())))
|
||||
},
|
||||
Assets =
|
||||
{
|
||||
LargeImage = RPCVari.GetValue(int.Parse("0")).ToString(),
|
||||
LargeText = RPCVari.GetValue(int.Parse("1")).ToString()
|
||||
}
|
||||
};
|
||||
StatusManager.WriteStatusLine($"Details: {RPCVari.GetValue(int.Parse("2"))}, State:{RPCVari.GetValue(int.Parse("3"))}");
|
||||
activityManager.UpdateActivity(activity, result => ConsoleManager.WriteToConsole($"Updating Presence. Details: {activity.Details}, State: {activity.State}, Result: {result}"));
|
||||
}
|
||||
else
|
||||
{
|
||||
activityManager.ClearActivity(result => ConsoleManager.WriteToConsole($"Update Activity {result}"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,9 +3,9 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using WindowsFormsApplication2.Properties;
|
||||
using JellyfinRPC.Properties;
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
class FileChecker
|
||||
{
|
||||
|
|
165
WindowsFormsApplication2/Form1.Designer.cs
generated
165
WindowsFormsApplication2/Form1.Designer.cs
generated
|
@ -1,4 +1,4 @@
|
|||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
|
@ -29,6 +29,7 @@
|
|||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.quitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
|
@ -36,15 +37,23 @@
|
|||
this.automaticallyStartToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.minimiseToTrayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.closeToTrayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.openToTrayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.serverConfigToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.rPCSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.debugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.testConsoleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.writeLabelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.listBox1 = new System.Windows.Forms.ListBox();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.showToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.quitToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// menuStrip1
|
||||
|
@ -52,7 +61,8 @@
|
|||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.fileToolStripMenuItem,
|
||||
this.settingsToolStripMenuItem,
|
||||
this.helpToolStripMenuItem});
|
||||
this.helpToolStripMenuItem,
|
||||
this.debugToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(503, 24);
|
||||
|
@ -83,7 +93,9 @@
|
|||
this.automaticallyStartToolStripMenuItem,
|
||||
this.minimiseToTrayToolStripMenuItem,
|
||||
this.closeToTrayToolStripMenuItem,
|
||||
this.serverConfigToolStripMenuItem});
|
||||
this.openToTrayToolStripMenuItem,
|
||||
this.serverConfigToolStripMenuItem,
|
||||
this.rPCSettingsToolStripMenuItem});
|
||||
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
|
||||
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
|
||||
this.settingsToolStripMenuItem.Text = "Settings";
|
||||
|
@ -108,6 +120,15 @@
|
|||
this.closeToTrayToolStripMenuItem.Name = "closeToTrayToolStripMenuItem";
|
||||
this.closeToTrayToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
|
||||
this.closeToTrayToolStripMenuItem.Text = "Close to Tray";
|
||||
this.closeToTrayToolStripMenuItem.Click += new System.EventHandler(this.closeToTrayToolStripMenuItem_Click);
|
||||
//
|
||||
// openToTrayToolStripMenuItem
|
||||
//
|
||||
this.openToTrayToolStripMenuItem.CheckOnClick = true;
|
||||
this.openToTrayToolStripMenuItem.Name = "openToTrayToolStripMenuItem";
|
||||
this.openToTrayToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
|
||||
this.openToTrayToolStripMenuItem.Text = "Open to Tray";
|
||||
this.openToTrayToolStripMenuItem.Click += new System.EventHandler(this.openToTrayToolStripMenuItem_Click);
|
||||
//
|
||||
// serverConfigToolStripMenuItem
|
||||
//
|
||||
|
@ -116,6 +137,13 @@
|
|||
this.serverConfigToolStripMenuItem.Text = "Server Config";
|
||||
this.serverConfigToolStripMenuItem.Click += new System.EventHandler(this.serverConfigToolStripMenuItem_Click);
|
||||
//
|
||||
// rPCSettingsToolStripMenuItem
|
||||
//
|
||||
this.rPCSettingsToolStripMenuItem.Name = "rPCSettingsToolStripMenuItem";
|
||||
this.rPCSettingsToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
|
||||
this.rPCSettingsToolStripMenuItem.Text = "RPC Config";
|
||||
this.rPCSettingsToolStripMenuItem.Click += new System.EventHandler(this.rPCSettingsToolStripMenuItem_Click);
|
||||
//
|
||||
// helpToolStripMenuItem
|
||||
//
|
||||
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
|
@ -127,52 +155,96 @@
|
|||
// aboutToolStripMenuItem
|
||||
//
|
||||
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
||||
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(107, 22);
|
||||
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.aboutToolStripMenuItem.Text = "About";
|
||||
this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
|
||||
//
|
||||
// debugToolStripMenuItem
|
||||
//
|
||||
this.debugToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.testConsoleToolStripMenuItem,
|
||||
this.writeLabelToolStripMenuItem});
|
||||
this.debugToolStripMenuItem.Name = "debugToolStripMenuItem";
|
||||
this.debugToolStripMenuItem.Size = new System.Drawing.Size(54, 20);
|
||||
this.debugToolStripMenuItem.Text = "Debug";
|
||||
//
|
||||
// testConsoleToolStripMenuItem
|
||||
//
|
||||
this.testConsoleToolStripMenuItem.Name = "testConsoleToolStripMenuItem";
|
||||
this.testConsoleToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
|
||||
this.testConsoleToolStripMenuItem.Text = "Test Console";
|
||||
this.testConsoleToolStripMenuItem.Click += new System.EventHandler(this.testConsoleToolStripMenuItem_Click);
|
||||
//
|
||||
// writeLabelToolStripMenuItem
|
||||
//
|
||||
this.writeLabelToolStripMenuItem.Name = "writeLabelToolStripMenuItem";
|
||||
this.writeLabelToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
|
||||
this.writeLabelToolStripMenuItem.Text = "Write Status";
|
||||
this.writeLabelToolStripMenuItem.Click += new System.EventHandler(this.writeLabelToolStripMenuItem_Click);
|
||||
//
|
||||
// listBox1
|
||||
//
|
||||
this.listBox1.FormattingEnabled = true;
|
||||
this.listBox1.Location = new System.Drawing.Point(13, 28);
|
||||
this.listBox1.Location = new System.Drawing.Point(14, 27);
|
||||
this.listBox1.Name = "listBox1";
|
||||
this.listBox1.Size = new System.Drawing.Size(478, 199);
|
||||
this.listBox1.Size = new System.Drawing.Size(475, 199);
|
||||
this.listBox1.TabIndex = 1;
|
||||
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
|
||||
//
|
||||
// button1
|
||||
// notifyIcon1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(415, 229);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "Start";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.notifyIcon1.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
|
||||
this.notifyIcon1.BalloonTipText = "Jellyfin Rich Presence has been moved to the tray icon.";
|
||||
this.notifyIcon1.BalloonTipTitle = "Jellyfin Rich Presence is still running!";
|
||||
this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
|
||||
this.notifyIcon1.Text = "Jellyfin Rich Presence";
|
||||
this.notifyIcon1.Visible = true;
|
||||
this.notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);
|
||||
this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.showToolStripMenuItem,
|
||||
this.quitToolStripMenuItem1});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(104, 48);
|
||||
//
|
||||
// showToolStripMenuItem
|
||||
//
|
||||
this.showToolStripMenuItem.Name = "showToolStripMenuItem";
|
||||
this.showToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
|
||||
this.showToolStripMenuItem.Text = "Show";
|
||||
this.showToolStripMenuItem.Click += new System.EventHandler(this.showToolStripMenuItem_Click);
|
||||
//
|
||||
// quitToolStripMenuItem1
|
||||
//
|
||||
this.quitToolStripMenuItem1.Name = "quitToolStripMenuItem1";
|
||||
this.quitToolStripMenuItem1.Size = new System.Drawing.Size(103, 22);
|
||||
this.quitToolStripMenuItem1.Text = "Quit";
|
||||
this.quitToolStripMenuItem1.Click += new System.EventHandler(this.quitToolStripMenuItem1_Click);
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(397, 238);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(94, 17);
|
||||
this.checkBox1.TabIndex = 4;
|
||||
this.checkBox1.Text = "Show Console";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(13, 234);
|
||||
this.label1.Location = new System.Drawing.Point(12, 242);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(35, 13);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "label1";
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Enabled = false;
|
||||
this.button2.Location = new System.Drawing.Point(334, 229);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 4;
|
||||
this.button2.Text = "Stop";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// notifyIcon1
|
||||
//
|
||||
this.notifyIcon1.Text = "notifyIcon1";
|
||||
this.notifyIcon1.Visible = true;
|
||||
this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
@ -180,19 +252,22 @@
|
|||
this.AutoSize = true;
|
||||
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.ClientSize = new System.Drawing.Size(503, 264);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.listBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.checkBox1);
|
||||
this.Controls.Add(this.menuStrip1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MainMenuStrip = this.menuStrip1;
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "Form1";
|
||||
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||
this.Text = "Jellyfin Rich Presence";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
this.Resize += new System.EventHandler(this.Form1_Resize);
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
@ -209,13 +284,19 @@
|
|||
private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem serverConfigToolStripMenuItem;
|
||||
private System.Windows.Forms.ListBox listBox1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.ToolStripMenuItem automaticallyStartToolStripMenuItem;
|
||||
private System.Windows.Forms.NotifyIcon notifyIcon1;
|
||||
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem showToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem quitToolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolStripMenuItem openToTrayToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem rPCSettingsToolStripMenuItem;
|
||||
public System.Windows.Forms.ListBox listBox1;
|
||||
private System.Windows.Forms.ToolStripMenuItem debugToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem testConsoleToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem writeLabelToolStripMenuItem;
|
||||
public System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.IO;
|
|||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
|
@ -35,53 +35,156 @@ namespace WindowsFormsApplication2
|
|||
form.Show();
|
||||
}
|
||||
|
||||
private static System.Timers.Timer consoleTimer;
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
minimiseToTrayToolStripMenuItem.Checked = ConfigManager.GetEntry("MinimiseToTray", "False") == "False";
|
||||
closeToTrayToolStripMenuItem.Checked = ConfigManager.GetEntry("CloseToTray", "False") == "False";
|
||||
minimiseToTrayToolStripMenuItem.Checked = bool.Parse(ConfigManager.GetEntry("MinimiseToTray", "False"));
|
||||
closeToTrayToolStripMenuItem.Checked = bool.Parse(ConfigManager.GetEntry("CloseToTray", "False"));
|
||||
ConfigManager.GetEntry("ApiKey", "");
|
||||
ConfigManager.GetEntry("ServerURL", "");
|
||||
ConfigManager.GetEntry("UserID", "");
|
||||
ConfigManager.GetEntry("JellyfinToken", "");
|
||||
|
||||
if (ConfigManager.GetEntry("JellyfinToken") == "" && ConfigManager.GetEntry("ApiKey") == "")
|
||||
{
|
||||
ConfigForm form = new ConfigForm();
|
||||
form.Show();
|
||||
}
|
||||
openToTrayToolStripMenuItem.Checked = bool.Parse(ConfigManager.GetEntry("OpenToTray", "False"));
|
||||
ConfigManager.GetEntry("JellyfinToken", "");
|
||||
ConfigManager.GetEntry("DeviceID", $"{JellyfinAPI.DeviceID()}");
|
||||
SetTimer();
|
||||
JellyfinAPI.Jellyfin();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||
//if (ConfigManager.GetEntry("JellyfinToken") == "" && ConfigManager.GetEntry("ApiKey") == "")
|
||||
//{
|
||||
// ConfigForm form = new ConfigForm();
|
||||
// form.Show();
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
Form1 form = new Form1();
|
||||
form.Show();
|
||||
}
|
||||
|
||||
public void SetTimer()
|
||||
{
|
||||
consoleTimer = new System.Timers.Timer(5);
|
||||
consoleTimer.Elapsed += ConsoleTimer_Elapsed;
|
||||
consoleTimer.AutoReset = true;
|
||||
consoleTimer.Enabled = true;
|
||||
|
||||
}
|
||||
|
||||
private void ConsoleTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!listBox1.Items.Contains((object)ConsoleManager.lineToWrite))
|
||||
{
|
||||
listBox1.BeginInvoke((MethodInvoker)delegate
|
||||
{
|
||||
listBox1.Items.Add(ConsoleManager.lineToWrite);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
catch (ArgumentNullException)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void Form1_Resize(object sender, EventArgs e)
|
||||
{
|
||||
if (ConfigManager.GetEntry("MinimiseToTray") == "True")
|
||||
{
|
||||
if (this.WindowState == FormWindowState.Minimized)
|
||||
{
|
||||
Hide();
|
||||
notifyIcon1.Visible = true;
|
||||
notifyIcon1.ShowBalloonTip(3000);
|
||||
this.ShowInTaskbar = false;
|
||||
notifyIcon1.ShowBalloonTip(5000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void minimiseToTrayToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ConfigManager.GetEntry("MinimiseToTray") == "True")
|
||||
{
|
||||
ConfigManager.SetEntry("MinimiseToTray", "False");
|
||||
}
|
||||
ConfigManager.SetEntry("MinimiseToTray", minimiseToTrayToolStripMenuItem.Checked.ToString());
|
||||
}
|
||||
|
||||
if (ConfigManager.GetEntry("MinimiseToTray") == "False")
|
||||
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void showToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Show();
|
||||
notifyIcon1.Visible = false;
|
||||
}
|
||||
|
||||
private void notifyIcon1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Show();
|
||||
}
|
||||
|
||||
private void quitToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
|
||||
private void openToTrayToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
ConfigManager.SetEntry("OpenToTray", openToTrayToolStripMenuItem.Checked.ToString());
|
||||
}
|
||||
|
||||
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (ConfigManager.GetEntry("CloseToTray") == "True")
|
||||
{
|
||||
ConfigManager.SetEntry("MinimiseToTray", "True");
|
||||
if (e.CloseReason == CloseReason.UserClosing)
|
||||
{
|
||||
e.Cancel = true;
|
||||
Hide();
|
||||
notifyIcon1.Visible = true;
|
||||
notifyIcon1.ShowBalloonTip(5000);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
}
|
||||
|
||||
private void closeToTrayToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
ConfigManager.SetEntry("CloseToTray", closeToTrayToolStripMenuItem.Checked.ToString());
|
||||
}
|
||||
|
||||
private void rPCSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Form3 form = new Form3();
|
||||
form.Show();
|
||||
}
|
||||
|
||||
private void testConsoleToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
ConsoleManager.WriteToConsole("Testing Console...");
|
||||
}
|
||||
|
||||
private void writeLabelToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
StatusManager.WriteStatusLine("Testing Status...");
|
||||
}
|
||||
|
||||
private void checkBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
listBox1.Enabled = checkBox1.Checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -121,9 +121,131 @@
|
|||
<value>21, 16</value>
|
||||
</metadata>
|
||||
<metadata name="notifyIcon1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>136, 16</value>
|
||||
<value>142, 27</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>255, 27</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="notifyIcon1.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAMAEBAAAAEACABoBQAANgAAACAgAAABACAAqBAAAJ4FAAAQEAAAAQAgAGgEAABGFgAAKAAAABAA
|
||||
AAAgAAAAAQAIAAAAAABAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAADNemMAy3dpAMx1bgDMeW8Az39sAMdt
|
||||
fwDJc3QAyXB+AM14egDZmxYA1pgdANqiFwDVlSAA1pUkANWTKQDWlzUA2Zs3ANWUOQDaoSAA3Kc+ANKL
|
||||
QwDUjkAA0YhIANiZQgDXmUwAz4FXANCEUwDUj1MA0IJfANmeWQDZnF4A36tEAOO5VwDShmQA0YVpANSQ
|
||||
aQDYmW4A2JxsAM+AcQDOgHoA0IV1ANSMcQDQhXsA0IN+ANeYdQDUkHkA5LpxAMdojgDIaYoAzXuBAM5/
|
||||
hgDFZpAAxWWXAMZjmQDEYZ0AxGSfAMdsmQDIbJ8Aw2GhAMViowDHbKgAyGqqAMpwpADMeqEAy3WqAMpy
|
||||
rwDMdq8AznupAM9+rQDOfrAA0YWEANCFjADOgZQA04efANaTlgDZmpwA3qiWAOO3gQDjtZUA0IOoANKH
|
||||
rwDXl6gA04y9ANufsQDcoakA5bytAOfBjQDqyIoA2ZnGANmdyQDfqcQA36nNALX/sQDU/9EA////AAAA
|
||||
AAAULwAAIlAAADBwAAA9kAAATLAAAFnPAABn8AAAeP8RAIr/MQCc/1EArv9xAMD/kQDS/7EA5P/RAP//
|
||||
/wAAAAAAJi8AAEBQAABacAAAdJAAAI6wAACpzwAAwvAAANH/EQDY/zEA3v9RAOP/cQDp/5EA7/+xAPb/
|
||||
0QD///8AAAAAAC8mAABQQQAAcFsAAJB0AACwjgAAz6kAAPDDAAD/0hEA/9gxAP/dUQD/5HEA/+qRAP/w
|
||||
sQD/9tEA////AAAAAAAvFAAAUCIAAHAwAACQPgAAsE0AAM9bAADwaQAA/3kRAP+KMQD/nVEA/69xAP/B
|
||||
kQD/0rEA/+XRAP///wAAAAAALwMAAFAEAABwBgAAkAkAALAKAADPDAAA8A4AAP8gEgD/PjEA/1xRAP96
|
||||
cQD/l5EA/7axAP/U0QD///8AAAAAAC8ADgBQABcAcAAhAJAAKwCwADYAzwBAAPAASQD/EVoA/zFwAP9R
|
||||
hgD/cZwA/5GyAP+xyAD/0d8A////AAAAAAAvACAAUAA2AHAATACQAGIAsAB4AM8AjgDwAKQA/xGzAP8x
|
||||
vgD/UccA/3HRAP+R3AD/seUA/9HwAP///wAAAAAALAAvAEsAUABpAHAAhwCQAKUAsADEAM8A4QDwAPAR
|
||||
/wDyMf8A9FH/APZx/wD3kf8A+bH/APvR/wD///8AAAAAABsALwAtAFAAPwBwAFIAkABjALAAdgDPAIgA
|
||||
8ACZEf8ApjH/ALRR/wDCcf8Az5H/ANyx/wDr0f8A////AAAAAAAIAC8ADgBQABUAcAAbAJAAIQCwACYA
|
||||
zwAsAPAAPhH/AFgx/wBxUf8AjHH/AKaR/wC/sf8A2tH/AP///wAAAAAAAAAAAAAAAAAAAAAAAABSSCgF
|
||||
HRsXFhIRFCEAAAA5MQYJKy4tJh8ZEA0KDAAAOjRUAAAAAAAAAAAvCxMAAEY1AAAAAAAAAAAAAA4gAABc
|
||||
N1sAAEcnIyQAAFcPWAAAAD1EAAAyAwEiAAAeGAAAAABZOAAAVQcCTQAAFU4AAAAAAD5FAAAzLAAAJRwA
|
||||
AAAAAABaOwAAAAAAVhpPAAAAAAAAAEI/AAAAACkqAAAAAAAAAAAAPFEAAEsEAAAAAAAAAAAAAFM3UEoI
|
||||
TAAAAAAAAAAAAAAAQzYwSQAAAAAAAAAAAAAAAABBQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAMAD
|
||||
AACAAQAAj/EAAJ/5AACMMQAAzDMAAMwzAADmZwAA58cAAPPPAAD5nwAA+B8AAPw/AAD+fwAA//8AACgA
|
||||
AAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAqlVVA8htbQ7Fc3Mfy3VwMst4aUbNeWVYznteac9+WXfPgFOB0INOiNGESYvRh0OL0og9iNOK
|
||||
OYHTjjN21ZAuaNWSKVfZliVE1ZYfMdSZGR7XnBMN/38AAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAC/f38Ex2eJJclrhl/JbICZyW95w8tydN3LdG7tzHdp9s13ZPvMe2D+zn1b/8+AVv/QglH/0YRL/9KG
|
||||
Rv/SiUH/04s7/9SNNv/TjjH+1ZEq+9aSJvXXliHs1pYa3NeaFsHYnRKX2J8NXdWeBiX/vwAEAAAAAAAA
|
||||
AAAAAAAAxmObEsVmkoTFZ43exmqH+slsg//Kb37/ynF5/8tzc//MdW7/zXhp/816Y//OfF7/z35Z/9CB
|
||||
VP/Rg07/0YVJ/9KHRP/Tij7/1Iw5/9SONP/VkC//1pMp/9eVJP/Xlx//2JkZ/9mbFP/ang/6258K3duh
|
||||
BYPimwASAAAAAAAAAADEYphoxWSV+cdnkf/IaYv/yGuG/8ltgf/KcHz/y3J2/8t0cf/Mdmz/zXlm/857
|
||||
Yf/PfVz/z39X/9CCUf/RhEz/0oZH/9KIQf/Tizz/1I03/9WPMv/WkSz/1pMn/9eWIv/YmBz/2ZoX/9md
|
||||
Ev/anw3/258H+dqhBGgAAAAAAAAAAMRinIfGY5n/xmWU/8doj//Iaon/yWyE/8luf//JcHn+y3Fz98pz
|
||||
burLd2nazXlkzM58XMHNfVi5z4BTtdCDTbXRhEm50oVDwdKHPs3Sijnb1Iw06tOOL/jUkSr+15Ql/9eX
|
||||
IP/YmRr/2ZsV/9qdEP/boAr/26AHhwAAAAAAAAAAw1+fcMNhmv7GZJf/x2aS/8dpjP/Ga4b6x22By8pu
|
||||
fIPKcHdNzXRuLsh2bRzGcWMSv39VDN9/XwjakUgH2pFIB8ZxOAnUfz8M1I04EtOMPR3TjTYv1I8xTtaQ
|
||||
LITVkSXL15Qh+tiYHf/Ymhj/2ZwT/9idDf7aoAlvAAAAAAAAAADDYJ5FxGCd9MVjmv/GZZX/x2eP/8Vp
|
||||
irHNa4ka////AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAA//8AAdeTJxrWlCSv15Yg/9iZG//Zmxb/2ZsP9NyfC0MAAAAAAAAAAL9boxzDX6LWxWKd/8Zk
|
||||
mP/GZpL/xmeOgwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAANWTJ4LXlSP/2Jce/9iaGf/XmhTV2aASGwAAAAAAAAAAv3+/BMRe
|
||||
o5zEYKD/xWKb/8Zllf/FZpCkv3+/BAAAAAAAAAAAAAAAAL9/fwTEdWsayndtMct1ZUHOemFJzn1aSc9/
|
||||
V0DPf1Uw1oRRGb9/PwQAAAAAAAAAAAAAAAD/vz8E1pMqo9aUJv/XliH/2Jgc/9iZF5m/fwAEAAAAAAAA
|
||||
AAAAAAAAxF6jTsJdovXFYZ7/xmOZ/8ZlktTEYpMaAAAAAAAAAADMZpkFynB5estxdNXLc27sy3do9M14
|
||||
ZPfOel33zX5X9NCBU+vQgk/V0YNLesyZMwUAAAAAAAAAANeTMRrTkCzU1pIp/9eVJP/Xlh/02ZgbSwAA
|
||||
AAAAAAAAAAAAAAAAAADCYakVw1yjycRgof/FYpz/xGOW9sVmklAAAAAAAAAAAMZxjQnKcHu4y3J3/8t0
|
||||
cf/Mdmz/zXln/857Yf/OfVz/z39X/9CCUv/Og024xo1UCQAAAAAAAAAA1Yw2UNSPMPbWkS3/1pMn/9eU
|
||||
IsfYmRkUAAAAAAAAAAAAAAAAAAAAAP8A/wHCXKZ2xF+i/MVhn//FY5n/xWWVpLZtkQcAAAAA/wD/Acpv
|
||||
fX7Jb3j9y3N0/8x1b//Nd2r/zXlk/858X//Pflr/zoBT/dCCT33//wABAAAAANqRSAfTijmk1I41/9WQ
|
||||
MP/UkCr81JIlc///AAEAAAAAAAAAAAAAAAAAAAAAAAAAAMJdpybCXKXcxGCi/8VinP/GYpbmxmWTMgAA
|
||||
AAAAAAAAxmt/MshtfObKcXf/y3Ry/8x2bf/NeGj/znpi/859Xf/Oflbm0IJTMQAAAAAAAAAA0odBM9GI
|
||||
O+fUjDj/1Y8z/9WQLdvUlCokAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvz9/BMJbpYvDXaX9xWGf/8Ni
|
||||
mP7FY5aNv39/BAAAAAC2bW0HyG5+m8hwev7LcnX/zHVw/8x3a//NeWX/zHtg/s18XJrUf1UGAAAAAL9/
|
||||
PwTShkSO0IdA/tOLO//TjTX91Y8xh/+qVQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAw1yoL8Nc
|
||||
peLEX6L/xWGd/8ZjmODGZZMtAAAAAAAAAADGbH82yW975cpxeP/Lc3P/zHZu/814aP/LeWPlzn1gNQAA
|
||||
AAAAAAAA0YdJLdCDSOHSh0P/04o+/9KLN+HRjTItAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AADMZpkFwlynj8Ncpf3EYKD/xGGb/cRjl4/MZpkFAAAAAMxmZgXIbX6HyW97/Mtydv/LdHH/y3Zr/M13
|
||||
ZobMZmYFAAAAAMyZZgXPgU+Q0IRK/dKGRv/RiED904o8jP9/PwQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAADGWqktwV2n4MRfo//FYZ7/xWGX5sNkljgAAAAAAAAAAMpygx3KbXvGynF5/8tz
|
||||
dP/LdW3GyntpHQAAAAAAAAAAzX1UOdB/VObQg0//0YVJ/9KHQ97ViEErAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAL8/fwTDXKiExF6k/MRgof/EYpr+xmKYpr9qlAwAAAAAAAAAAchw
|
||||
e0LKb3neynB23st1cUEAAAABAAAAAL9/VQzOfVunzn9X/tCBUv/Qgkv80YZHgf+qVQMAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMRepyPBW6jUxF+k/8Vhn//FYZnzxWKWWP8A
|
||||
/wEAAAAA/39/AsdvfTfHb3g3/39/AgAAAAD/AAABzXliWMx5X/PPflr/0IBV/86BTtPQg00hAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf39/AsNcqWvDXKX4xGCi/8Vi
|
||||
nf/EY5fNw2GWIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMp4aSLNd2fNzXpi/859Xf/Nflf4zoBSaf//
|
||||
AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv1mlFMFb
|
||||
qbvEXqX/xWCg/8Nhmv3FZJeWzGaZCgAAAAAAAAAAAAAAAAAAAADMf38KynVwlsp1af3NeWX/zntg/819
|
||||
WbnJeF0TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAwV2oR8Jbp+zEX6P/xWGd/8VimPPHZJRl/1WqAwAAAAAAAAAA/1WqA8lxdmXJc3LzzHZu/814
|
||||
af/NeWLry3lgRQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAC2SLYHwFuojsRepPzEYKD/xWKb/8RjleTEZZNOqlWqA6pVVQPKbYFNyW575Mty
|
||||
dv/LdHH/zHZr/Mp4Z4zUf1UGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADFWqwfwl2mysRfo//FYZ7/xWOZ/8VlkuLHZo9yyGqJccds
|
||||
hOLJbn7/ynF5/8tzdP/Jc27JzHduHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP8AAAHDXKhNwl6m7MRgof/FYpz/xmSX/8Zm
|
||||
kPzHaIr8yGuH/8ltgv/Kb3z/yXB368tzc0v/AAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANRVqgbDXaeAwl6i+cVh
|
||||
n//FY5r/xmWU/8dnj//Iaor/yWyF/8dsffnIcHp/1H9/BgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMZj
|
||||
qRLCXqWowl6i/cVinf/GZJj/x2aS/8dojf/GaYj9yGqCqMZxfxIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAMNapSLDXqS9w2Ce/sVjm//GZZX/xWeO/sZpib3IbIshAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAMVfpSjDX6K4xWCd+8VimPvGZZG4xWaMKAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMFboxnFYJ5qxWKZaslqlBgAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////gA
|
||||
AB/AAAADgAAAAYAAAAGAAAABgAAAAYB//gGB//+BgOAHAcDAAwPAwAMDwEACA+BgBgfgIAQH8DAMD/AQ
|
||||
CA/4GBgf+AgQH/wEID/8B+A//gPAf/8BgP//AAD//4AB//+AAf//wAP//+AH///wD///+B////w/////
|
||||
//8oAAAAEAAAACAAAAABACAAAAAAAEAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADGcXEJzXV1Gst2
|
||||
ay3Me2E8z39XRtCCTUzSh0BL0442RtOSLzvWliIs15MdGt+fHwgAAAAAAAAAAL9qlAzHZ49lx2yEs8hw
|
||||
eNjKdW7pzXll8s9+WvbPgU/40IVD+NOKOvbTjy/y1pIl6daXG9fYnBGz26AKZNSqAAzEYphBxGSU8chp
|
||||
iv/HbX/+y3Fz8sp1auHMel/UzoBUzc+FSc3SiT7U0ow14dSSK/LVlSD+2ZsW/9idCvHXoAdByF+fOMVj
|
||||
me/FZZD9yGqGo8tve0DLdG0jx3ljF9R/VBLUf0YS0oVCF9OKOiPTkStB1pQio9aYHP3YmxLv2p8NOMVc
|
||||
ohbDYJ7OxGKV+sVnkVQAAAAAtm1tB9BzbCHPemQwz39aMNCDVCG2bUgHAAAAANSRJ1TWkyD62JcXzdqd
|
||||
GBX/f38CxF6ih8Rgnf3GZJWM/39/Aspwek3Lc3LdzHZm7M58XuzOgFPd0IRMTf9/AALVjzGM1ZMo/diX
|
||||
IIX/fwACAAAAAMRdpjTCXqDoxWGY1MpglR3IbXo4yXB368x1bv/NemP/z3xX69CBUzfTjD0d0os41NWP
|
||||
L+fXligzAAAAAAAAAADabbYHxF6loMNhnfnDY5dsuXNzC8pve6XJc3T+y3dp/s16XqXMf2YK0oZGbNGJ
|
||||
P/nTjTaf2pEkBwAAAAAAAAAAAAAAAMNdqjzEXaPqxWGbz8NdmR7Hb303yG934st0buLLeGU3zH9VHtCC
|
||||
Tc/RhkTq04pAOwAAAAAAAAAAAAAAAAAAAAC2bbYHwV2mmcJeoPrGYpp/2m2RB8pxfFjKcXZY2m1tB817
|
||||
XYDPf1T60YNNl9qRSAcAAAAAAAAAAAAAAAAAAAAAAAAAAMJeqy7DXqTexWCa5cVimD7///8B////Aclz
|
||||
bz7LeGblzntc3dGCVC0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACqVaoDw1yndMReofjFY5fDx2eQJcdu
|
||||
fCXKcnbCy3Zr+M55Y3OqVVUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL9ZpRTCXqO1xWGc/MVl
|
||||
k8zIaojMyW99/MpxdLTJeGsTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv12mNMRf
|
||||
otnGY5n/x2iO/8ZsgtnIbn0zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH9/
|
||||
fwLFXaRMw1+d28RlktvFaIlMf39/AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAA/39/AshhnSrIYZcq/39/AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMADAAAAAAAAAAAAAAAA
|
||||
AAAIEAAAAAAAAIABAACAAQAAwAMAAMADAADgBwAA4AcAAPAPAAD4HwAA+B8AAPw/AAA=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>25</value>
|
||||
<value>62</value>
|
||||
</metadata>
|
||||
</root>
|
38
WindowsFormsApplication2/Form2.Designer.cs
generated
38
WindowsFormsApplication2/Form2.Designer.cs
generated
|
@ -1,38 +0,0 @@
|
|||
namespace WindowsFormsApplication2
|
||||
{
|
||||
partial class Form2
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Text = "Form2";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
{
|
||||
public partial class Form2 : Form
|
||||
{
|
||||
public Form2()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
112
WindowsFormsApplication2/Form3.Designer.cs
generated
Normal file
112
WindowsFormsApplication2/Form3.Designer.cs
generated
Normal file
|
@ -0,0 +1,112 @@
|
|||
namespace JellyfinRPC
|
||||
{
|
||||
partial class Form3
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(13, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(73, 13);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Application ID";
|
||||
this.label1.Click += new System.EventHandler(this.label1_Click);
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(13, 30);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(259, 20);
|
||||
this.textBox1.TabIndex = 1;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(197, 61);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "OK";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(116, 61);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 3;
|
||||
this.button2.Text = "Cancel";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(35, 61);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 4;
|
||||
this.button3.Text = "Apply";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.button3_Click);
|
||||
//
|
||||
// Form3
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(284, 96);
|
||||
this.Controls.Add(this.button3);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Name = "Form3";
|
||||
this.Text = "Discord RPC Config";
|
||||
this.Load += new System.EventHandler(this.Form3_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button3;
|
||||
}
|
||||
}
|
47
WindowsFormsApplication2/Form3.cs
Normal file
47
WindowsFormsApplication2/Form3.cs
Normal file
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
public partial class Form3 : Form
|
||||
{
|
||||
public Form3()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void label1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
button3.PerformClick();
|
||||
this.DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void Form3_Load(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Text = ConfigManager.GetEntry("DiscordClientID");
|
||||
}
|
||||
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
ConfigManager.SetEntry("DiscordClientID", textBox1.Text);
|
||||
}
|
||||
}
|
||||
}
|
120
WindowsFormsApplication2/Form3.resx
Normal file
120
WindowsFormsApplication2/Form3.resx
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
245
WindowsFormsApplication2/JellyfinAPI.cs
Normal file
245
WindowsFormsApplication2/JellyfinAPI.cs
Normal file
|
@ -0,0 +1,245 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Reflection;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
class JellyfinAPI
|
||||
{
|
||||
public static async Task<string> Jellyfin()
|
||||
{
|
||||
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
var playingInfo = await GetCurrentlyPlaying();
|
||||
if (playingInfo != null)
|
||||
{
|
||||
JToken nowPlaying = playingInfo.NowPlayingItem;
|
||||
|
||||
string largeImageKey = playingInfo.IsMusic
|
||||
? GetAlbumCover(nowPlaying)
|
||||
: await GetJellyfinLogo();
|
||||
string largeImageText = playingInfo.IsMusic
|
||||
? nowPlaying["Album"]?.ToString() ?? "Unknown Album"
|
||||
: "Jellyfin";
|
||||
|
||||
string details = playingInfo.IsMusic
|
||||
? $"{playingInfo.Title}"
|
||||
: nowPlaying["SeriesName"] != null
|
||||
? $"Watching {nowPlaying["SeriesName"]} - {playingInfo.Title}"
|
||||
: $"Watching {playingInfo.Title}";
|
||||
|
||||
string state = playingInfo.IsMusic
|
||||
? $"{playingInfo.Artist}"
|
||||
: nowPlaying["SeriesName"] != null
|
||||
? $"Season {playingInfo.Season}, Episode {playingInfo.Episode}"
|
||||
: "";
|
||||
DateTime duration = playingInfo.Duration;
|
||||
|
||||
DateTime progress = playingInfo.Progress;
|
||||
|
||||
return $"{largeImageKey}|{largeImageText}|{details}|{state}|{duration}|{progress}";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ConsoleManager.WriteToConsole($"Error fetching Jellyfin data: {ex.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static string AssemblyVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
}
|
||||
}
|
||||
private static async Task<string> GetJellyfinLogo()
|
||||
{
|
||||
using var httpClient = new HttpClient();
|
||||
try
|
||||
{
|
||||
if (ConfigManager.GetEntry("JellyfinToken") == "")
|
||||
{
|
||||
|
||||
|
||||
var response = await httpClient.GetAsync($"{ConfigManager.GetEntry("ServerURL")}/System/Info?api_key={ConfigManager.GetEntry("APIKey")}");
|
||||
response.EnsureSuccessStatusCode();
|
||||
|
||||
var jsonResponse = await response.Content.ReadAsStringAsync();
|
||||
var json = JArray.Parse(jsonResponse);
|
||||
|
||||
var logoUrl = json["LogoUrl"]?.ToString();
|
||||
|
||||
return logoUrl ?? "jellyfin_logo";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "jellyfin_logo";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ConsoleManager.WriteToConsole($"Error fetching Jellyfin logo: {ex.Message}");
|
||||
return "jellyfin_logo";
|
||||
}
|
||||
|
||||
}
|
||||
private static async Task<PlayingInfo?> GetCurrentlyPlaying()
|
||||
{
|
||||
using var httpClient = new HttpClient();
|
||||
try
|
||||
{
|
||||
if (ConfigManager.GetEntry("JellyfinToken") == "")
|
||||
{
|
||||
var response = await httpClient.GetAsync($"{ConfigManager.GetEntry("ServerURL")}/Sessions?api_key={ConfigManager.GetEntry("APIKey")}");
|
||||
response.EnsureSuccessStatusCode();
|
||||
|
||||
var jsonResponse = await response.Content.ReadAsStringAsync();
|
||||
var sessions = JArray.Parse(jsonResponse);
|
||||
|
||||
foreach (var session in sessions)
|
||||
{
|
||||
if (session["UserId"]?.ToString() == ConfigManager.GetEntry("UserID") && session["NowPlayingItem"] != null)
|
||||
{
|
||||
var nowPlaying = session["NowPlayingItem"];
|
||||
var mediaType = nowPlaying["Type"]?.ToString();
|
||||
bool isMusic = mediaType?.ToLower() == "audio";
|
||||
|
||||
string albumCover = "";
|
||||
string artist = "Unknown Artist";
|
||||
|
||||
if (isMusic)
|
||||
{
|
||||
albumCover = GetAlbumCover(nowPlaying);
|
||||
var artists = nowPlaying["Artists"]?.ToObject<JArray>();
|
||||
if (artists != null && artists.Count > 0)
|
||||
{
|
||||
artist = artists[0].ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
artist = "Unknown Artist";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return new PlayingInfo
|
||||
{
|
||||
Title = nowPlaying["Name"]?.ToString(),
|
||||
Artist = artist,
|
||||
AlbumCover = albumCover,
|
||||
Season = nowPlaying["ParentIndexNumber"]?.ToString() ?? "N/A",
|
||||
Episode = nowPlaying["IndexNumber"]?.ToString() ?? "N/A",
|
||||
Progress = new DateTime((long)session["PlayState"]["PositionTicks"]),
|
||||
//Progress = TimeSpan.FromTicks((long)session["PlayState"]["PositionTicks"]),
|
||||
Duration = new DateTime((long)nowPlaying["RunTimeTicks"]),
|
||||
//Duration = TimeSpan.FromTicks((long)nowPlaying["RunTimeTicks"]),
|
||||
IsMusic = isMusic,
|
||||
NowPlayingItem = nowPlaying
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ConsoleManager.WriteToConsole($"Error fetching Jellyfin data: {ex.Message}");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static string GetAlbumCover(JToken nowPlaying)
|
||||
{
|
||||
var mediaStreams = nowPlaying["MediaStreams"]?.ToObject<JArray>();
|
||||
if (mediaStreams != null)
|
||||
{
|
||||
foreach (var stream in mediaStreams)
|
||||
{
|
||||
var imageTag = stream["ImageTag"]?.ToString();
|
||||
if (!string.IsNullOrEmpty(imageTag))
|
||||
{
|
||||
return imageTag;
|
||||
}
|
||||
}
|
||||
}
|
||||
return "album_cover";
|
||||
}
|
||||
public static async Task<string> SendQuickConnectRequest()
|
||||
{
|
||||
using var httpClient = new HttpClient();
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", $"MediaBrowser Client=\"JellyfinRPC\", Device=\"Windows, Probably\", DeviceId=\"{ConfigManager.GetEntry("JellyfinDeviceID")}\", Version=\"{AssemblyVersion}\"");
|
||||
if (ConfigManager.GetEntry("ServerURL") != "")
|
||||
{
|
||||
var response = await httpClient.PostAsync($"{ConfigManager.GetEntry("ServerURL")}/QuickConnect/Initiate", null);
|
||||
if (response.StatusCode is (System.Net.HttpStatusCode)401)
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("This server does not have Quick Connect enabled.", "Quick Connect Unavailable.", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error, System.Windows.Forms.MessageBoxDefaultButton.Button1);
|
||||
return "Error: Server does not have Quick Connect Enabled.";
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
response.EnsureSuccessStatusCode();
|
||||
var jsonResponse = await response.Content.ReadAsStringAsync();
|
||||
var contents = JArray.Parse(jsonResponse);
|
||||
|
||||
if (!contents.Any())
|
||||
{
|
||||
return "Error: Server did not respond.";
|
||||
}
|
||||
|
||||
foreach (var content in contents)
|
||||
{
|
||||
if (content["Code"]?.ToString() != "")
|
||||
{
|
||||
return content["Code"]?.ToString();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return "Error: Server did not return code.";
|
||||
}
|
||||
}
|
||||
return "Error: All values returned are null.";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return $"{ex.Message.Trim()}";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "Error: No Server URL Set.";
|
||||
}
|
||||
}
|
||||
|
||||
public static string DeviceID()
|
||||
{
|
||||
using (RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider())
|
||||
{
|
||||
byte[] randomNumber = new byte[4];
|
||||
rng.GetBytes(randomNumber);
|
||||
int value = BitConverter.ToInt32(randomNumber, 0);
|
||||
byte[] valueBytes = System.Text.Encoding.UTF8.GetBytes(value.ToString());
|
||||
return System.Convert.ToBase64String(valueBytes);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
|
@ -8,12 +8,13 @@
|
|||
<ProjectGuid>{F07CE1DA-EA8C-44A4-86A4-94996FDBE980}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>WindowsFormsApplication2</RootNamespace>
|
||||
<AssemblyName>WindowsFormsApplication2</AssemblyName>
|
||||
<RootNamespace>JellyfinRPC</RootNamespace>
|
||||
<AssemblyName>Jellyfin Rich Presence</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
|
@ -39,6 +40,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
|
@ -48,10 +50,55 @@
|
|||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="AsyncBridge.NET40, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\AsynchronousBridge.1.2.2\lib\Net40\AsyncBridge.NET40.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MakarovDev.ExpandCollapsePanel, Version=1.0.7197.27666, Culture=neutral, PublicKeyToken=6cb45db4006534c2, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MakarovDev.ExpandCollapsePanel.1.0.0\lib\net40\MakarovDev.ExpandCollapsePanel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Threading.Tasks.Extensions, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.16.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.IO, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.1.1.10\lib\net40\System.IO.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Net.Http, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net40\System.Net.Http.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net40\System.Net.Http.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http.Primitives, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net40\System.Net.Http.Primitives.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http.WebRequest, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net40\System.Net.Http.WebRequest.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.1.1.10\lib\net40\System.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.1.1.10\lib\net40\System.Threading.Tasks.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
|
@ -68,6 +115,19 @@
|
|||
<Compile Include="AboutBox1.Designer.cs">
|
||||
<DependentUpon>AboutBox1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utils.cs" />
|
||||
<Compile Include="StatusManager.cs" />
|
||||
<Compile Include="PlayingInfo.cs" />
|
||||
<Compile Include="ConsoleManager.cs" />
|
||||
<Compile Include="JellyfinAPI.cs" />
|
||||
<Compile Include="DiscordRPC.cs" />
|
||||
<Compile Include="Discord\ActivityManager.cs" />
|
||||
<Compile Include="Discord\Constants.cs" />
|
||||
<Compile Include="Discord\Core.cs" />
|
||||
<Compile Include="Discord\ImageManager.cs" />
|
||||
<Compile Include="Discord\LobbyManager.cs" />
|
||||
<Compile Include="Discord\StorageManager.cs" />
|
||||
<Compile Include="Discord\StoreManager.cs" />
|
||||
<Compile Include="FileChecker.cs" />
|
||||
<Compile Include="ConfigManager.cs" />
|
||||
<Compile Include="Form1.cs">
|
||||
|
@ -82,11 +142,11 @@
|
|||
<Compile Include="ConfigForm.Designer.cs">
|
||||
<DependentUpon>ConfigForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form2.cs">
|
||||
<Compile Include="Form3.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form2.Designer.cs">
|
||||
<DependentUpon>Form2.cs</DependentUpon>
|
||||
<Compile Include="Form3.Designer.cs">
|
||||
<DependentUpon>Form3.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
@ -99,6 +159,9 @@
|
|||
<EmbeddedResource Include="ConfigForm.resx">
|
||||
<DependentUpon>ConfigForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form3.resx">
|
||||
<DependentUpon>Form3.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
|
@ -109,7 +172,14 @@
|
|||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="..\.editorconfig">
|
||||
<Link>.editorconfig</Link>
|
||||
</None>
|
||||
<None Include="app.config" />
|
||||
<None Include="discord_game_sdk.dll.lib">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
|
@ -145,7 +215,17 @@
|
|||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="discord_game_sdk.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
|
||||
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
|
||||
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
|
||||
<Error Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
|
||||
</Target>
|
||||
<!-- 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.
|
||||
<Target Name="BeforeBuild">
|
||||
|
|
22
WindowsFormsApplication2/PlayingInfo.cs
Normal file
22
WindowsFormsApplication2/PlayingInfo.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
public class PlayingInfo
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Artist { get; set; }
|
||||
public string AlbumCover { get; set; }
|
||||
public string Season { get; set; }
|
||||
public string Episode { get; set; }
|
||||
public DateTime Progress { get; set; }
|
||||
public DateTime Duration { get; set; }
|
||||
public bool IsMusic { get; set; }
|
||||
public JToken NowPlayingItem { get; set; }
|
||||
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
|
@ -13,13 +13,32 @@ namespace WindowsFormsApplication2
|
|||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
if (ConfigManager.GetEntry("DiscordClientID") != "")
|
||||
{
|
||||
var discord = new Discord.Discord(DiscordRPC.discordAppID, (UInt64)Discord.CreateFlags.Default);
|
||||
|
||||
#if DEBUG
|
||||
discord.SetLogHook(Discord.LogLevel.Debug, (level, message) =>
|
||||
{
|
||||
ConsoleManager.WriteToConsole($"DiscordLog: {level} {message}");
|
||||
});
|
||||
#else
|
||||
discord.SetLogHook(Discord.LogLevel.Warn, (level, message) =>
|
||||
{
|
||||
ConsoleManager.WriteToCOnsole($"DiscordLog: {level} {message}");
|
||||
});
|
||||
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
FileChecker.FolderCheck();
|
||||
FileChecker.FileCheck();
|
||||
Application.Run(new Form1());
|
||||
|
||||
|
||||
ConsoleManager.WriteToConsole("Starting Jellyfin Rich Presence...");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WindowsFormsApplication2.Properties {
|
||||
namespace JellyfinRPC.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
|
@ -19,7 +19,7 @@ namespace WindowsFormsApplication2.Properties {
|
|||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
@ -39,7 +39,7 @@ namespace WindowsFormsApplication2.Properties {
|
|||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApplication2.Properties.Resources", typeof(Resources).Assembly);
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("JellyfinRPC.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WindowsFormsApplication2.Properties {
|
||||
namespace JellyfinRPC.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
|
17
WindowsFormsApplication2/StatusManager.cs
Normal file
17
WindowsFormsApplication2/StatusManager.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
class StatusManager
|
||||
{
|
||||
static Form1 MainForm;
|
||||
public static void WriteStatusLine(string Status)
|
||||
{
|
||||
MainForm = new Form1();
|
||||
MainForm.label1.Text = $"Current Status - {Status}";
|
||||
}
|
||||
}
|
||||
}
|
17
WindowsFormsApplication2/Utils.cs
Normal file
17
WindowsFormsApplication2/Utils.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
class Utils
|
||||
{
|
||||
public static long DateTimeInUnix(DateTime dateTime)
|
||||
{
|
||||
long unixTimestamp = dateTime.Ticks - new DateTime(1970, 1, 1).Ticks;
|
||||
unixTimestamp /= TimeSpan.TicksPerSecond;
|
||||
return unixTimestamp;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,3 +1,20 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
|
|
BIN
WindowsFormsApplication2/assets/favicon.ico
Normal file
BIN
WindowsFormsApplication2/assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.7 KiB |
BIN
WindowsFormsApplication2/assets/jellyfin.png
Normal file
BIN
WindowsFormsApplication2/assets/jellyfin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
BIN
WindowsFormsApplication2/bin/Debug/AsyncBridge.NET40.dll
Normal file
BIN
WindowsFormsApplication2/bin/Debug/AsyncBridge.NET40.dll
Normal file
Binary file not shown.
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
70
WindowsFormsApplication2/bin/Debug/AsyncBridge.NET40.xml
Normal file
70
WindowsFormsApplication2/bin/Debug/AsyncBridge.NET40.xml
Normal file
|
@ -0,0 +1,70 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>AsyncBridge.NET40</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:AsyncBridge.AsyncHelper">
|
||||
<summary>
|
||||
A Helper class to run Asynchronous functions from synchronous ones
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:AsyncBridge.AsyncHelper.FireAndForget(System.Func{System.Threading.Tasks.Task},System.Action{System.Exception})">
|
||||
<summary>
|
||||
Runs a task with the "Fire and Forget" pattern using Task.Run,
|
||||
and unwraps and handles exceptions
|
||||
</summary>
|
||||
<param name="task">A function that returns the task to run</param>
|
||||
<param name="handle">Error handling action, null by default</param>
|
||||
</member>
|
||||
<member name="P:AsyncBridge.AsyncHelper.Wait">
|
||||
<summary>
|
||||
Creates a new AsyncBridge. This should always be used in
|
||||
conjunction with the using statement, to ensure it is disposed
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:AsyncBridge.AsyncHelper.AsyncBridge">
|
||||
<summary>
|
||||
A class to bridge synchronous asynchronous methods
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:AsyncBridge.AsyncHelper.AsyncBridge.#ctor">
|
||||
<summary>
|
||||
Constructs the AsyncBridge by capturing the current
|
||||
SynchronizationContext and replacing it with a new
|
||||
ExclusiveSynchronizationContext.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:AsyncBridge.AsyncHelper.AsyncBridge.Run(System.Threading.Tasks.Task,System.Action{System.Threading.Tasks.Task})">
|
||||
<summary>
|
||||
Execute's an async task with a void return type
|
||||
from a synchronous context
|
||||
</summary>
|
||||
<param name="task">Task to execute</param>
|
||||
<param name="callback">Optional callback</param>
|
||||
</member>
|
||||
<member name="M:AsyncBridge.AsyncHelper.AsyncBridge.Run``1(System.Threading.Tasks.Task{``0},System.Action{System.Threading.Tasks.Task{``0}})">
|
||||
<summary>
|
||||
Execute's an async task with a T return type
|
||||
from a synchronous context
|
||||
</summary>
|
||||
<typeparam name="T">The type of the task</typeparam>
|
||||
<param name="task">Task to execute</param>
|
||||
<param name="callback">Optional callback</param>
|
||||
</member>
|
||||
<member name="M:AsyncBridge.AsyncHelper.AsyncBridge.Run``1(System.Threading.Tasks.Task{``0},System.Action{``0})">
|
||||
<summary>
|
||||
Execute's an async task with a T return type
|
||||
from a synchronous context
|
||||
</summary>
|
||||
<typeparam name="T">The type of the task</typeparam>
|
||||
<param name="task">Task to execute</param>
|
||||
<param name="callback">The callback function that uses the result of the task</param>
|
||||
</member>
|
||||
<member name="M:AsyncBridge.AsyncHelper.AsyncBridge.Dispose">
|
||||
<summary>
|
||||
Disposes the object
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
BIN
WindowsFormsApplication2/bin/Debug/Jellyfin Rich Presence.exe
Normal file
BIN
WindowsFormsApplication2/bin/Debug/Jellyfin Rich Presence.exe
Normal file
Binary file not shown.
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Extensions" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.WebRequest" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
BIN
WindowsFormsApplication2/bin/Debug/Jellyfin Rich Presence.pdb
Normal file
BIN
WindowsFormsApplication2/bin/Debug/Jellyfin Rich Presence.pdb
Normal file
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,684 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Microsoft.Threading.Tasks.Extensions.Desktop</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.FromCancellation(System.Threading.CancellationToken)">
|
||||
<summary>Returns a canceled task.</summary>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<returns>The canceled task.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.FromCancellation``1(System.Threading.CancellationToken)">
|
||||
<summary>Returns a canceled task.</summary>
|
||||
<typeparam name="TResult">Specifies the type of the result.</typeparam>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<returns>The canceled task.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.HandleEapCompletion``1(System.Threading.Tasks.TaskCompletionSource{``0},System.Boolean,System.ComponentModel.AsyncCompletedEventArgs,System.Func{``0},System.Action)">
|
||||
<summary>
|
||||
Completes the Task if the user state matches the TaskCompletionSource.
|
||||
</summary>
|
||||
<typeparam name="T">Specifies the type of data returned by the Task.</typeparam>
|
||||
<param name="tcs">The TaskCompletionSource.</param>
|
||||
<param name="e">The completion event arguments.</param>
|
||||
<param name="requireMatch">Whether we require the tcs to match the e.UserState.</param>
|
||||
<param name="getResult">A function that gets the result with which to complete the task.</param>
|
||||
<param name="unregisterHandler">An action used to unregister work when the operaiton completes.</param>
|
||||
</member>
|
||||
<member name="T:AsyncPlatformExtensions">
|
||||
<summary>
|
||||
Provides asynchronous wrappers for .NET Framework operations.
|
||||
</summary>
|
||||
<summary>
|
||||
Provides asynchronous wrappers for .NET Framework operations.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.DownloadStringTaskAsync(System.Net.WebClient,System.String)">
|
||||
<summary>Downloads the resource with the specified URI as a string, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI from which to download data.</param>
|
||||
<returns>A Task that contains the downloaded string.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.DownloadStringTaskAsync(System.Net.WebClient,System.Uri)">
|
||||
<summary>Downloads the resource with the specified URI as a string, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI from which to download data.</param>
|
||||
<returns>A Task that contains the downloaded string.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.OpenReadTaskAsync(System.Net.WebClient,System.String)">
|
||||
<summary>Opens a readable stream for the data downloaded from a resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI for which the stream should be opened.</param>
|
||||
<returns>A Task that contains the opened stream.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.OpenReadTaskAsync(System.Net.WebClient,System.Uri)">
|
||||
<summary>Opens a readable stream for the data downloaded from a resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI for which the stream should be opened.</param>
|
||||
<returns>A Task that contains the opened stream.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.OpenWriteTaskAsync(System.Net.WebClient,System.String)">
|
||||
<summary>Opens a writeable stream for uploading data to a resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI for which the stream should be opened.</param>
|
||||
<returns>A Task that contains the opened stream.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.OpenWriteTaskAsync(System.Net.WebClient,System.Uri)">
|
||||
<summary>Opens a writeable stream for uploading data to a resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI for which the stream should be opened.</param>
|
||||
<returns>A Task that contains the opened stream.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.OpenWriteTaskAsync(System.Net.WebClient,System.String,System.String)">
|
||||
<summary>Opens a writeable stream for uploading data to a resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI for which the stream should be opened.</param>
|
||||
<param name="method">The HTTP method that should be used to open the stream.</param>
|
||||
<returns>A Task that contains the opened stream.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.OpenWriteTaskAsync(System.Net.WebClient,System.Uri,System.String)">
|
||||
<summary>Opens a writeable stream for uploading data to a resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI for which the stream should be opened.</param>
|
||||
<param name="method">The HTTP method that should be used to open the stream.</param>
|
||||
<returns>A Task that contains the opened stream.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadStringTaskAsync(System.Net.WebClient,System.String,System.String)">
|
||||
<summary>Uploads data in a string to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the data should be uploaded.</param>
|
||||
<param name="data">The data to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadStringTaskAsync(System.Net.WebClient,System.Uri,System.String)">
|
||||
<summary>Uploads data in a string to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the data should be uploaded.</param>
|
||||
<param name="data">The data to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadStringTaskAsync(System.Net.WebClient,System.String,System.String,System.String)">
|
||||
<summary>Uploads data in a string to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the data should be uploaded.</param>
|
||||
<param name="method">The HTTP method that should be used to upload the data.</param>
|
||||
<param name="data">The data to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadStringTaskAsync(System.Net.WebClient,System.Uri,System.String,System.String)">
|
||||
<summary>Uploads data in a string to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the data should be uploaded.</param>
|
||||
<param name="method">The HTTP method that should be used to upload the data.</param>
|
||||
<param name="data">The data to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.GetUri(System.Net.WebClient,System.String)">
|
||||
<summary>Converts a path to a Uri using the WebClient's logic.</summary>
|
||||
<remarks>Based on WebClient's private GetUri method.</remarks>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.GetUri(System.Net.WebClient,System.Uri)">
|
||||
<summary>Converts a path to a Uri using the WebClient's logic.</summary>
|
||||
<remarks>Based on WebClient's private GetUri method.</remarks>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.DownloadDataTaskAsync(System.Net.WebClient,System.String)">
|
||||
<summary>Downloads the resource with the specified URI as a byte array, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI from which to download data.</param>
|
||||
<returns>A Task that contains the downloaded data.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.DownloadDataTaskAsync(System.Net.WebClient,System.Uri)">
|
||||
<summary>Downloads the resource with the specified URI as a byte array, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI from which to download data.</param>
|
||||
<returns>A Task that contains the downloaded data.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.DownloadFileTaskAsync(System.Net.WebClient,System.String,System.String)">
|
||||
<summary>Downloads the resource with the specified URI to a local file, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI from which to download data.</param>
|
||||
<param name="fileName">The name of the local file that is to receive the data.</param>
|
||||
<returns>A Task that contains the downloaded data.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.DownloadFileTaskAsync(System.Net.WebClient,System.Uri,System.String)">
|
||||
<summary>Downloads the resource with the specified URI to a local file, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI from which to download data.</param>
|
||||
<param name="fileName">The name of the local file that is to receive the data.</param>
|
||||
<returns>A Task that contains the downloaded data.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadDataTaskAsync(System.Net.WebClient,System.String,System.Byte[])">
|
||||
<summary>Uploads data to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the data should be uploaded.</param>
|
||||
<param name="data">The data to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadDataTaskAsync(System.Net.WebClient,System.Uri,System.Byte[])">
|
||||
<summary>Uploads data to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the data should be uploaded.</param>
|
||||
<param name="data">The data to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadDataTaskAsync(System.Net.WebClient,System.String,System.String,System.Byte[])">
|
||||
<summary>Uploads data to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the data should be uploaded.</param>
|
||||
<param name="method">The HTTP method that should be used to upload the data.</param>
|
||||
<param name="data">The data to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadDataTaskAsync(System.Net.WebClient,System.Uri,System.String,System.Byte[])">
|
||||
<summary>Uploads data to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the data should be uploaded.</param>
|
||||
<param name="method">The HTTP method that should be used to upload the data.</param>
|
||||
<param name="data">The data to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadFileTaskAsync(System.Net.WebClient,System.String,System.String)">
|
||||
<summary>Uploads a file to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the file should be uploaded.</param>
|
||||
<param name="fileName">A path to the file to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadFileTaskAsync(System.Net.WebClient,System.Uri,System.String)">
|
||||
<summary>Uploads a file to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the file should be uploaded.</param>
|
||||
<param name="fileName">A path to the file to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadFileTaskAsync(System.Net.WebClient,System.String,System.String,System.String)">
|
||||
<summary>Uploads a file to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the file should be uploaded.</param>
|
||||
<param name="method">The HTTP method that should be used to upload the file.</param>
|
||||
<param name="fileName">A path to the file to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.UploadFileTaskAsync(System.Net.WebClient,System.Uri,System.String,System.String)">
|
||||
<summary>Uploads a file to the specified resource, asynchronously.</summary>
|
||||
<param name="webClient">The WebClient.</param>
|
||||
<param name="address">The URI to which the file should be uploaded.</param>
|
||||
<param name="method">The HTTP method that should be used to upload the file.</param>
|
||||
<param name="fileName">A path to the file to upload.</param>
|
||||
<returns>A Task containing the data in the response from the upload.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AnnounceOnlineTaskAsync(System.ServiceModel.Discovery.AnnouncementClient,System.ServiceModel.Discovery.EndpointDiscoveryMetadata)">
|
||||
<summary>Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state. The specified is called when the operation completes.</summary>
|
||||
<returns>Task instance.</returns>
|
||||
<param name="discoveryMetadata">The endpoint discovery metadata.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AnnounceOfflineTaskAsync(System.ServiceModel.Discovery.AnnouncementClient,System.ServiceModel.Discovery.EndpointDiscoveryMetadata)">
|
||||
<summary>Causes an offline announcement (Bye) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state. The specified is called when the operation completes.</summary>
|
||||
<returns>Task instance.</returns>
|
||||
<param name="discoveryMetadata">The endpoint discovery metadata.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.GetContextAsync(System.Net.HttpListener)">
|
||||
<summary>Begins asynchronously retrieving an incoming request.</summary>
|
||||
<returns>Task object that indicates the status of the asynchronous operation.</returns>
|
||||
<exception cref="T:System.Net.HttpListenerException">A Win32 function call failed. Check the exception's property to determine the cause of the exception.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">This object has not been started or is currently stopped.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object is closed.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.GetClientCertificateAsync(System.Net.HttpListenerRequest)">
|
||||
<summary>Starts an asynchronous request for the client's X.509 v.3 certificate.</summary>
|
||||
<returns>Task that indicates the status of the operation.</returns>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AuthenticateAsClientAsync(System.Net.Security.NegotiateStream)">
|
||||
<summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. This method does not block.</summary>
|
||||
<returns>Task object indicating the status of the asynchronous operation. </returns>
|
||||
<exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AuthenticateAsClientAsync(System.Net.Security.NegotiateStream,System.Net.NetworkCredential,System.String)">
|
||||
<summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials. This method does not block.</summary>
|
||||
<returns>Task object indicating the status of the asynchronous operation. </returns>
|
||||
<param name="credential">The that is used to establish the identity of the client.</param>
|
||||
<param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
|
||||
<exception cref="T:System.ArgumentNullException"> is null.- or -<paramref name="targetName" /> is null.</exception>
|
||||
<exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AuthenticateAsClientAsync(System.Net.Security.NegotiateStream,System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ChannelBinding,System.String)">
|
||||
<summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials and channel binding. This method does not block.</summary>
|
||||
<returns>Task object indicating the status of the asynchronous operation.</returns>
|
||||
<param name="credential">The that is used to establish the identity of the client.</param>
|
||||
<param name="binding">The that is used for extended protection.</param>
|
||||
<param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
|
||||
<exception cref="T:System.ArgumentNullException"> is null.- or -<paramref name="targetName" /> is null.</exception>
|
||||
<exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AuthenticateAsServerAsync(System.Net.Security.NegotiateStream)">
|
||||
<summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. This method does not block.</summary>
|
||||
<returns>Task object indicating the status of the asynchronous operation. </returns>
|
||||
<exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
||||
<exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AuthenticateAsServerAsync(System.Net.Security.NegotiateStream,System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy)">
|
||||
<summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified extended protection policy. This method does not block.</summary>
|
||||
<returns>Task object indicating the status of the asynchronous operation.</returns>
|
||||
<param name="policy">The that is used for extended protection.</param>
|
||||
<exception cref="T:System.ArgumentException">The and <see cref="P:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomServiceNames" /> on the extended protection policy passed in the parameter are both null.</exception>
|
||||
<exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AuthenticateAsServerAsync(System.Net.Security.NegotiateStream,System.Net.NetworkCredential,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
|
||||
<summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified server credentials and authentication options. This method does not block.</summary>
|
||||
<returns>Task object indicating the status of the asynchronous operation. </returns>
|
||||
<param name="credential">The that is used to establish the identity of the client.</param>
|
||||
<param name="requiredProtectionLevel">One of the values, indicating the security services for the stream.</param>
|
||||
<param name="requiredImpersonationLevel">One of the values, indicating how the server can use the client's credentials to access resources.</param>
|
||||
<exception cref="T:System.ArgumentNullException"> is null.</exception>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException"> must be , <see cref="F:System.Security.Principal.TokenImpersonationLevel.Impersonation" />, or <see cref="F:System.Security.Principal.TokenImpersonationLevel.Delegation" />,</exception>
|
||||
<exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
|
||||
<exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AuthenticateAsClientAsync(System.Net.Security.SslStream,System.String)">
|
||||
<summary>Called by clients to begin an asynchronous operation to authenticate the server and optionally the client.</summary>
|
||||
<returns>Task object that indicates the status of the asynchronous operation. </returns>
|
||||
<param name="targetHost">The name of the server that shares this .</param>
|
||||
<exception cref="T:System.ArgumentNullException"> is null.</exception>
|
||||
<exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Authentication has already occurred.-or-Server authentication using this was tried previously.-or- Authentication is already in progress.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AuthenticateAsServerAsync(System.Net.Security.SslStream,System.Security.Cryptography.X509Certificates.X509Certificate)">
|
||||
<summary>Called by servers to begin an asynchronous operation to authenticate the client and optionally the server in a client-server connection.</summary>
|
||||
<returns>Task object indicating the status of the asynchronous operation. </returns>
|
||||
<param name="serverCertificate">The X509Certificate used to authenticate the server.</param>
|
||||
<exception cref="T:System.ArgumentNullException"> is null.</exception>
|
||||
<exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Authentication has already occurred.-or-Client authentication using this was tried previously.-or- Authentication is already in progress.</exception>
|
||||
<exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
||||
<exception cref="T:System.PlatformNotSupportedException">The method is not supported on Windows 95, Windows 98, or Windows Millennium.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ConnectAsync(System.Net.Sockets.TcpClient,System.String,System.Int32)">
|
||||
<summary>Starts an asynchronous request for a remote host connection. The host is specified by a host name and a port number.</summary>
|
||||
<returns>Task that represents the asynchronous connection.</returns>
|
||||
<param name="hostname">The name of the remote host.</param>
|
||||
<param name="port">The port number of the remote host.</param>
|
||||
<exception cref="T:System.ArgumentNullException"> is null. </exception>
|
||||
<exception cref="T:System.ObjectDisposedException">The has been closed. </exception>
|
||||
<exception cref="T:System.NotSupportedException">This method is valid for sockets in the or families.</exception>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The is ing.</exception>
|
||||
<PermissionSet> <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Net.SocketPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> </PermissionSet>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ConnectAsync(System.Net.Sockets.TcpClient,System.Net.IPAddress,System.Int32)">
|
||||
<summary>Starts an asynchronous request for a remote host connection. The host is specified by an and a port number.</summary>
|
||||
<returns>Task that represents the asynchronous connection.</returns>
|
||||
<param name="address">The of the remote host.</param>
|
||||
<param name="port">The port number of the remote host.</param>
|
||||
<exception cref="T:System.ArgumentNullException"> is null. </exception>
|
||||
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See the Remarks section for more information. </exception>
|
||||
<exception cref="T:System.ObjectDisposedException">The has been closed. </exception>
|
||||
<exception cref="T:System.NotSupportedException">The is not in the socket family.</exception>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
|
||||
<exception cref="T:System.ArgumentException">The length of is zero.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The is ing.</exception>
|
||||
<PermissionSet> <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Net.SocketPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> </PermissionSet>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ConnectAsync(System.Net.Sockets.TcpClient,System.Net.IPAddress[],System.Int32)">
|
||||
<summary>Starts an asynchronous request for a remote host connection. The host is specified by an array and a port number.</summary>
|
||||
<returns>Task that represents the asynchronous connections.</returns>
|
||||
<param name="ipAddresses">At least one , designating the remote host.</param>
|
||||
<param name="port">The port number of the remote host.</param>
|
||||
<exception cref="T:System.ArgumentNullException"> is null. </exception>
|
||||
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See the Remarks section for more information. </exception>
|
||||
<exception cref="T:System.ObjectDisposedException">The has been closed. </exception>
|
||||
<exception cref="T:System.NotSupportedException">This method is valid for sockets that use or .</exception>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
|
||||
<exception cref="T:System.ArgumentException">The length of is zero.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The is ing.</exception>
|
||||
<PermissionSet> <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Net.SocketPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> </PermissionSet>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AcceptSocketAsync(System.Net.Sockets.TcpListener)">
|
||||
<summary>Starts an asynchronous operation to accept an incoming connection attempt.</summary>
|
||||
<returns>Task that represents the asynchronous creation of the <see cref="T:System.Net.Sockets.Socket" />.</returns>
|
||||
<exception cref="T:System.Net.Sockets.SocketException">An error occurred while attempting to access the socket. See the Remarks section for more information. </exception>
|
||||
<exception cref="T:System.ObjectDisposedException">The has been closed. </exception>
|
||||
<PermissionSet> <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" /> <IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> </PermissionSet>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.AcceptTcpClientAsync(System.Net.Sockets.TcpListener)">
|
||||
<summary>Starts an asynchronous operation to accept an incoming connection attempt.</summary>
|
||||
<returns>Task that represents the asynchronous creation of the <see cref="T:System.Net.Sockets.TcpClient" />.</returns>
|
||||
<exception cref="T:System.Net.Sockets.SocketException">An error occurred while attempting to access the socket. See the Remarks section for more information. </exception>
|
||||
<exception cref="T:System.ObjectDisposedException">The has been closed. </exception>
|
||||
<PermissionSet> <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" /> <IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> </PermissionSet>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendAsync(System.Net.Sockets.UdpClient,System.Byte[],System.Int32,System.Net.IPEndPoint)">
|
||||
<summary>Sends a datagram to a destination asynchronously. The destination is specified by a .</summary>
|
||||
<returns>Task object that represents the asynchronous send.</returns>
|
||||
<param name="datagram">A array that contains the data to be sent.</param>
|
||||
<param name="bytes">The number of bytes to send.</param>
|
||||
<param name="endPoint">The that represents the destination for the data.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendAsync(System.Net.Sockets.UdpClient,System.Byte[],System.Int32)">
|
||||
<summary>Sends a datagram to a remote host asynchronously. The destination was specified previously by a call to .</summary>
|
||||
<returns>Task object that represents the asynchronous send.</returns>
|
||||
<param name="datagram">A array that contains the data to be sent.</param>
|
||||
<param name="bytes">The number of bytes to send.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendAsync(System.Net.Sockets.UdpClient,System.Byte[],System.Int32,System.String,System.Int32)">
|
||||
<summary>Sends a datagram to a remote host asynchronously. The destination was specified previously by a call to .</summary>
|
||||
<returns>Task object that represents the asynchronous send.</returns>
|
||||
<param name="datagram">A array that contains the data to be sent.</param>
|
||||
<param name="bytes">The number of bytes to send.</param>
|
||||
<param name="hostname">The host name.</param>
|
||||
<param name="port">The host name.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.GetUnicastAddressesAsync(System.Net.NetworkInformation.IPGlobalProperties)">
|
||||
<summary>Starts an asynchronous request to retrieve the stable unicast IP address table on the local computer.</summary>
|
||||
<returns>Task that represents the asynchronous request.</returns>
|
||||
<exception cref="T:System.NotImplementedException">This method is not implemented on the platform. This method uses the native NotifyStableUnicastIpAddressTable function that is supported on Windows Vista and later. </exception>
|
||||
<exception cref="T:System.ComponentModel.Win32Exception">The call to the native NotifyStableUnicastIpAddressTable function failed.</exception>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.OpenAsync(System.Data.SqlClient.SqlConnection)">
|
||||
<summary>Opens the connection asynchronously.</summary>
|
||||
<param name="source">The source.</param>
|
||||
<returns>Task that represents the asynchronous request.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.OpenAsync(System.Data.SqlClient.SqlConnection,System.Threading.CancellationToken)">
|
||||
<summary>Opens the connection asynchronously.</summary>
|
||||
<param name="source">The source.</param>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<returns>Task that represents the asynchronous request.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ExecuteNonQueryAsync(System.Data.SqlClient.SqlCommand)">
|
||||
<summary>Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this , given a callback procedure and state information.</summary>
|
||||
<returns>Task that can be used to poll or wait for results, or both; this value is also needed when invoking <see cref="M:System.Data.SqlClient.SqlCommand.EndExecuteNonQuery(System.IAsyncResult)" />, which returns the number of affected rows.</returns>
|
||||
<exception cref="T:System.Data.SqlClient.SqlException">Any error that occurred while executing the command text.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .</exception>
|
||||
<filterpriority>2</filterpriority>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ExecuteNonQueryAsync(System.Data.SqlClient.SqlCommand,System.Threading.CancellationToken)">
|
||||
<summary>Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this , given a callback procedure and state information.</summary>
|
||||
<returns>Task that can be used to poll or wait for results, or both; this value is also needed when invoking <see cref="M:System.Data.SqlClient.SqlCommand.EndExecuteNonQuery(System.IAsyncResult)" />, which returns the number of affected rows.</returns>
|
||||
<exception cref="T:System.Data.SqlClient.SqlException">Any error that occurred while executing the command text.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .</exception>
|
||||
<filterpriority>2</filterpriority>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ExecuteXmlReaderAsync(System.Data.SqlClient.SqlCommand)">
|
||||
<summary>Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this and returns results as an <see cref="T:System.Xml.XmlReader" /> object, using a callback procedure.</summary>
|
||||
<returns>Task that can be used to poll, wait for results, or both; this value is also needed when the <see cref="M:System.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)" /> is called, which returns the results of the command as XML.</returns>
|
||||
<exception cref="T:System.Data.SqlClient.SqlException">Any error that occurred while executing the command text.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .</exception>
|
||||
<filterpriority>2</filterpriority>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ExecuteXmlReaderAsync(System.Data.SqlClient.SqlCommand,System.Threading.CancellationToken)">
|
||||
<summary>Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this and returns results as an <see cref="T:System.Xml.XmlReader" /> object, using a callback procedure.</summary>
|
||||
<returns>Task that can be used to poll, wait for results, or both; this value is also needed when the <see cref="M:System.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)" /> is called, which returns the results of the command as XML.</returns>
|
||||
<exception cref="T:System.Data.SqlClient.SqlException">Any error that occurred while executing the command text.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .</exception>
|
||||
<filterpriority>2</filterpriority>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ExecuteReaderAsync(System.Data.SqlClient.SqlCommand)">
|
||||
<summary>Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this and retrieves one or more result sets from the server, given a callback procedure and state information.</summary>
|
||||
<returns>Task that can be used to poll, wait for results, or both; this value is also needed when invoking <see cref="M:System.Data.SqlClient.SqlCommand.EndExecuteReader(System.IAsyncResult)" />, which returns a <see cref="T:System.Data.SqlClient.SqlDataReader" /> instance which can be used to retrieve the returned rows.</returns>
|
||||
<exception cref="T:System.Data.SqlClient.SqlException">Any error that occurred while executing the command text.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .</exception>
|
||||
<filterpriority>2</filterpriority>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ExecuteReaderAsync(System.Data.SqlClient.SqlCommand,System.Threading.CancellationToken)">
|
||||
<summary>Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this and retrieves one or more result sets from the server, given a callback procedure and state information.</summary>
|
||||
<returns>Task that can be used to poll, wait for results, or both; this value is also needed when invoking <see cref="M:System.Data.SqlClient.SqlCommand.EndExecuteReader(System.IAsyncResult)" />, which returns a <see cref="T:System.Data.SqlClient.SqlDataReader" /> instance which can be used to retrieve the returned rows.</returns>
|
||||
<exception cref="T:System.Data.SqlClient.SqlException">Any error that occurred while executing the command text.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this .</exception>
|
||||
<filterpriority>2</filterpriority>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.GetMetadataAsync(System.ServiceModel.Description.MetadataExchangeClient)">
|
||||
<summary>Starts an asynchronous method call that returns a .</summary>
|
||||
<returns>The metadata.</returns>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.GetMetadataAsync(System.ServiceModel.Description.MetadataExchangeClient,System.Uri,System.ServiceModel.Description.MetadataExchangeClientMode)">
|
||||
<summary>Starts an asynchronous method call that returns a using the specified address, callback, asynchronous state, and download mechanism.</summary>
|
||||
<returns>The metadata obtained from the specified .</returns>
|
||||
<param name="address">The address of the metadata.</param>
|
||||
<param name="mode">The value to use when downloading the metadata.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.GetMetadataAsync(System.ServiceModel.Description.MetadataExchangeClient,System.ServiceModel.EndpointAddress)">
|
||||
<summary>Starts an asynchronous method call that returns a using the specified address, callback, and asynchronous state.</summary>
|
||||
<returns>The metadata obtained from the specified .</returns>
|
||||
<param name="address">The address of the metadata.</param>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.FindTaskAsync(System.ServiceModel.Discovery.DiscoveryClient,System.ServiceModel.Discovery.FindCriteria)">
|
||||
<summary>
|
||||
Begins an asynchronous find operation with the specified criteria.
|
||||
</summary>
|
||||
<param name="discoveryClient">The discovery client.</param>
|
||||
<param name="criteria">The criteria for finding services.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.ResolveTaskAsync(System.ServiceModel.Discovery.DiscoveryClient,System.ServiceModel.Discovery.ResolveCriteria)">
|
||||
<summary>
|
||||
Begins an asynchronous resolve operation with the specified criteria.
|
||||
</summary>
|
||||
<param name="discoveryClient">The discovery client.</param>
|
||||
<param name="criteria">The criteria for matching a service endpoint.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.NetworkInformation.Ping,System.Net.IPAddress)">
|
||||
<summary>
|
||||
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
|
||||
</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="address">An IPAddress that identifies the computer that is the destination for the ICMP echo message.</param>
|
||||
<returns>A task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.NetworkInformation.Ping,System.String)">
|
||||
<summary>
|
||||
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
|
||||
</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="hostNameOrAddress">
|
||||
A String that identifies the computer that is the destination for the ICMP echo message.
|
||||
The value specified for this parameter can be a host name or a string representation of an IP address.
|
||||
</param>
|
||||
<returns>A task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.NetworkInformation.Ping,System.Net.IPAddress,System.Int32)">
|
||||
<summary>
|
||||
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
|
||||
</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="address">An IPAddress that identifies the computer that is the destination for the ICMP echo message.</param>
|
||||
<param name="timeout">
|
||||
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
|
||||
to wait for the ICMP echo reply message.
|
||||
</param>
|
||||
<returns>A task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.NetworkInformation.Ping,System.String,System.Int32)">
|
||||
<summary>
|
||||
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
|
||||
</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="hostNameOrAddress">
|
||||
A String that identifies the computer that is the destination for the ICMP echo message.
|
||||
The value specified for this parameter can be a host name or a string representation of an IP address.
|
||||
</param>
|
||||
<param name="timeout">
|
||||
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
|
||||
to wait for the ICMP echo reply message.
|
||||
</param>
|
||||
<returns>A task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.NetworkInformation.Ping,System.Net.IPAddress,System.Int32,System.Byte[])">
|
||||
<summary>
|
||||
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
|
||||
</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="address">An IPAddress that identifies the computer that is the destination for the ICMP echo message.</param>
|
||||
<param name="timeout">
|
||||
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
|
||||
to wait for the ICMP echo reply message.
|
||||
</param>
|
||||
<param name="buffer">
|
||||
A Byte array that contains data to be sent with the ICMP echo message and returned
|
||||
in the ICMP echo reply message. The array cannot contain more than 65,500 bytes.
|
||||
</param>
|
||||
<returns>A task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.NetworkInformation.Ping,System.String,System.Int32,System.Byte[])">
|
||||
<summary>
|
||||
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
|
||||
</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="hostNameOrAddress">
|
||||
A String that identifies the computer that is the destination for the ICMP echo message.
|
||||
The value specified for this parameter can be a host name or a string representation of an IP address.
|
||||
</param>
|
||||
<param name="timeout">
|
||||
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
|
||||
to wait for the ICMP echo reply message.
|
||||
</param>
|
||||
<param name="buffer">
|
||||
A Byte array that contains data to be sent with the ICMP echo message and returned
|
||||
in the ICMP echo reply message. The array cannot contain more than 65,500 bytes.
|
||||
</param>
|
||||
<returns>A task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.NetworkInformation.Ping,System.Net.IPAddress,System.Int32,System.Byte[],System.Net.NetworkInformation.PingOptions)">
|
||||
<summary>
|
||||
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
|
||||
</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="address">An IPAddress that identifies the computer that is the destination for the ICMP echo message.</param>
|
||||
<param name="timeout">
|
||||
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
|
||||
to wait for the ICMP echo reply message.
|
||||
</param>
|
||||
<param name="buffer">
|
||||
A Byte array that contains data to be sent with the ICMP echo message and returned
|
||||
in the ICMP echo reply message. The array cannot contain more than 65,500 bytes.
|
||||
</param>
|
||||
<param name="options">A PingOptions object used to control fragmentation and Time-to-Live values for the ICMP echo message packet.</param>
|
||||
<returns>A task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.NetworkInformation.Ping,System.String,System.Int32,System.Byte[],System.Net.NetworkInformation.PingOptions)">
|
||||
<summary>
|
||||
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message.
|
||||
</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="hostNameOrAddress">
|
||||
A String that identifies the computer that is the destination for the ICMP echo message.
|
||||
The value specified for this parameter can be a host name or a string representation of an IP address.
|
||||
</param>
|
||||
<param name="timeout">
|
||||
An Int32 value that specifies the maximum number of milliseconds (after sending the echo message)
|
||||
to wait for the ICMP echo reply message.
|
||||
</param>
|
||||
<param name="buffer">
|
||||
A Byte array that contains data to be sent with the ICMP echo message and returned
|
||||
in the ICMP echo reply message. The array cannot contain more than 65,500 bytes.
|
||||
</param>
|
||||
<param name="options">A PingOptions object used to control fragmentation and Time-to-Live values for the ICMP echo message packet.</param>
|
||||
<returns>A task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsyncCore(System.Net.NetworkInformation.Ping,System.Object,System.Action{System.Threading.Tasks.TaskCompletionSource{System.Net.NetworkInformation.PingReply}})">
|
||||
<summary>The core implementation of SendTaskAsync.</summary>
|
||||
<param name="ping">The Ping.</param>
|
||||
<param name="userToken">A user-defined object stored in the resulting Task.</param>
|
||||
<param name="sendAsync">
|
||||
A delegate that initiates the asynchronous send.
|
||||
The provided TaskCompletionSource must be passed as the user-supplied state to the actual Ping.SendAsync method.
|
||||
</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.Mail.SmtpClient,System.String,System.String,System.String,System.String)">
|
||||
<summary>Sends an e-mail message asynchronously.</summary>
|
||||
<param name="smtpClient">The client.</param>
|
||||
<param name="from">A String that contains the address information of the message sender.</param>
|
||||
<param name="recipients">A String that contains the address that the message is sent to.</param>
|
||||
<param name="subject">A String that contains the subject line for the message.</param>
|
||||
<param name="body">A String that contains the message body.</param>
|
||||
<returns>A Task that represents the asynchronous send.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsync(System.Net.Mail.SmtpClient,System.Net.Mail.MailMessage)">
|
||||
<summary>Sends an e-mail message asynchronously.</summary>
|
||||
<param name="smtpClient">The client.</param>
|
||||
<param name="message">A MailMessage that contains the message to send.</param>
|
||||
<returns>A Task that represents the asynchronous send.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncPlatformExtensions.SendTaskAsyncCore(System.Net.Mail.SmtpClient,System.Object,System.Action{System.Threading.Tasks.TaskCompletionSource{System.Object}})">
|
||||
<summary>The core implementation of SendTaskAsync.</summary>
|
||||
<param name="smtpClient">The client.</param>
|
||||
<param name="userToken">The user-supplied state.</param>
|
||||
<param name="sendAsync">
|
||||
A delegate that initiates the asynchronous send.
|
||||
The provided TaskCompletionSource must be passed as the user-supplied state to the actual SmtpClient.SendAsync method.
|
||||
</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.Net.DnsEx">
|
||||
<summary>Provides asynchronous wrappers for the <see cref="T:System.Net.Dns"/> class.</summary>
|
||||
</member>
|
||||
<member name="M:System.Net.DnsEx.GetHostAddressesAsync(System.String)">
|
||||
<summary>Asynchronously returns the Internet Protocol (IP) addresses for the specified host.</summary>
|
||||
<param name="hostNameOrAddress">The host name or IP address to resolve.</param>
|
||||
<returns>An array of type System.Net.IPAddress that holds the IP addresses for the host specified.</returns>
|
||||
</member>
|
||||
<member name="M:System.Net.DnsEx.GetHostEntryAsync(System.Net.IPAddress)">
|
||||
<summary>Asynchronously resolves an IP address to an System.Net.IPHostEntry instance.</summary>
|
||||
<param name="address">The IP address to resolve.</param>
|
||||
<returns>An System.Net.IPHostEntry instance that contains address information about the host.</returns>
|
||||
</member>
|
||||
<member name="M:System.Net.DnsEx.GetHostEntryAsync(System.String)">
|
||||
<summary>Asynchronously resolves an IP address to an System.Net.IPHostEntry instance.</summary>
|
||||
<param name="hostNameOrAddress">The host name or IP address to resolve.</param>
|
||||
<returns>An System.Net.IPHostEntry instance that contains address information about the host.</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
|
@ -0,0 +1,275 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Microsoft.Threading.Tasks.Extensions</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.FromCancellation(System.Threading.CancellationToken)">
|
||||
<summary>Returns a canceled task.</summary>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<returns>The canceled task.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.FromCancellation``1(System.Threading.CancellationToken)">
|
||||
<summary>Returns a canceled task.</summary>
|
||||
<typeparam name="TResult">Specifies the type of the result.</typeparam>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<returns>The canceled task.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.HandleEapCompletion``1(System.Threading.Tasks.TaskCompletionSource{``0},System.Boolean,System.ComponentModel.AsyncCompletedEventArgs,System.Func{``0},System.Action)">
|
||||
<summary>
|
||||
Completes the Task if the user state matches the TaskCompletionSource.
|
||||
</summary>
|
||||
<typeparam name="T">Specifies the type of data returned by the Task.</typeparam>
|
||||
<param name="tcs">The TaskCompletionSource.</param>
|
||||
<param name="e">The completion event arguments.</param>
|
||||
<param name="requireMatch">Whether we require the tcs to match the e.UserState.</param>
|
||||
<param name="getResult">A function that gets the result with which to complete the task.</param>
|
||||
<param name="unregisterHandler">An action used to unregister work when the operaiton completes.</param>
|
||||
</member>
|
||||
<member name="T:AsyncExtensions">
|
||||
<summary>
|
||||
Provides asynchronous wrappers for .NET Framework operations.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.ReadAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
|
||||
</summary>
|
||||
<returns>A Task that represents the asynchronous read.</returns>
|
||||
<param name="source">The source.</param>
|
||||
<param name="buffer">The buffer to read data into. </param>
|
||||
<param name="offset">The byte offset in at which to begin reading. </param>
|
||||
<param name="count">The maximum number of bytes to read. </param>
|
||||
<exception cref="T:System.ArgumentException">The array length minus is less than <paramref name="count" />. </exception>
|
||||
<exception cref="T:System.ArgumentNullException"> is null. </exception>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException"> or <paramref name="count" /> is negative. </exception>
|
||||
<exception cref="T:System.IO.IOException">An asynchronous read was attempted past the end of the file. </exception>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.ReadAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
|
||||
<summary>
|
||||
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
|
||||
</summary>
|
||||
<returns>A Task that represents the asynchronous read.</returns>
|
||||
<param name="source">The source.</param>
|
||||
<param name="buffer">The buffer to read data into. </param>
|
||||
<param name="offset">The byte offset in at which to begin reading. </param>
|
||||
<param name="count">The maximum number of bytes to read. </param>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<exception cref="T:System.ArgumentException">The array length minus is less than <paramref name="count" />. </exception>
|
||||
<exception cref="T:System.ArgumentNullException"> is null. </exception>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException"> or <paramref name="count" /> is negative. </exception>
|
||||
<exception cref="T:System.IO.IOException">An asynchronous read was attempted past the end of the file. </exception>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Writes asynchronously a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
|
||||
</summary>
|
||||
<returns>A Task that represents the asynchronous write.</returns>
|
||||
<param name="source">The source.</param>
|
||||
<param name="buffer">The buffer containing data to write to the current stream.</param>
|
||||
<param name="offset">The zero-based byte offset in at which to begin copying bytes to the current stream.</param>
|
||||
<param name="count">The maximum number of bytes to write. </param>
|
||||
<exception cref="T:System.ArgumentException"> length minus <paramref name="offset" /> is less than <paramref name="count" />. </exception>
|
||||
<exception cref="T:System.ArgumentNullException"> is null. </exception>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException"> or <paramref name="count" /> is negative. </exception>
|
||||
<exception cref="T:System.NotSupportedException">The stream does not support writing. </exception>
|
||||
<exception cref="T:System.ObjectDisposedException">The stream is closed. </exception>
|
||||
<exception cref="T:System.IO.IOException">An I/O error occurred. </exception>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
|
||||
<summary>
|
||||
Writes asynchronously a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
|
||||
</summary>
|
||||
<returns>A Task that represents the asynchronous write.</returns>
|
||||
<param name="source">The source.</param>
|
||||
<param name="buffer">The buffer containing data to write to the current stream.</param>
|
||||
<param name="offset">The zero-based byte offset in at which to begin copying bytes to the current stream.</param>
|
||||
<param name="count">The maximum number of bytes to write. </param>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<exception cref="T:System.ArgumentException"> length minus <paramref name="offset" /> is less than <paramref name="count" />. </exception>
|
||||
<exception cref="T:System.ArgumentNullException"> is null. </exception>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException"> or <paramref name="count" /> is negative. </exception>
|
||||
<exception cref="T:System.NotSupportedException">The stream does not support writing. </exception>
|
||||
<exception cref="T:System.ObjectDisposedException">The stream is closed. </exception>
|
||||
<exception cref="T:System.IO.IOException">An I/O error occurred. </exception>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.FlushAsync(System.IO.Stream)">
|
||||
<summary>
|
||||
Flushes asynchronously the current stream.
|
||||
</summary>
|
||||
<returns>A Task that represents the asynchronous flush.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.FlushAsync(System.IO.Stream,System.Threading.CancellationToken)">
|
||||
<summary>
|
||||
Flushes asynchronously the current stream.
|
||||
</summary>
|
||||
<returns>A Task that represents the asynchronous flush.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream)">
|
||||
<summary>
|
||||
Reads all the bytes from the current stream and writes them to the destination stream.
|
||||
</summary>
|
||||
<param name="source">The source stream.</param>
|
||||
<param name="destination">The stream that will contain the contents of the current stream.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Int32)">
|
||||
<summary>
|
||||
Reads all the bytes from the current stream and writes them to the destination stream.
|
||||
</summary>
|
||||
<param name="source">The source stream.</param>
|
||||
<param name="destination">The stream that will contain the contents of the current stream.</param>
|
||||
<param name="bufferSize">The size of the buffer. This value must be greater than zero. The default size is 4096.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Int32,System.Threading.CancellationToken)">
|
||||
<summary>
|
||||
Reads all the bytes from the current stream and writes them to the destination stream.
|
||||
</summary>
|
||||
<param name="source">The source stream.</param>
|
||||
<param name="destination">The stream that will contain the contents of the current stream.</param>
|
||||
<param name="bufferSize">The size of the buffer. This value must be greater than zero. The default size is 4096.</param>
|
||||
<param name="cancellationToken">The cancellation token to use to cancel the asynchronous operation.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.CopyToAsyncInternal(System.IO.Stream,System.IO.Stream,System.Int32,System.Threading.CancellationToken)">
|
||||
<summary>
|
||||
Reads all the bytes from the current stream and writes them to the destination stream.
|
||||
</summary>
|
||||
<param name="source">The source stream.</param>
|
||||
<param name="destination">The stream that will contain the contents of the current stream.</param>
|
||||
<param name="bufferSize">The size of the buffer. This value must be greater than zero. The default size is 4096.</param>
|
||||
<param name="cancellationToken">The cancellation token to use to cancel the asynchronous operation.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.ReadAsync(System.IO.TextReader,System.Char[],System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Reads a maximum of count characters from the reader asynchronously and writes
|
||||
the data to buffer, beginning at index.
|
||||
</summary>
|
||||
<param name="buffer">
|
||||
When the operation completes, contains the specified character array with the
|
||||
values between index and (index + count - 1) replaced by the characters read
|
||||
from the current source.
|
||||
</param>
|
||||
<param name="count">
|
||||
The maximum number of characters to read. If the end of the stream is reached
|
||||
before count of characters is read into buffer, the current method returns.
|
||||
</param>
|
||||
<param name="index">The place in buffer at which to begin writing.</param>
|
||||
<param name="source">the source reader.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.ReadBlockAsync(System.IO.TextReader,System.Char[],System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Reads asynchronously a maximum of count characters from the current stream, and writes the
|
||||
data to buffer, beginning at index.
|
||||
</summary>
|
||||
<param name="source">The source reader.</param>
|
||||
<param name="buffer">
|
||||
When this method returns, this parameter contains the specified character
|
||||
array with the values between index and (index + count -1) replaced by the
|
||||
characters read from the current source.
|
||||
</param>
|
||||
<param name="index">The position in buffer at which to begin writing.</param>
|
||||
<param name="count">The maximum number of characters to read.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.ReadLineAsync(System.IO.TextReader)">
|
||||
<summary>
|
||||
Reads a line of characters from the reader and returns the string asynchronously.
|
||||
</summary>
|
||||
<param name="source">the source reader.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.ReadToEndAsync(System.IO.TextReader)">
|
||||
<summary>
|
||||
Reads all characters from the current position to the end of the TextReader
|
||||
and returns them as one string asynchronously.
|
||||
</summary>
|
||||
<param name="source">the source reader.</param>
|
||||
<returns>A Task that represents the asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteAsync(System.IO.TextWriter,System.String)">
|
||||
<summary>Writes a string asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<param name="value">The string to write.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteAsync(System.IO.TextWriter,System.Char)">
|
||||
<summary>Writes a char asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<param name="value">The char to write.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteAsync(System.IO.TextWriter,System.Char[])">
|
||||
<summary>Writes a char array asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<param name="buffer">The buffer to write.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteAsync(System.IO.TextWriter,System.Char[],System.Int32,System.Int32)">
|
||||
<summary>Writes a subarray of characters asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<param name="buffer">The buffer to write.</param>
|
||||
<param name="index">Starting index in the buffer.</param>
|
||||
<param name="count">The number of characters to write.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteLineAsync(System.IO.TextWriter)">
|
||||
<summary>Writes a line terminator asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteLineAsync(System.IO.TextWriter,System.String)">
|
||||
<summary>Writes a string followed by a line terminator asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<param name="value">The string to write.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteLineAsync(System.IO.TextWriter,System.Char)">
|
||||
<summary>Writes a char followed by a line terminator asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<param name="value">The char to write.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteLineAsync(System.IO.TextWriter,System.Char[])">
|
||||
<summary>Writes a char array followed by a line terminator asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<param name="buffer">The buffer to write.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.WriteLineAsync(System.IO.TextWriter,System.Char[],System.Int32,System.Int32)">
|
||||
<summary>Writes a subarray of characters followed by a line terminator asynchronously to a text stream.</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<param name="buffer">The buffer to write.</param>
|
||||
<param name="index">Starting index in the buffer.</param>
|
||||
<param name="count">The number of characters to write.</param>
|
||||
<returns>A Task representing the asynchronous write.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.FlushAsync(System.IO.TextWriter)">
|
||||
<summary>
|
||||
Clears all buffers for the current writer and causes any buffered data to
|
||||
be written to the underlying device.
|
||||
</summary>
|
||||
<param name="target">The writer.</param>
|
||||
<returns>A Task representing the asynchronous flush.</returns>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.GetResponseAsync(System.Net.WebRequest)">
|
||||
<summary>Starts an asynchronous request for a web resource.</summary>
|
||||
<returns>Task that represents the asynchronous request.</returns>
|
||||
<exception cref="T:System.InvalidOperationException">The stream is already in use by a previous call to . </exception>
|
||||
<PermissionSet> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> </PermissionSet>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
<member name="M:AsyncExtensions.GetRequestStreamAsync(System.Net.WebRequest)">
|
||||
<summary>Starts an asynchronous request for a object to use to write data.</summary>
|
||||
<returns>Task that represents the asynchronous request.</returns>
|
||||
<exception cref="T:System.Net.ProtocolViolationException">The property is GET and the application writes to the stream. </exception>
|
||||
<exception cref="T:System.InvalidOperationException">The stream is being used by a previous call to . </exception>
|
||||
<exception cref="T:System.ApplicationException">No write stream is available. </exception>
|
||||
<PermissionSet> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> </PermissionSet>
|
||||
<param name="source">The source.</param>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
BIN
WindowsFormsApplication2/bin/Debug/Microsoft.Threading.Tasks.dll
Normal file
BIN
WindowsFormsApplication2/bin/Debug/Microsoft.Threading.Tasks.dll
Normal file
Binary file not shown.
630
WindowsFormsApplication2/bin/Debug/Microsoft.Threading.Tasks.xml
Normal file
630
WindowsFormsApplication2/bin/Debug/Microsoft.Threading.Tasks.xml
Normal file
|
@ -0,0 +1,630 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Microsoft.Threading.Tasks</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:AwaitExtensions">
|
||||
<summary>
|
||||
Provides extension methods for threading-related types.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:AwaitExtensions.CancelAfter(System.Threading.CancellationTokenSource,System.Int32)">
|
||||
<summary>Cancels the <see cref="T:System.Threading.CancellationTokenSource"/> after the specified duration.</summary>
|
||||
<param name="source">The CancellationTokenSource.</param>
|
||||
<param name="dueTime">The due time in milliseconds for the source to be canceled.</param>
|
||||
</member>
|
||||
<member name="M:AwaitExtensions.CancelAfter(System.Threading.CancellationTokenSource,System.TimeSpan)">
|
||||
<summary>Cancels the <see cref="T:System.Threading.CancellationTokenSource"/> after the specified duration.</summary>
|
||||
<param name="source">The CancellationTokenSource.</param>
|
||||
<param name="dueTime">The due time for the source to be canceled.</param>
|
||||
</member>
|
||||
<member name="M:AwaitExtensions.GetAwaiter(System.Threading.Tasks.Task)">
|
||||
<summary>Gets an awaiter used to await this <see cref="T:System.Threading.Tasks.Task"/>.</summary>
|
||||
<param name="task">The task to await.</param>
|
||||
<returns>An awaiter instance.</returns>
|
||||
</member>
|
||||
<member name="M:AwaitExtensions.GetAwaiter``1(System.Threading.Tasks.Task{``0})">
|
||||
<summary>Gets an awaiter used to await this <see cref="T:System.Threading.Tasks.Task"/>.</summary>
|
||||
<typeparam name="TResult">Specifies the type of data returned by the task.</typeparam>
|
||||
<param name="task">The task to await.</param>
|
||||
<returns>An awaiter instance.</returns>
|
||||
</member>
|
||||
<member name="M:AwaitExtensions.ConfigureAwait(System.Threading.Tasks.Task,System.Boolean)">
|
||||
<summary>Creates and configures an awaitable object for awaiting the specified task.</summary>
|
||||
<param name="task">The task to be awaited.</param>
|
||||
<param name="continueOnCapturedContext">
|
||||
true to automatic marshag back to the original call site's current SynchronizationContext
|
||||
or TaskScheduler; otherwise, false.
|
||||
</param>
|
||||
<returns>The instance to be awaited.</returns>
|
||||
</member>
|
||||
<member name="M:AwaitExtensions.ConfigureAwait``1(System.Threading.Tasks.Task{``0},System.Boolean)">
|
||||
<summary>Creates and configures an awaitable object for awaiting the specified task.</summary>
|
||||
<param name="task">The task to be awaited.</param>
|
||||
<param name="continueOnCapturedContext">
|
||||
true to automatic marshag back to the original call site's current SynchronizationContext
|
||||
or TaskScheduler; otherwise, false.
|
||||
</param>
|
||||
<returns>The instance to be awaited.</returns>
|
||||
</member>
|
||||
<member name="T:Microsoft.ProgressEventHandler`1">
|
||||
<summary>Event handler for progress reports.</summary>
|
||||
<typeparam name="T">Specifies the type of data for the progress report.</typeparam>
|
||||
<param name="sender">The sender of the report.</param>
|
||||
<param name="value">The reported value.</param>
|
||||
</member>
|
||||
<member name="T:Microsoft.Progress`1">
|
||||
<summary>
|
||||
Provides an IProgress{T} that invokes callbacks for each reported progress value.
|
||||
</summary>
|
||||
<typeparam name="T">Specifies the type of the progress report value.</typeparam>
|
||||
<remarks>
|
||||
Any handler provided to the constructor or event handlers registered with
|
||||
the <see cref="E:Microsoft.Progress`1.ProgressChanged"/> event are invoked through a
|
||||
<see cref="T:System.Threading.SynchronizationContext"/> instance captured
|
||||
when the instance is constructed. If there is no current SynchronizationContext
|
||||
at the time of construction, the callbacks will be invoked on the ThreadPool.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.Progress`1.m_synchronizationContext">
|
||||
<summary>The synchronization context captured upon construction. This will never be null.</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.Progress`1.m_handler">
|
||||
<summary>The handler specified to the constructor. This may be null.</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.Progress`1.m_invokeHandlers">
|
||||
<summary>A cached delegate used to post invocation to the synchronization context.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Progress`1.#ctor">
|
||||
<summary>Initializes the <see cref="T:Microsoft.Progress`1"/>.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Progress`1.#ctor(System.Action{`0})">
|
||||
<summary>Initializes the <see cref="T:Microsoft.Progress`1"/> with the specified callback.</summary>
|
||||
<param name="handler">
|
||||
A handler to invoke for each reported progress value. This handler will be invoked
|
||||
in addition to any delegates registered with the <see cref="E:Microsoft.Progress`1.ProgressChanged"/> event.
|
||||
</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="handler"/> is null (Nothing in Visual Basic).</exception>
|
||||
</member>
|
||||
<member name="M:Microsoft.Progress`1.OnReport(`0)">
|
||||
<summary>Reports a progress change.</summary>
|
||||
<param name="value">The value of the updated progress.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Progress`1.System#IProgress{T}#Report(`0)">
|
||||
<summary>Reports a progress change.</summary>
|
||||
<param name="value">The value of the updated progress.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Progress`1.InvokeHandlers(System.Object)">
|
||||
<summary>Invokes the action and event callbacks.</summary>
|
||||
<param name="state">The progress value.</param>
|
||||
</member>
|
||||
<member name="E:Microsoft.Progress`1.ProgressChanged">
|
||||
<summary>Raised for each reported progress value.</summary>
|
||||
<remarks>
|
||||
Handlers registered with this event will be invoked on the
|
||||
<see cref="T:System.Threading.SynchronizationContext"/> captured when the instance was constructed.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="T:Microsoft.ProgressStatics">
|
||||
<summary>Holds static values for <see cref="T:Microsoft.Progress`1"/>.</summary>
|
||||
<remarks>This avoids one static instance per type T.</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.ProgressStatics.DefaultContext">
|
||||
<summary>A default synchronization context that targets the ThreadPool.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncServices.ThrowAsync(System.Exception,System.Threading.SynchronizationContext)">
|
||||
<summary>Throws the exception on the ThreadPool.</summary>
|
||||
<param name="exception">The exception to propagate.</param>
|
||||
<param name="targetContext">The target context on which to propagate the exception. Null to use the ThreadPool.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncServices.PrepareExceptionForRethrow(System.Exception)">
|
||||
<summary>Copies the exception's stack trace so its stack trace isn't overwritten.</summary>
|
||||
<param name="exc">The exception to prepare.</param>
|
||||
</member>
|
||||
<member name="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable">
|
||||
<summary>Provides an awaitable object that allows for configured awaits on <see cref="T:System.Threading.Tasks.Task"/>.</summary>
|
||||
<remarks>This type is intended for compiler use only.</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.m_configuredTaskAwaiter">
|
||||
<summary>The task being awaited.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.#ctor(System.Threading.Tasks.Task,System.Boolean)">
|
||||
<summary>Initializes the <see cref="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable"/>.</summary>
|
||||
<param name="task">The awaitable <see cref="T:System.Threading.Tasks.Task"/>.</param>
|
||||
<param name="continueOnCapturedContext">
|
||||
true to attempt to marshal the continuation back to the original context captured; otherwise, false.
|
||||
</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.GetAwaiter">
|
||||
<summary>Gets an awaiter for this awaitable.</summary>
|
||||
<returns>The awaiter.</returns>
|
||||
</member>
|
||||
<member name="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter">
|
||||
<summary>Provides an awaiter for a <see cref="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable"/>.</summary>
|
||||
<remarks>This type is intended for compiler use only.</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.m_task">
|
||||
<summary>The task being awaited.</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.m_continueOnCapturedContext">
|
||||
<summary>Whether to attempt marshaling back to the original context.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.#ctor(System.Threading.Tasks.Task,System.Boolean)">
|
||||
<summary>Initializes the <see cref="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter"/>.</summary>
|
||||
<param name="task">The <see cref="T:System.Threading.Tasks.Task"/> to await.</param>
|
||||
<param name="continueOnCapturedContext">
|
||||
true to attempt to marshal the continuation back to the original context captured
|
||||
when BeginAwait is called; otherwise, false.
|
||||
</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.OnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.UnsafeOnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult">
|
||||
<summary>Ends the await on the completed <see cref="T:System.Threading.Tasks.Task"/>.</summary>
|
||||
<returns>The result of the completed <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The task was not yet completed.</exception>
|
||||
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
|
||||
<exception cref="T:System.Exception">The task completed in a Faulted state.</exception>
|
||||
</member>
|
||||
<member name="P:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.IsCompleted">
|
||||
<summary>Gets whether the task being awaited is completed.</summary>
|
||||
<remarks>This property is intended for compiler user rather than use directly in code.</remarks>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
</member>
|
||||
<member name="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1">
|
||||
<summary>Provides an awaitable object that allows for configured awaits on <see cref="T:System.Threading.Tasks.Task`1"/>.</summary>
|
||||
<remarks>This type is intended for compiler use only.</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.m_configuredTaskAwaiter">
|
||||
<summary>The underlying awaitable on whose logic this awaitable relies.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.#ctor(System.Threading.Tasks.Task{`0},System.Boolean)">
|
||||
<summary>Initializes the <see cref="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1"/>.</summary>
|
||||
<param name="task">The awaitable <see cref="T:System.Threading.Tasks.Task`1"/>.</param>
|
||||
<param name="continueOnCapturedContext">
|
||||
true to attempt to marshal the continuation back to the original context captured; otherwise, false.
|
||||
</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.GetAwaiter">
|
||||
<summary>Gets an awaiter for this awaitable.</summary>
|
||||
<returns>The awaiter.</returns>
|
||||
</member>
|
||||
<member name="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter">
|
||||
<summary>Provides an awaiter for a <see cref="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1"/>.</summary>
|
||||
<remarks>This type is intended for compiler use only.</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.m_task">
|
||||
<summary>The task being awaited.</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.m_continueOnCapturedContext">
|
||||
<summary>Whether to attempt marshaling back to the original context.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.#ctor(System.Threading.Tasks.Task{`0},System.Boolean)">
|
||||
<summary>Initializes the <see cref="T:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter"/>.</summary>
|
||||
<param name="task">The awaitable <see cref="T:System.Threading.Tasks.Task`1"/>.</param>
|
||||
<param name="continueOnCapturedContext">
|
||||
true to attempt to marshal the continuation back to the original context captured; otherwise, false.
|
||||
</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.OnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.UnsafeOnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult">
|
||||
<summary>Ends the await on the completed <see cref="T:System.Threading.Tasks.Task`1"/>.</summary>
|
||||
<returns>The result of the completed <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The task was not yet completed.</exception>
|
||||
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
|
||||
<exception cref="T:System.Exception">The task completed in a Faulted state.</exception>
|
||||
</member>
|
||||
<member name="P:Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.IsCompleted">
|
||||
<summary>Gets whether the task being awaited is completed.</summary>
|
||||
<remarks>This property is intended for compiler user rather than use directly in code.</remarks>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
</member>
|
||||
<member name="T:Microsoft.Runtime.CompilerServices.TaskAwaiter">
|
||||
<summary>Provides an awaiter for awaiting a <see cref="T:System.Threading.Tasks.Task"/>.</summary>
|
||||
<remarks>This type is intended for compiler use only.</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.TaskAwaiter.CONTINUE_ON_CAPTURED_CONTEXT_DEFAULT">
|
||||
<summary>The default value to use for continueOnCapturedContext.</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.TaskAwaiter.InvalidOperationException_TaskNotCompleted">
|
||||
<summary>Error message for GetAwaiter.</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.TaskAwaiter.m_task">
|
||||
<summary>The task being awaited.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.#ctor(System.Threading.Tasks.Task)">
|
||||
<summary>Initializes the <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="task">The <see cref="T:System.Threading.Tasks.Task"/> to be awaited.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.OnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.UnsafeOnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.GetResult">
|
||||
<summary>Ends the await on the completed <see cref="T:System.Threading.Tasks.Task"/>.</summary>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The task was not yet completed.</exception>
|
||||
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
|
||||
<exception cref="T:System.Exception">The task completed in a Faulted state.</exception>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task)">
|
||||
<summary>
|
||||
Fast checks for the end of an await operation to determine whether more needs to be done
|
||||
prior to completing the await.
|
||||
</summary>
|
||||
<param name="task">The awaited task.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(System.Threading.Tasks.Task)">
|
||||
<summary>Handles validations on tasks that aren't successfully completed.</summary>
|
||||
<param name="task">The awaited task.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)">
|
||||
<summary>Throws an exception to handle a task that completed in a state other than RanToCompletion.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.OnCompletedInternal(System.Threading.Tasks.Task,System.Action,System.Boolean)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="task">The awaited task.</param>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<param name="continueOnCapturedContext">Whether to capture and marshal back to the current context.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.RunNoException(System.Action)">
|
||||
<summary>Invokes the delegate in a try/catch that will propagate the exception asynchronously on the ThreadPool.</summary>
|
||||
<param name="continuation"></param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter.PrepareExceptionForRethrow(System.Exception)">
|
||||
<summary>Copies the exception's stack trace so its stack trace isn't overwritten.</summary>
|
||||
<param name="exc">The exception to prepare.</param>
|
||||
</member>
|
||||
<member name="P:Microsoft.Runtime.CompilerServices.TaskAwaiter.IsCompleted">
|
||||
<summary>Gets whether the task being awaited is completed.</summary>
|
||||
<remarks>This property is intended for compiler user rather than use directly in code.</remarks>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
</member>
|
||||
<member name="P:Microsoft.Runtime.CompilerServices.TaskAwaiter.IsValidLocationForInlining">
|
||||
<summary>Whether the current thread is appropriate for inlining the await continuation.</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.Runtime.CompilerServices.TaskAwaiter`1">
|
||||
<summary>Provides an awaiter for awaiting a <see cref="T:System.Threading.Tasks.Task`1"/>.</summary>
|
||||
<remarks>This type is intended for compiler use only.</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.TaskAwaiter`1.m_task">
|
||||
<summary>The task being awaited.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter`1.#ctor(System.Threading.Tasks.Task{`0})">
|
||||
<summary>Initializes the <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter`1"/>.</summary>
|
||||
<param name="task">The <see cref="T:System.Threading.Tasks.Task`1"/> to be awaited.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter`1.OnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter`1.UnsafeOnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T:Microsoft.Runtime.CompilerServices.TaskAwaiter"/>.</summary>
|
||||
<param name="continuation">The action to invoke when the await operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The awaiter was not properly initialized.</exception>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.TaskAwaiter`1.GetResult">
|
||||
<summary>Ends the await on the completed <see cref="T:System.Threading.Tasks.Task`1"/>.</summary>
|
||||
<returns>The result of the completed <see cref="T:System.Threading.Tasks.Task`1"/>.</returns>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The task was not yet completed.</exception>
|
||||
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
|
||||
<exception cref="T:System.Exception">The task completed in a Faulted state.</exception>
|
||||
</member>
|
||||
<member name="P:Microsoft.Runtime.CompilerServices.TaskAwaiter`1.IsCompleted">
|
||||
<summary>Gets whether the task being awaited is completed.</summary>
|
||||
<remarks>This property is intended for compiler user rather than use directly in code.</remarks>
|
||||
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
|
||||
</member>
|
||||
<member name="T:Microsoft.Runtime.CompilerServices.YieldAwaitable">
|
||||
<summary>Provides an awaitable context for switching into a target environment.</summary>
|
||||
<remarks>This type is intended for compiler use only.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.YieldAwaitable.GetAwaiter">
|
||||
<summary>Gets an awaiter for this <see cref="T:Microsoft.Runtime.CompilerServices.YieldAwaitable"/>.</summary>
|
||||
<returns>An awaiter for this awaitable.</returns>
|
||||
<remarks>This method is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="T:Microsoft.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter">
|
||||
<summary>Provides an awaiter that switches into a target environment.</summary>
|
||||
<remarks>This type is intended for compiler use only.</remarks>
|
||||
</member>
|
||||
<member name="F:Microsoft.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.s_completed">
|
||||
<summary>A completed task.</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.OnCompleted(System.Action)">
|
||||
<summary>Posts the <paramref name="continuation"/> back to the current context.</summary>
|
||||
<param name="continuation">The action to invoke asynchronously.</param>
|
||||
<exception cref="T:System.InvalidOperationException">The awaiter was not properly initialized.</exception>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.UnsafeOnCompleted(System.Action)">
|
||||
<summary>Posts the <paramref name="continuation"/> back to the current context.</summary>
|
||||
<param name="continuation">The action to invoke asynchronously.</param>
|
||||
<exception cref="T:System.InvalidOperationException">The awaiter was not properly initialized.</exception>
|
||||
</member>
|
||||
<member name="M:Microsoft.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.GetResult">
|
||||
<summary>Ends the await operation.</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.IsCompleted">
|
||||
<summary>Gets whether a yield is not required.</summary>
|
||||
<remarks>This property is intended for compiler user rather than use directly in code.</remarks>
|
||||
</member>
|
||||
<member name="T:System.Threading.Tasks.TaskEx">
|
||||
<summary>Provides methods for creating and manipulating tasks.</summary>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Run(System.Action)">
|
||||
<summary>Creates a task that runs the specified action.</summary>
|
||||
<param name="action">The action to execute asynchronously.</param>
|
||||
<returns>A task that represents the completion of the action.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="action"/> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Run(System.Action,System.Threading.CancellationToken)">
|
||||
<summary>Creates a task that runs the specified action.</summary>
|
||||
<param name="action">The action to execute.</param>
|
||||
<param name="cancellationToken">The CancellationToken to use to request cancellation of this task.</param>
|
||||
<returns>A task that represents the completion of the action.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="action"/> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Run``1(System.Func{``0})">
|
||||
<summary>Creates a task that runs the specified function.</summary>
|
||||
<param name="function">The function to execute asynchronously.</param>
|
||||
<returns>A task that represents the completion of the action.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="function"/> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Run``1(System.Func{``0},System.Threading.CancellationToken)">
|
||||
<summary>Creates a task that runs the specified function.</summary>
|
||||
<param name="function">The action to execute.</param>
|
||||
<param name="cancellationToken">The CancellationToken to use to cancel the task.</param>
|
||||
<returns>A task that represents the completion of the action.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="function"/> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Run(System.Func{System.Threading.Tasks.Task})">
|
||||
<summary>Creates a task that runs the specified function.</summary>
|
||||
<param name="function">The action to execute asynchronously.</param>
|
||||
<returns>A task that represents the completion of the action.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="function"/> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Run(System.Func{System.Threading.Tasks.Task},System.Threading.CancellationToken)">
|
||||
<summary>Creates a task that runs the specified function.</summary>
|
||||
<param name="function">The function to execute.</param>
|
||||
<param name="cancellationToken">The CancellationToken to use to request cancellation of this task.</param>
|
||||
<returns>A task that represents the completion of the function.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="function"/> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Run``1(System.Func{System.Threading.Tasks.Task{``0}})">
|
||||
<summary>Creates a task that runs the specified function.</summary>
|
||||
<param name="function">The function to execute asynchronously.</param>
|
||||
<returns>A task that represents the completion of the action.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="function"/> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Run``1(System.Func{System.Threading.Tasks.Task{``0}},System.Threading.CancellationToken)">
|
||||
<summary>Creates a task that runs the specified function.</summary>
|
||||
<param name="function">The action to execute.</param>
|
||||
<param name="cancellationToken">The CancellationToken to use to cancel the task.</param>
|
||||
<returns>A task that represents the completion of the action.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="function"/> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Delay(System.Int32)">
|
||||
<summary>Starts a Task that will complete after the specified due time.</summary>
|
||||
<param name="dueTime">The delay in milliseconds before the returned task completes.</param>
|
||||
<returns>The timed Task.</returns>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException">
|
||||
The <paramref name="dueTime"/> argument must be non-negative or -1 and less than or equal to Int32.MaxValue.
|
||||
</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Delay(System.TimeSpan)">
|
||||
<summary>Starts a Task that will complete after the specified due time.</summary>
|
||||
<param name="dueTime">The delay before the returned task completes.</param>
|
||||
<returns>The timed Task.</returns>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException">
|
||||
The <paramref name="dueTime"/> argument must be non-negative or -1 and less than or equal to Int32.MaxValue.
|
||||
</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Delay(System.TimeSpan,System.Threading.CancellationToken)">
|
||||
<summary>Starts a Task that will complete after the specified due time.</summary>
|
||||
<param name="dueTime">The delay before the returned task completes.</param>
|
||||
<param name="cancellationToken">A CancellationToken that may be used to cancel the task before the due time occurs.</param>
|
||||
<returns>The timed Task.</returns>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException">
|
||||
The <paramref name="dueTime"/> argument must be non-negative or -1 and less than or equal to Int32.MaxValue.
|
||||
</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Delay(System.Int32,System.Threading.CancellationToken)">
|
||||
<summary>Starts a Task that will complete after the specified due time.</summary>
|
||||
<param name="dueTime">The delay in milliseconds before the returned task completes.</param>
|
||||
<param name="cancellationToken">A CancellationToken that may be used to cancel the task before the due time occurs.</param>
|
||||
<returns>The timed Task.</returns>
|
||||
<exception cref="T:System.ArgumentOutOfRangeException">
|
||||
The <paramref name="dueTime"/> argument must be non-negative or -1 and less than or equal to Int32.MaxValue.
|
||||
</exception>
|
||||
</member>
|
||||
<member name="F:System.Threading.Tasks.TaskEx.s_preCompletedTask">
|
||||
<summary>An already completed task.</summary>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAll(System.Threading.Tasks.Task[])">
|
||||
<summary>Creates a Task that will complete only when all of the provided collection of Tasks has completed.</summary>
|
||||
<param name="tasks">The Tasks to monitor for completion.</param>
|
||||
<returns>A Task that represents the completion of all of the provided tasks.</returns>
|
||||
<remarks>
|
||||
If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information
|
||||
about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned
|
||||
Task will also be canceled.
|
||||
</remarks>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAll``1(System.Threading.Tasks.Task{``0}[])">
|
||||
<summary>Creates a Task that will complete only when all of the provided collection of Tasks has completed.</summary>
|
||||
<param name="tasks">The Tasks to monitor for completion.</param>
|
||||
<returns>A Task that represents the completion of all of the provided tasks.</returns>
|
||||
<remarks>
|
||||
If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information
|
||||
about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned
|
||||
Task will also be canceled.
|
||||
</remarks>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAll(System.Collections.Generic.IEnumerable{System.Threading.Tasks.Task})">
|
||||
<summary>Creates a Task that will complete only when all of the provided collection of Tasks has completed.</summary>
|
||||
<param name="tasks">The Tasks to monitor for completion.</param>
|
||||
<returns>A Task that represents the completion of all of the provided tasks.</returns>
|
||||
<remarks>
|
||||
If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information
|
||||
about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned
|
||||
Task will also be canceled.
|
||||
</remarks>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAll``1(System.Collections.Generic.IEnumerable{System.Threading.Tasks.Task{``0}})">
|
||||
<summary>Creates a Task that will complete only when all of the provided collection of Tasks has completed.</summary>
|
||||
<param name="tasks">The Tasks to monitor for completion.</param>
|
||||
<returns>A Task that represents the completion of all of the provided tasks.</returns>
|
||||
<remarks>
|
||||
If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information
|
||||
about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned
|
||||
Task will also be canceled.
|
||||
</remarks>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAllCore``1(System.Collections.Generic.IEnumerable{System.Threading.Tasks.Task},System.Action{System.Threading.Tasks.Task[],System.Threading.Tasks.TaskCompletionSource{``0}})">
|
||||
<summary>Creates a Task that will complete only when all of the provided collection of Tasks has completed.</summary>
|
||||
<param name="tasks">The Tasks to monitor for completion.</param>
|
||||
<param name="setResultAction">
|
||||
A callback invoked when all of the tasks complete successfully in the RanToCompletion state.
|
||||
This callback is responsible for storing the results into the TaskCompletionSource.
|
||||
</param>
|
||||
<returns>A Task that represents the completion of all of the provided tasks.</returns>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAny(System.Threading.Tasks.Task[])">
|
||||
<summary>Creates a Task that will complete when any of the tasks in the provided collection completes.</summary>
|
||||
<param name="tasks">The Tasks to be monitored.</param>
|
||||
<returns>
|
||||
A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result.
|
||||
</returns>
|
||||
<remarks>Any Tasks that fault will need to have their exceptions observed elsewhere.</remarks>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAny(System.Collections.Generic.IEnumerable{System.Threading.Tasks.Task})">
|
||||
<summary>Creates a Task that will complete when any of the tasks in the provided collection completes.</summary>
|
||||
<param name="tasks">The Tasks to be monitored.</param>
|
||||
<returns>
|
||||
A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result.
|
||||
</returns>
|
||||
<remarks>Any Tasks that fault will need to have their exceptions observed elsewhere.</remarks>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAny``1(System.Threading.Tasks.Task{``0}[])">
|
||||
<summary>Creates a Task that will complete when any of the tasks in the provided collection completes.</summary>
|
||||
<param name="tasks">The Tasks to be monitored.</param>
|
||||
<returns>
|
||||
A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result.
|
||||
</returns>
|
||||
<remarks>Any Tasks that fault will need to have their exceptions observed elsewhere.</remarks>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.WhenAny``1(System.Collections.Generic.IEnumerable{System.Threading.Tasks.Task{``0}})">
|
||||
<summary>Creates a Task that will complete when any of the tasks in the provided collection completes.</summary>
|
||||
<param name="tasks">The Tasks to be monitored.</param>
|
||||
<returns>
|
||||
A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result.
|
||||
</returns>
|
||||
<remarks>Any Tasks that fault will need to have their exceptions observed elsewhere.</remarks>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks"/> argument is null.</exception>
|
||||
<exception cref="T:System.ArgumentException">The <paramref name="tasks"/> argument contains a null reference.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.FromResult``1(``0)">
|
||||
<summary>Creates an already completed <see cref="T:System.Threading.Tasks.Task`1"/> from the specified result.</summary>
|
||||
<param name="result">The result from which to create the completed task.</param>
|
||||
<returns>The completed task.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.Yield">
|
||||
<summary>Creates an awaitable that asynchronously yields back to the current context when awaited.</summary>
|
||||
<returns>
|
||||
A context that, when awaited, will asynchronously transition back into the current context.
|
||||
If SynchronizationContext.Current is non-null, that is treated as the current context.
|
||||
Otherwise, TaskScheduler.Current is treated as the current context.
|
||||
</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskEx.AddPotentiallyUnwrappedExceptions(System.Collections.Generic.List{System.Exception}@,System.Exception)">
|
||||
<summary>Adds the target exception to the list, initializing the list if it's null.</summary>
|
||||
<param name="targetList">The list to which to add the exception and initialize if the list is null.</param>
|
||||
<param name="exception">The exception to add, and unwrap if it's an aggregate.</param>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.FromCancellation(System.Threading.CancellationToken)">
|
||||
<summary>Returns a canceled task.</summary>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<returns>The canceled task.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.FromCancellation``1(System.Threading.CancellationToken)">
|
||||
<summary>Returns a canceled task.</summary>
|
||||
<typeparam name="TResult">Specifies the type of the result.</typeparam>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<returns>The canceled task.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.TaskServices.HandleEapCompletion``1(System.Threading.Tasks.TaskCompletionSource{``0},System.Boolean,System.ComponentModel.AsyncCompletedEventArgs,System.Func{``0},System.Action)">
|
||||
<summary>
|
||||
Completes the Task if the user state matches the TaskCompletionSource.
|
||||
</summary>
|
||||
<typeparam name="T">Specifies the type of data returned by the Task.</typeparam>
|
||||
<param name="tcs">The TaskCompletionSource.</param>
|
||||
<param name="e">The completion event arguments.</param>
|
||||
<param name="requireMatch">Whether we require the tcs to match the e.UserState.</param>
|
||||
<param name="getResult">A function that gets the result with which to complete the task.</param>
|
||||
<param name="unregisterHandler">An action used to unregister work when the operaiton completes.</param>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
BIN
WindowsFormsApplication2/bin/Debug/Newtonsoft.Json.dll
Normal file
BIN
WindowsFormsApplication2/bin/Debug/Newtonsoft.Json.dll
Normal file
Binary file not shown.
9741
WindowsFormsApplication2/bin/Debug/Newtonsoft.Json.xml
Normal file
9741
WindowsFormsApplication2/bin/Debug/Newtonsoft.Json.xml
Normal file
File diff suppressed because it is too large
Load diff
BIN
WindowsFormsApplication2/bin/Debug/System.IO.dll
Normal file
BIN
WindowsFormsApplication2/bin/Debug/System.IO.dll
Normal file
Binary file not shown.
8
WindowsFormsApplication2/bin/Debug/System.IO.xml
Normal file
8
WindowsFormsApplication2/bin/Debug/System.IO.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>System.IO</name>
|
||||
</assembly>
|
||||
<members>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>System.Net.Http.Extensions</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Net.Http.HttpClientHandlerExtensions">
|
||||
<summary>
|
||||
Extension methods for <see cref="T:System.Net.Http.HttpClientHandler"/> which expose differences in platform specific capabilities.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Net.Http.HttpClientHandlerExtensions.SupportsAllowAutoRedirect(System.Net.Http.HttpClientHandler)">
|
||||
<summary>
|
||||
Gets a value that indicates if <see cref="P:System.Net.Http.HttpClientHandler.AllowAutoRedirect">HttpClientHandler.AllowAutoRedirect</see> is supported by the handler.
|
||||
When this property is true and <see cref="P:System.Net.Http.HttpClientHandler.SupportsRedirectConfiguration">HttpClientHandler.SupportsRedirectConfiguration</see> is false, setting <see cref="P:System.Net.Http.HttpClientHandler.AllowAutoRedirect">HttpClientHandler.AllowAutoRedirect</see> to true will cause the system default to be used for <see cref="P:System.Net.Http.HttpClientHandler.MaximumAutomaticRedirections">HttpClientHandler.MaximumAutomaticRedirections</see>.
|
||||
</summary>
|
||||
<param name="handler">The <see cref="T:System.Net.Http.HttpClientHandler"/> to check.</param>
|
||||
<returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports configuration settings for the <see cref="P:System.Net.Http.HttpClientHandler.AllowAutoRedirect" /> property; otherwise false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Net.Http.HttpClientHandlerExtensions.SupportsPreAuthenticate(System.Net.Http.HttpClientHandler)">
|
||||
<summary>
|
||||
Gets a value that indicates if <see cref="P:System.Net.Http.HttpClientHandler.PreAuthenticate" /> is supported by the handler.
|
||||
</summary>
|
||||
<param name="handler">The <see cref="T:System.Net.Http.HttpClientHandler"/> to check.</param>
|
||||
<returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports configuration settings for the <see cref="P:System.Net.Http.HttpClientHandler.PreAuthenticate" /> property; otherwise false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Net.Http.HttpClientHandlerExtensions.SupportsProtocolVersion(System.Net.Http.HttpClientHandler)">
|
||||
<summary>
|
||||
Gets a value that indicates if <see cref="P:System.Net.Http.HttpClientHandler.ProtocolVersion" />, <see cref="P:System.Net.Http.HttpRequestMessage.ProtocolVersion">HttpRequestMessage.ProtocolVersion</see>, and <see cref="P:System.Net.Http.HttpResponseMessage.ProtocolVersion">HttpResponseMessage.ProtocolVersion</see> are supported by the handler.
|
||||
</summary>
|
||||
<param name="handler">The <see cref="T:System.Net.Http.HttpClientHandler"/> to check.</param>
|
||||
<returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports configuration settings for the <see cref="P:System.Net.Http.HttpClientHandler.ProtocolVersion" />, <see cref="P:System.Net.Http.HttpRequestMessage.ProtocolVersion">HttpRequestMessage.ProtocolVersion</see>, and <see cref="P:System.Net.Http.HttpResponseMessage.ProtocolVersion">HttpResponseMessage.ProtocolVersion</see> properties; otherwise false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Net.Http.HttpClientHandlerExtensions.SupportsTransferEncodingChunked(System.Net.Http.HttpClientHandler)">
|
||||
<summary>
|
||||
Gets a value that indicates if <see cref="P:System.Net.Http.HttpRequestMessage.Headers">HttpRequestMessage.Headers</see> with <see cref="P:System.Net.Http.HttpRequestHeaders.TransferEncodingChunked"/> or <see cref="P:System.Net.Http.HttpRequestHeaders.TransferEncoding"/> header value of 'chunked' is supported by the handler.
|
||||
</summary>
|
||||
<param name="handler">The <see cref="T:System.Net.Http.HttpClientHandler"/> to check.</param>
|
||||
<returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports setting <see cref="P:System.Net.Http.HttpRequestMessage.Headers">HttpRequestMessage.Headers</see> with <see cref="P:System.Net.Http.HttpRequestHeaders.TransferEncodingChunked"/> or <see cref="P:System.Net.Http.HttpRequestHeaders.TransferEncoding"/> header value of 'chunked'; otherwise false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Net.Http.HttpClientHandlerExtensions.SupportsUseProxy(System.Net.Http.HttpClientHandler)">
|
||||
<summary>
|
||||
Gets a value that indicates if <see cref="P:System.Net.Http.HttpClientHandler.UseProxy" /> is supported by the handler.
|
||||
When this property is true and <see cref="P:System.Net.Http.HttpClientHandler.SupportsProxy">HttpClientHandler.SupportsProxy</see> is false, setting <see cref="P:System.Net.Http.HttpClientHandler.UseProxy">HttpClientHandler.UseProxy</see> to true will cause the system default to be used for <see cref="P:System.Net.Http.HttpClientHandler.Proxy">HttpClientHandler.Proxy</see>.
|
||||
</summary>
|
||||
<param name="handler">The <see cref="T:System.Net.Http.HttpClientHandler"/> to check.</param>
|
||||
<returns>Returns <see cref="T:System.Boolean" />.true if the if the handler supports configuration settings for the <see cref="P:System.Net.Http.HttpClientHandler.UseProxy" /> property; otherwise false.</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>System.Net.Http.Primitives</name>
|
||||
</assembly>
|
||||
<members>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>System.Net.Http.WebRequest</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Net.Http.RtcRequestFactory"></member>
|
||||
<member name="M:System.Net.Http.RtcRequestFactory.Create(System.Net.Http.HttpMethod,System.Uri)"></member>
|
||||
<member name="T:System.Net.Http.WebRequestHandler">
|
||||
<summary>Implements a transport handler using <see cref="T:System.Net.HttpWebRequest" /> instances to send HTTP requests to servers.</summary>
|
||||
</member>
|
||||
<member name="M:System.Net.Http.WebRequestHandler.#ctor">
|
||||
<summary>Initializes a new instance of the <see cref="T:System.Net.Http.WebRequestHandler" /> class.</summary>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.AllowPipelining">
|
||||
<summary> Gets or sets a value that indicates whether to pipeline the request to the Internet resource.</summary>
|
||||
<returns>Returns <see cref="T:System.Boolean" />.true if the request should be pipelined; otherwise, false. The default is true. </returns>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.AuthenticationLevel">
|
||||
<summary>Gets or sets a value indicating the level of authentication and impersonation used for this request.</summary>
|
||||
<returns>Returns <see cref="T:System.Net.Security.AuthenticationLevel" />.A bitwise combination of the <see cref="T:System.Net.Security.AuthenticationLevel" /> values. The default value is <see cref="F:System.Net.Security.AuthenticationLevel.MutualAuthRequested" />.</returns>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.CachePolicy">
|
||||
<summary>Gets or sets the cache policy for this request.</summary>
|
||||
<returns>Returns <see cref="T:System.Net.Cache.RequestCachePolicy" />.A <see cref="T:System.Net.Cache.RequestCachePolicy" /> object that defines a cache policy. The default is <see cref="P:System.Net.WebRequest.DefaultCachePolicy" />.</returns>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.ClientCertificates">
|
||||
<summary>Gets or sets the collection of security certificates that are associated with this request.</summary>
|
||||
<returns>Returns <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.The collection of security certificates associated with this request.</returns>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.ContinueTimeout">
|
||||
<summary>Gets or sets the amount of time, in milliseconds, the application will wait for 100-continue from the server before uploading data.</summary>
|
||||
<returns>Returns <see cref="T:System.TimeSpan" />.The amount of time, in milliseconds, the application will wait for 100-continue from the server before uploading data. The default value is 350 milliseconds.</returns>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.ImpersonationLevel">
|
||||
<summary>Gets or sets the impersonation level for the current request.</summary>
|
||||
<returns>Returns <see cref="T:System.Security.Principal.TokenImpersonationLevel" />.The impersonation level for the request. The default is <see cref="F:System.Security.Principal.TokenImpersonationLevel.Delegation" />.</returns>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.MaxResponseHeadersLength">
|
||||
<summary>Gets or sets the maximum allowed length of the response headers.</summary>
|
||||
<returns>Returns <see cref="T:System.Int32" />.The length, in kilobytes (1024 bytes), of the response headers.</returns>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.ReadWriteTimeout">
|
||||
<summary>Gets or sets a time-out in milliseconds when writing a request to or reading a response from a server.</summary>
|
||||
<returns>Returns <see cref="T:System.Int32" />.The number of milliseconds before the writing or reading times out. The default value is 300,000 milliseconds (5 minutes). </returns>
|
||||
</member>
|
||||
<member name="P:System.Net.Http.WebRequestHandler.UnsafeAuthenticatedConnectionSharing">
|
||||
<summary>Gets or sets a value that indicates whether to allow high-speed NTLM-authenticated connection sharing.</summary>
|
||||
<returns>Returns <see cref="T:System.Boolean" />.true to keep the authenticated connection open; otherwise, false.</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
BIN
WindowsFormsApplication2/bin/Debug/System.Net.Http.dll
Normal file
BIN
WindowsFormsApplication2/bin/Debug/System.Net.Http.dll
Normal file
Binary file not shown.
1581
WindowsFormsApplication2/bin/Debug/System.Net.Http.xml
Normal file
1581
WindowsFormsApplication2/bin/Debug/System.Net.Http.xml
Normal file
File diff suppressed because it is too large
Load diff
BIN
WindowsFormsApplication2/bin/Debug/System.Runtime.dll
Normal file
BIN
WindowsFormsApplication2/bin/Debug/System.Runtime.dll
Normal file
Binary file not shown.
56
WindowsFormsApplication2/bin/Debug/System.Runtime.xml
Normal file
56
WindowsFormsApplication2/bin/Debug/System.Runtime.xml
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>System.Runtime</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.IProgress`1">
|
||||
<summary>Defines a provider for progress updates.</summary>
|
||||
<typeparam name="T">The type of progress update value.</typeparam>
|
||||
</member>
|
||||
<member name="M:System.IProgress`1.Report(`0)">
|
||||
<summary>Reports a progress update.</summary>
|
||||
<param name="value">The value of the updated progress.</param>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncStateMachineAttribute">
|
||||
<summary>Identities the async state machine type for this method.</summary>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.StateMachineAttribute">
|
||||
<summary>Identities the state machine type for this method.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.StateMachineAttribute.#ctor(System.Type)">
|
||||
<summary>Initializes the attribute.</summary>
|
||||
<param name="stateMachineType">The type that implements the state machine.</param>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.StateMachineAttribute.StateMachineType">
|
||||
<summary>Gets the type that implements the state machine.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncStateMachineAttribute.#ctor(System.Type)">
|
||||
<summary>Initializes the attribute.</summary>
|
||||
<param name="stateMachineType">The type that implements the state machine.</param>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.CallerMemberNameAttribute">
|
||||
<summary>
|
||||
Allows you to obtain the method or property name of the caller to the method.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.CallerLineNumberAttribute">
|
||||
<summary>
|
||||
Allows you to obtain the line number in the source file at which the method is called.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.CallerFilePathAttribute">
|
||||
<summary>
|
||||
Allows you to obtain the full path of the source file that contains the caller.
|
||||
This is the file path at the time of compile.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.IteratorStateMachineAttribute">
|
||||
<summary>Identities the iterator state machine type for this method.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.IteratorStateMachineAttribute.#ctor(System.Type)">
|
||||
<summary>Initializes the attribute.</summary>
|
||||
<param name="stateMachineType">The type that implements the state machine.</param>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
BIN
WindowsFormsApplication2/bin/Debug/System.Threading.Tasks.dll
Normal file
BIN
WindowsFormsApplication2/bin/Debug/System.Threading.Tasks.dll
Normal file
Binary file not shown.
475
WindowsFormsApplication2/bin/Debug/System.Threading.Tasks.xml
Normal file
475
WindowsFormsApplication2/bin/Debug/System.Threading.Tasks.xml
Normal file
|
@ -0,0 +1,475 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>System.Threading.Tasks</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncMethodBuilderCore">
|
||||
<summary>Holds state related to the builder's IAsyncStateMachine.</summary>
|
||||
<remarks>This is a mutable struct. Be very delicate with it.</remarks>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodBuilderCore.m_stateMachine">
|
||||
<summary>A reference to the heap-allocated state machine object associated with this builder.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start``1(``0@)">
|
||||
<summary>Initiates the builder's execution with the associated state machine.</summary>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="stateMachine">The state machine instance, passed by reference.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
|
||||
<summary>Associates the builder with the state machine it represents.</summary>
|
||||
<param name="stateMachine">The heap-allocated state machine object.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The builder is incorrectly initialized.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.GetCompletionAction``2(``0@,``1@)">
|
||||
<summary>
|
||||
Gets the Action to use with an awaiter's OnCompleted or UnsafeOnCompleted method.
|
||||
On first invocation, the supplied state machine will be boxed.
|
||||
</summary>
|
||||
<typeparam name="TMethodBuilder">Specifies the type of the method builder used.</typeparam>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine used.</typeparam>
|
||||
<param name="builder">The builder.</param>
|
||||
<param name="stateMachine">The state machine.</param>
|
||||
<returns>An Action to provide to the awaiter.</returns>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner">
|
||||
<summary>Provides the ability to invoke a state machine's MoveNext method under a supplied ExecutionContext.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.m_context">
|
||||
<summary>The context with which to run MoveNext.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.m_stateMachine">
|
||||
<summary>The state machine whose MoveNext method should be invoked.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.#ctor(System.ExecutionContextLightup)">
|
||||
<summary>Initializes the runner.</summary>
|
||||
<param name="context">The context with which to run MoveNext.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run">
|
||||
<summary>Invokes MoveNext under the provided context.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.s_invokeMoveNext">
|
||||
<summary>Cached delegate used with ExecutionContext.Run.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.InvokeMoveNext(System.Object)">
|
||||
<summary>Invokes the MoveNext method on the supplied IAsyncStateMachine.</summary>
|
||||
<param name="stateMachine">The IAsyncStateMachine machine instance.</param>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncMethodTaskCache`1">
|
||||
<summary>Provides a base class used to cache tasks of a specific return type.</summary>
|
||||
<typeparam name="TResult">Specifies the type of results the cached tasks return.</typeparam>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.Singleton">
|
||||
<summary>
|
||||
A singleton cache for this result type.
|
||||
This may be null if there are no cached tasks for this TResult.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.CreateCompleted(`0)">
|
||||
<summary>Creates a non-disposable task.</summary>
|
||||
<param name="result">The result for the task.</param>
|
||||
<returns>The cacheable task.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.CreateCache">
|
||||
<summary>Creates a cache.</summary>
|
||||
<returns>A task cache for this result type.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.FromResult(`0)">
|
||||
<summary>Gets a cached task if one exists.</summary>
|
||||
<param name="result">The result for which we want a cached task.</param>
|
||||
<returns>A cached task if one exists; otherwise, null.</returns>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodBooleanTaskCache">
|
||||
<summary>Provides a cache for Boolean tasks.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodBooleanTaskCache.m_true">
|
||||
<summary>A true task.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodBooleanTaskCache.m_false">
|
||||
<summary>A false task.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodBooleanTaskCache.FromResult(System.Boolean)">
|
||||
<summary>Gets a cached task for the Boolean result.</summary>
|
||||
<param name="result">true or false</param>
|
||||
<returns>A cached task for the Boolean result.</returns>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache">
|
||||
<summary>Provides a cache for zero Int32 tasks.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.INCLUSIVE_INT32_MIN">
|
||||
<summary>The minimum value, inclusive, for which we want a cached task.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.EXCLUSIVE_INT32_MAX">
|
||||
<summary>The maximum value, exclusive, for which we want a cached task.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.Int32Tasks">
|
||||
<summary>The cache of Task{Int32}.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.CreateInt32Tasks">
|
||||
<summary>Creates an array of cached tasks for the values in the range [INCLUSIVE_MIN,EXCLUSIVE_MAX).</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodTaskCache`1.AsyncMethodInt32TaskCache.FromResult(System.Int32)">
|
||||
<summary>Gets a cached task for the zero Int32 result.</summary>
|
||||
<param name="result">The integer value</param>
|
||||
<returns>A cached task for the Int32 result or null if not cached.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncServices.ThrowAsync(System.Exception,System.Threading.SynchronizationContext)">
|
||||
<summary>Throws the exception on the ThreadPool.</summary>
|
||||
<param name="exception">The exception to propagate.</param>
|
||||
<param name="targetContext">The target context on which to propagate the exception. Null to use the ThreadPool.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncServices.PrepareExceptionForRethrow(System.Exception)">
|
||||
<summary>Copies the exception's stack trace so its stack trace isn't overwritten.</summary>
|
||||
<param name="exc">The exception to prepare.</param>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder">
|
||||
<summary>
|
||||
Provides a builder for asynchronous methods that return <see cref="T:System.Threading.Tasks.Task"/>.
|
||||
This type is intended for compiler use only.
|
||||
</summary>
|
||||
<remarks>
|
||||
AsyncTaskMethodBuilder is a value type, and thus it is copied by value.
|
||||
Prior to being copied, one of its Task, SetResult, or SetException members must be accessed,
|
||||
or else the copies may end up building distinct Task instances.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.IAsyncMethodBuilder">
|
||||
<summary>Represents an asynchronous method builder.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.s_cachedCompleted">
|
||||
<summary>A cached VoidTaskResult task used for builders that complete synchronously.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.m_builder">
|
||||
<summary>The generic builder object to which this non-generic instance delegates.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Create">
|
||||
<summary>Initializes a new <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder"/>.</summary>
|
||||
<returns>The initialized <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder"/>.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start``1(``0@)">
|
||||
<summary>Initiates the builder's execution with the associated state machine.</summary>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="stateMachine">The state machine instance, passed by reference.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
|
||||
<summary>Associates the builder with the state machine it represents.</summary>
|
||||
<param name="stateMachine">The heap-allocated state machine object.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The builder is incorrectly initialized.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.System#Runtime#CompilerServices#IAsyncMethodBuilder#PreBoxInitialization">
|
||||
<summary>Perform any initialization necessary prior to lifting the builder to the heap.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AwaitOnCompleted``2(``0@,``1@)">
|
||||
<summary>
|
||||
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
|
||||
</summary>
|
||||
<typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="awaiter">The awaiter.</param>
|
||||
<param name="stateMachine">The state machine.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AwaitUnsafeOnCompleted``2(``0@,``1@)">
|
||||
<summary>
|
||||
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
|
||||
</summary>
|
||||
<typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="awaiter">The awaiter.</param>
|
||||
<param name="stateMachine">The state machine.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult">
|
||||
<summary>
|
||||
Completes the <see cref="T:System.Threading.Tasks.Task"/> in the
|
||||
<see cref="T:System.Threading.Tasks.TaskStatus">RanToCompletion</see> state.
|
||||
</summary>
|
||||
<exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(System.Exception)">
|
||||
<summary>
|
||||
Completes the <see cref="T:System.Threading.Tasks.Task"/> in the
|
||||
<see cref="T:System.Threading.Tasks.TaskStatus">Faulted</see> state with the specified exception.
|
||||
</summary>
|
||||
<param name="exception">The <see cref="T:System.Exception"/> to use to fault the task.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="exception"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetNotificationForWaitCompletion(System.Boolean)">
|
||||
<summary>
|
||||
Called by the debugger to request notification when the first wait operation
|
||||
(await, Wait, Result, etc.) on this builder's task completes.
|
||||
</summary>
|
||||
<param name="enabled">
|
||||
true to enable notification; false to disable a previously set notification.
|
||||
</param>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Task">
|
||||
<summary>Gets the <see cref="T:System.Threading.Tasks.Task"/> for this builder.</summary>
|
||||
<returns>The <see cref="T:System.Threading.Tasks.Task"/> representing the builder's asynchronous operation.</returns>
|
||||
<exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder.ObjectIdForDebugger">
|
||||
<summary>
|
||||
Gets an object that may be used to uniquely identify this builder to the debugger.
|
||||
</summary>
|
||||
<remarks>
|
||||
This property lazily instantiates the ID in a non-thread-safe manner.
|
||||
It must only be used by the debugger, and only in a single-threaded manner
|
||||
when no other threads are in the middle of accessing this property or this.Task.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1">
|
||||
<summary>
|
||||
Provides a builder for asynchronous methods that return <see cref="T:System.Threading.Tasks.Task`1"/>.
|
||||
This type is intended for compiler use only.
|
||||
</summary>
|
||||
<remarks>
|
||||
AsyncTaskMethodBuilder{TResult} is a value type, and thus it is copied by value.
|
||||
Prior to being copied, one of its Task, SetResult, or SetException members must be accessed,
|
||||
or else the copies may end up building distinct Task instances.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.s_defaultResultTask">
|
||||
<summary>A cached task for default(TResult).</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.m_coreState">
|
||||
<summary>State related to the IAsyncStateMachine.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.m_task">
|
||||
<summary>The lazily-initialized task.</summary>
|
||||
<remarks>Must be named m_task for debugger step-over to work correctly.</remarks>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.m_taskCompletionSource">
|
||||
<summary>The lazily-initialized task completion source.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.#cctor">
|
||||
<summary>Temporary support for disabling crashing if tasks go unobserved.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Create">
|
||||
<summary>Initializes a new <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder"/>.</summary>
|
||||
<returns>The initialized <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder"/>.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start``1(``0@)">
|
||||
<summary>Initiates the builder's execution with the associated state machine.</summary>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="stateMachine">The state machine instance, passed by reference.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
|
||||
<summary>Associates the builder with the state machine it represents.</summary>
|
||||
<param name="stateMachine">The heap-allocated state machine object.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The builder is incorrectly initialized.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.System#Runtime#CompilerServices#IAsyncMethodBuilder#PreBoxInitialization">
|
||||
<summary>Perform any initialization necessary prior to lifting the builder to the heap.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AwaitOnCompleted``2(``0@,``1@)">
|
||||
<summary>
|
||||
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
|
||||
</summary>
|
||||
<typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="awaiter">The awaiter.</param>
|
||||
<param name="stateMachine">The state machine.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AwaitUnsafeOnCompleted``2(``0@,``1@)">
|
||||
<summary>
|
||||
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
|
||||
</summary>
|
||||
<typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="awaiter">The awaiter.</param>
|
||||
<param name="stateMachine">The state machine.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(`0)">
|
||||
<summary>
|
||||
Completes the <see cref="T:System.Threading.Tasks.Task`1"/> in the
|
||||
<see cref="T:System.Threading.Tasks.TaskStatus">RanToCompletion</see> state with the specified result.
|
||||
</summary>
|
||||
<param name="result">The result to use to complete the task.</param>
|
||||
<exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(System.Threading.Tasks.TaskCompletionSource{`0})">
|
||||
<summary>
|
||||
Completes the builder by using either the supplied completed task, or by completing
|
||||
the builder's previously accessed task using default(TResult).
|
||||
</summary>
|
||||
<param name="completedTask">A task already completed with the value default(TResult).</param>
|
||||
<exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(System.Exception)">
|
||||
<summary>
|
||||
Completes the <see cref="T:System.Threading.Tasks.Task`1"/> in the
|
||||
<see cref="T:System.Threading.Tasks.TaskStatus">Faulted</see> state with the specified exception.
|
||||
</summary>
|
||||
<param name="exception">The <see cref="T:System.Exception"/> to use to fault the task.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="exception"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The task has already completed.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetNotificationForWaitCompletion(System.Boolean)">
|
||||
<summary>
|
||||
Called by the debugger to request notification when the first wait operation
|
||||
(await, Wait, Result, etc.) on this builder's task completes.
|
||||
</summary>
|
||||
<param name="enabled">
|
||||
true to enable notification; false to disable a previously set notification.
|
||||
</param>
|
||||
<remarks>
|
||||
This should only be invoked from within an asynchronous method,
|
||||
and only by the debugger.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.GetTaskForResult(`0)">
|
||||
<summary>
|
||||
Gets a task for the specified result. This will either
|
||||
be a cached or new task, never null.
|
||||
</summary>
|
||||
<param name="result">The result for which we need a task.</param>
|
||||
<returns>The completed task containing the result.</returns>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.CompletionSource">
|
||||
<summary>Gets the lazily-initialized TaskCompletionSource.</summary>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Task">
|
||||
<summary>Gets the <see cref="T:System.Threading.Tasks.Task`1"/> for this builder.</summary>
|
||||
<returns>The <see cref="T:System.Threading.Tasks.Task`1"/> representing the builder's asynchronous operation.</returns>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.ObjectIdForDebugger">
|
||||
<summary>
|
||||
Gets an object that may be used to uniquely identify this builder to the debugger.
|
||||
</summary>
|
||||
<remarks>
|
||||
This property lazily instantiates the ID in a non-thread-safe manner.
|
||||
It must only be used by the debugger, and only in a single-threaded manner
|
||||
when no other threads are in the middle of accessing this property or this.Task.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder">
|
||||
<summary>
|
||||
Provides a builder for asynchronous methods that return void.
|
||||
This type is intended for compiler use only.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.m_synchronizationContext">
|
||||
<summary>The synchronization context associated with this operation.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.m_coreState">
|
||||
<summary>State related to the IAsyncStateMachine.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.m_objectIdForDebugger">
|
||||
<summary>An object used by the debugger to uniquely identify this builder. Lazily initialized.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.#cctor">
|
||||
<summary>Temporary support for disabling crashing if tasks go unobserved.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.PreventUnobservedTaskExceptions">
|
||||
<summary>Registers with UnobservedTaskException to suppress exception crashing.</summary>
|
||||
</member>
|
||||
<member name="F:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.s_preventUnobservedTaskExceptionsInvoked">
|
||||
<summary>Non-zero if PreventUnobservedTaskExceptions has already been invoked.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Create">
|
||||
<summary>Initializes a new <see cref="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder"/>.</summary>
|
||||
<returns>The initialized <see cref="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder"/>.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.#ctor(System.Threading.SynchronizationContext)">
|
||||
<summary>Initializes the <see cref="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder"/>.</summary>
|
||||
<param name="synchronizationContext">The synchronizationContext associated with this operation. This may be null.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start``1(``0@)">
|
||||
<summary>Initiates the builder's execution with the associated state machine.</summary>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="stateMachine">The state machine instance, passed by reference.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
|
||||
<summary>Associates the builder with the state machine it represents.</summary>
|
||||
<param name="stateMachine">The heap-allocated state machine object.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The builder is incorrectly initialized.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.System#Runtime#CompilerServices#IAsyncMethodBuilder#PreBoxInitialization">
|
||||
<summary>Perform any initialization necessary prior to lifting the builder to the heap.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AwaitOnCompleted``2(``0@,``1@)">
|
||||
<summary>
|
||||
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
|
||||
</summary>
|
||||
<typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="awaiter">The awaiter.</param>
|
||||
<param name="stateMachine">The state machine.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AwaitUnsafeOnCompleted``2(``0@,``1@)">
|
||||
<summary>
|
||||
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
|
||||
</summary>
|
||||
<typeparam name="TAwaiter">Specifies the type of the awaiter.</typeparam>
|
||||
<typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
|
||||
<param name="awaiter">The awaiter.</param>
|
||||
<param name="stateMachine">The state machine.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult">
|
||||
<summary>Completes the method builder successfully.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)">
|
||||
<summary>Faults the method builder with an exception.</summary>
|
||||
<param name="exception">The exception that is the cause of this fault.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="exception"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.NotifySynchronizationContextOfCompletion">
|
||||
<summary>Notifies the current synchronization context that the operation completed.</summary>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.AsyncVoidMethodBuilder.ObjectIdForDebugger">
|
||||
<summary>
|
||||
Gets an object that may be used to uniquely identify this builder to the debugger.
|
||||
</summary>
|
||||
<remarks>
|
||||
This property lazily instantiates the ID in a non-thread-safe manner.
|
||||
It must only be used by the debugger and only in a single-threaded manner.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.IAsyncStateMachine">
|
||||
<summary>
|
||||
Represents state machines generated for asynchronous methods.
|
||||
This type is intended for compiler use only.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext">
|
||||
<summary>Moves the state machine to its next state.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.IAsyncStateMachine.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
|
||||
<summary>Configures the state machine with a heap-allocated replica.</summary>
|
||||
<param name="stateMachine">The heap-allocated replica.</param>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.ICriticalNotifyCompletion">
|
||||
<summary>
|
||||
Represents an awaiter used to schedule continuations when an await operation completes.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.INotifyCompletion">
|
||||
<summary>
|
||||
Represents an operation that will schedule continuations when the operation completes.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.INotifyCompletion.OnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation action to be invoked when the instance completes.</summary>
|
||||
<param name="continuation">The action to invoke when the operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.ICriticalNotifyCompletion.UnsafeOnCompleted(System.Action)">
|
||||
<summary>Schedules the continuation action to be invoked when the instance completes.</summary>
|
||||
<param name="continuation">The action to invoke when the operation completes.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
|
||||
<remarks>Unlike OnCompleted, UnsafeOnCompleted need not propagate ExecutionContext information.</remarks>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.VoidTaskResult">
|
||||
<summary>Used with Task(of void)</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
Binary file not shown.
|
@ -1,3 +1,16 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
|
|
BIN
WindowsFormsApplication2/bin/Debug/discord_game_sdk.dll
Normal file
BIN
WindowsFormsApplication2/bin/Debug/discord_game_sdk.dll
Normal file
Binary file not shown.
BIN
WindowsFormsApplication2/bin/Debug/discord_game_sdk.dll.lib
Normal file
BIN
WindowsFormsApplication2/bin/Debug/discord_game_sdk.dll.lib
Normal file
Binary file not shown.
BIN
WindowsFormsApplication2/discord_game_sdk.dll
Normal file
BIN
WindowsFormsApplication2/discord_game_sdk.dll
Normal file
Binary file not shown.
BIN
WindowsFormsApplication2/discord_game_sdk.dll.lib
Normal file
BIN
WindowsFormsApplication2/discord_game_sdk.dll.lib
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
|
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")]
|
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Extensions" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.WebRequest" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
39d2709c88a095c384908456f45a2cca8910d004
|
|
@ -1,11 +1,43 @@
|
|||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.AboutBox1.resources
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.Form1.resources
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.ConfigForm.resources
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.Properties.Resources.resources
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPCGUI.csproj.GenerateResource.Cache
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.exe
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe.config
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb
|
||||
c:\users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.pdb
|
||||
C:\Users\random()\documents\visual studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPCGUI.csprojResolveAssemblyReference.cache
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Jellyfin Rich Presence.exe.config
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Jellyfin Rich Presence.exe
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Jellyfin Rich Presence.pdb
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\AsyncBridge.NET40.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Microsoft.Threading.Tasks.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Microsoft.Threading.Tasks.Extensions.Desktop.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Microsoft.Threading.Tasks.Extensions.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Newtonsoft.Json.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.IO.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Net.Http.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Net.Http.Extensions.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Net.Http.Primitives.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Net.Http.WebRequest.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Runtime.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Threading.Tasks.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\AsyncBridge.NET40.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\AsyncBridge.NET40.dll.config
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Microsoft.Threading.Tasks.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Microsoft.Threading.Tasks.Extensions.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Microsoft.Threading.Tasks.Extensions.Desktop.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Newtonsoft.Json.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.IO.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Net.Http.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Net.Http.Extensions.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Net.Http.Primitives.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Net.Http.WebRequest.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Runtime.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\System.Threading.Tasks.xml
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPCGUI.csproj.App.config
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPC.AboutBox1.resources
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPC.Form1.resources
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPC.ConfigForm.resources
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPC.Form3.resources
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPC.Properties.Resources.resources
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPCGUI.csproj.GenerateResource.cache
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPCGUI.csproj.CoreCompileInputs.cache
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPCGUI.csproj.CopyComplete
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\Jellyfin Rich Presence.exe
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\Jellyfin Rich Presence.pdb
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\discord_game_sdk.dll
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\discord_game_sdk.dll.lib
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\JellyfinRPCGUI.csproj.AssemblyReference.cache
|
||||
C:\Users\random()\Documents\Visual Studio 2010\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\MakarovDev.ExpandCollapsePanel.dll
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue