-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c4608a
commit 05fba78
Showing
6 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28307.1758 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicStatus", "DynamicStatus\DynamicStatus.csproj", "{946C7A82-6110-44B8-9C50-8C70069CA65F}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{946C7A82-6110-44B8-9C50-8C70069CA65F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{946C7A82-6110-44B8-9C50-8C70069CA65F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{946C7A82-6110-44B8-9C50-8C70069CA65F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{946C7A82-6110-44B8-9C50-8C70069CA65F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {860AFBF0-E9FA-4EAD-AB9A-FB55B085B3EC} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{946C7A82-6110-44B8-9C50-8C70069CA65F}</ProjectGuid> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>DynamicStatus</RootNamespace> | ||
<AssemblyName>DynamicStatus</AssemblyName> | ||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="DeniedNetLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>bin\Debug\DeniedNetLib.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Threading; | ||
|
||
namespace DynamicStatus | ||
{ | ||
class Program | ||
{ | ||
private static string token; | ||
private static BackgroundWorker worker = new BackgroundWorker(); | ||
|
||
static void Main() | ||
{ | ||
worker.DoWork += worker_DoWork; | ||
worker.WorkerReportsProgress = true; | ||
worker.WorkerSupportsCancellation = true; | ||
worker.RunWorkerCompleted += worker_RunWorkerCompleted; | ||
|
||
Console.WriteLine("Starting Application..."); | ||
Console.WriteLine("Waiting for an authorization token..."); | ||
token = Console.ReadLine(); | ||
worker.RunWorkerAsync(); | ||
Console.ReadKey(); | ||
} | ||
|
||
static void worker_DoWork(object sender, DoWorkEventArgs e) | ||
{ | ||
Random random = new Random(); | ||
int delay = random.Next(30, 60); | ||
Thread.Sleep(delay * 1000); | ||
|
||
Console.WriteLine(Utils.Request(token)); | ||
} | ||
|
||
static void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) | ||
{ | ||
worker.RunWorkerAsync(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// Общие сведения об этой сборке предоставляются следующим набором | ||
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, | ||
// связанные со сборкой. | ||
[assembly: AssemblyTitle("DynamicStatus")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("DynamicStatus")] | ||
[assembly: AssemblyCopyright("Copyright © 2021")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми | ||
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через | ||
// COM, задайте атрибуту ComVisible значение TRUE для этого типа. | ||
[assembly: ComVisible(false)] | ||
|
||
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM | ||
[assembly: Guid("946c7a82-6110-44b8-9c50-8c70069ca65f")] | ||
|
||
// Сведения о версии сборки состоят из следующих четырех значений: | ||
// | ||
// Основной номер версии | ||
// Дополнительный номер версии | ||
// Номер сборки | ||
// Редакция | ||
// | ||
// Можно задать все значения или принять номер сборки и номер редакции по умолчанию. | ||
// используя "*", как показано ниже: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
Binary file not shown.
Binary file not shown.