├── .gitignore ├── IPScanner.sln ├── IPScanner ├── FodyWeavers.xml ├── IPAddressControlLib.dll ├── IPRanges.cs ├── IPScanner.csproj ├── IPScannerForm.Designer.cs ├── IPScannerForm.cs ├── IPScannerForm.resx ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── RangeSelector.Designer.cs ├── RangeSelector.cs ├── RangeSelector.resx ├── ResponseAnalyze.Designer.cs ├── ResponseAnalyze.cs ├── ResponseAnalyze.resx ├── app.config └── packages.config ├── IPScannerLib ├── HiResTimer.cs ├── HttpHelper.cs ├── IPScanResult.cs ├── IPScannerLib.csproj ├── NetworkScanner.cs ├── Properties │ └── AssemblyInfo.cs ├── ScanStatus.cs ├── SmartThreadPool.XML └── SmartThreadPool.dll ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # MSTest test Results 33 | [Tt]est[Rr]esult*/ 34 | [Bb]uild[Ll]og.* 35 | 36 | # NUNIT 37 | *.VisualState.xml 38 | TestResult.xml 39 | 40 | # Build Results of an ATL Project 41 | [Dd]ebugPS/ 42 | [Rr]eleasePS/ 43 | dlldata.c 44 | 45 | # .NET Core 46 | project.lock.json 47 | project.fragment.lock.json 48 | artifacts/ 49 | **/Properties/launchSettings.json 50 | 51 | *_i.c 52 | *_p.c 53 | *_i.h 54 | *.ilk 55 | *.meta 56 | *.obj 57 | *.pch 58 | *.pdb 59 | *.pgc 60 | *.pgd 61 | *.rsp 62 | *.sbr 63 | *.tlb 64 | *.tli 65 | *.tlh 66 | *.tmp 67 | *.tmp_proj 68 | *.log 69 | *.vspscc 70 | *.vssscc 71 | .builds 72 | *.pidb 73 | *.svclog 74 | *.scc 75 | 76 | # Chutzpah Test files 77 | _Chutzpah* 78 | 79 | # Visual C++ cache files 80 | ipch/ 81 | *.aps 82 | *.ncb 83 | *.opendb 84 | *.opensdf 85 | *.sdf 86 | *.cachefile 87 | *.VC.db 88 | *.VC.VC.opendb 89 | 90 | # Visual Studio profiler 91 | *.psess 92 | *.vsp 93 | *.vspx 94 | *.sap 95 | 96 | # TFS 2012 Local Workspace 97 | $tf/ 98 | 99 | # Guidance Automation Toolkit 100 | *.gpState 101 | 102 | # ReSharper is a .NET coding add-in 103 | _ReSharper*/ 104 | *.[Rr]e[Ss]harper 105 | *.DotSettings.user 106 | 107 | # JustCode is a .NET coding add-in 108 | .JustCode 109 | 110 | # TeamCity is a build add-in 111 | _TeamCity* 112 | 113 | # DotCover is a Code Coverage Tool 114 | *.dotCover 115 | 116 | # Visual Studio code coverage results 117 | *.coverage 118 | *.coveragexml 119 | 120 | # NCrunch 121 | _NCrunch_* 122 | .*crunch*.local.xml 123 | nCrunchTemp_* 124 | 125 | # MightyMoose 126 | *.mm.* 127 | AutoTest.Net/ 128 | 129 | # Web workbench (sass) 130 | .sass-cache/ 131 | 132 | # Installshield output folder 133 | [Ee]xpress/ 134 | 135 | # DocProject is a documentation generator add-in 136 | DocProject/buildhelp/ 137 | DocProject/Help/*.HxT 138 | DocProject/Help/*.HxC 139 | DocProject/Help/*.hhc 140 | DocProject/Help/*.hhk 141 | DocProject/Help/*.hhp 142 | DocProject/Help/Html2 143 | DocProject/Help/html 144 | 145 | # Click-Once directory 146 | publish/ 147 | 148 | # Publish Web Output 149 | *.[Pp]ublish.xml 150 | *.azurePubxml 151 | # TODO: Comment the next line if you want to checkin your web deploy settings 152 | # but database connection strings (with potential passwords) will be unencrypted 153 | *.pubxml 154 | *.publishproj 155 | 156 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 157 | # checkin your Azure Web App publish settings, but sensitive information contained 158 | # in these scripts will be unencrypted 159 | PublishScripts/ 160 | 161 | # NuGet Packages 162 | *.nupkg 163 | # The packages folder can be ignored because of Package Restore 164 | **/packages/* 165 | # except build/, which is used as an MSBuild target. 166 | !**/packages/build/ 167 | # Uncomment if necessary however generally it will be regenerated when needed 168 | #!**/packages/repositories.config 169 | # NuGet v3's project.json files produces more ignorable files 170 | *.nuget.props 171 | *.nuget.targets 172 | 173 | # Microsoft Azure Build Output 174 | csx/ 175 | *.build.csdef 176 | 177 | # Microsoft Azure Emulator 178 | ecf/ 179 | rcf/ 180 | 181 | # Windows Store app package directories and files 182 | AppPackages/ 183 | BundleArtifacts/ 184 | Package.StoreAssociation.xml 185 | _pkginfo.txt 186 | 187 | # Visual Studio cache files 188 | # files ending in .cache can be ignored 189 | *.[Cc]ache 190 | # but keep track of directories ending in .cache 191 | !*.[Cc]ache/ 192 | 193 | # Others 194 | ClientBin/ 195 | ~$* 196 | *~ 197 | *.dbmdl 198 | *.dbproj.schemaview 199 | *.jfm 200 | *.pfx 201 | *.publishsettings 202 | orleans.codegen.cs 203 | 204 | # Since there are multiple workflows, uncomment next line to ignore bower_components 205 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 206 | #bower_components/ 207 | 208 | # RIA/Silverlight projects 209 | Generated_Code/ 210 | 211 | # Backup & report files from converting an old project file 212 | # to a newer Visual Studio version. Backup files are not needed, 213 | # because we have git ;-) 214 | _UpgradeReport_Files/ 215 | Backup*/ 216 | UpgradeLog*.XML 217 | UpgradeLog*.htm 218 | 219 | # SQL Server files 220 | *.mdf 221 | *.ldf 222 | *.ndf 223 | 224 | # Business Intelligence projects 225 | *.rdl.data 226 | *.bim.layout 227 | *.bim_*.settings 228 | 229 | # Microsoft Fakes 230 | FakesAssemblies/ 231 | 232 | # GhostDoc plugin setting file 233 | *.GhostDoc.xml 234 | 235 | # Node.js Tools for Visual Studio 236 | .ntvs_analysis.dat 237 | node_modules/ 238 | 239 | # Typescript v1 declaration files 240 | typings/ 241 | 242 | # Visual Studio 6 build log 243 | *.plg 244 | 245 | # Visual Studio 6 workspace options file 246 | *.opt 247 | 248 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 249 | *.vbw 250 | 251 | # Visual Studio LightSwitch build output 252 | **/*.HTMLClient/GeneratedArtifacts 253 | **/*.DesktopClient/GeneratedArtifacts 254 | **/*.DesktopClient/ModelManifest.xml 255 | **/*.Server/GeneratedArtifacts 256 | **/*.Server/ModelManifest.xml 257 | _Pvt_Extensions 258 | 259 | # Paket dependency manager 260 | .paket/paket.exe 261 | paket-files/ 262 | 263 | # FAKE - F# Make 264 | .fake/ 265 | 266 | # JetBrains Rider 267 | .idea/ 268 | *.sln.iml 269 | 270 | # CodeRush 271 | .cr/ 272 | 273 | # Python Tools for Visual Studio (PTVS) 274 | __pycache__/ 275 | *.pyc 276 | 277 | # Cake - Uncomment if you are using it 278 | # tools/** 279 | # !tools/packages.config 280 | 281 | # Telerik's JustMock configuration file 282 | *.jmconfig 283 | 284 | # BizTalk build output 285 | *.btp.cs 286 | *.btm.cs 287 | *.odx.cs 288 | *.xsd.cs 289 | -------------------------------------------------------------------------------- /IPScanner.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26430.6 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IPScanner", "IPScanner\IPScanner.csproj", "{5C07071F-125F-419F-94CF-5E20D98A141A}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IPScannerLib", "IPScannerLib\IPScannerLib.csproj", "{BBA2E4E7-6448-44D5-A141-3E5A8DA1BEDC}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|x86 = Debug|x86 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {5C07071F-125F-419F-94CF-5E20D98A141A}.Debug|x86.ActiveCfg = Debug|x86 17 | {5C07071F-125F-419F-94CF-5E20D98A141A}.Debug|x86.Build.0 = Debug|x86 18 | {5C07071F-125F-419F-94CF-5E20D98A141A}.Release|x86.ActiveCfg = Release|x86 19 | {5C07071F-125F-419F-94CF-5E20D98A141A}.Release|x86.Build.0 = Release|x86 20 | {BBA2E4E7-6448-44D5-A141-3E5A8DA1BEDC}.Debug|x86.ActiveCfg = Debug|x86 21 | {BBA2E4E7-6448-44D5-A141-3E5A8DA1BEDC}.Debug|x86.Build.0 = Debug|x86 22 | {BBA2E4E7-6448-44D5-A141-3E5A8DA1BEDC}.Release|x86.ActiveCfg = Release|x86 23 | {BBA2E4E7-6448-44D5-A141-3E5A8DA1BEDC}.Release|x86.Build.0 = Release|x86 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /IPScanner/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /IPScanner/IPAddressControlLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bp2008/IPScanner/8740b25f491aba6707b2e3983e7264c2a7e4c195/IPScanner/IPAddressControlLib.dll -------------------------------------------------------------------------------- /IPScanner/IPRanges.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.NetworkInformation; 6 | using System.Net.Sockets; 7 | using System.Text; 8 | 9 | namespace IPScanner 10 | { 11 | public static class IPRanges 12 | { 13 | public static List> GetOperationalIPRanges() 14 | { 15 | List> ranges = new List>(); 16 | 17 | foreach (NetworkInterface netInterface in NetworkInterface.GetAllNetworkInterfaces()) 18 | { 19 | if (netInterface.OperationalStatus != OperationalStatus.Up) 20 | continue; 21 | IPInterfaceProperties ipProps = netInterface.GetIPProperties(); 22 | foreach (UnicastIPAddressInformation addr in ipProps.UnicastAddresses) 23 | { 24 | if (addr.Address.AddressFamily == AddressFamily.InterNetwork) 25 | ranges.Add(new Tuple(GetLowestInRange(addr.Address, addr.IPv4Mask), GetHighestInRange(addr.Address, addr.IPv4Mask))); 26 | } 27 | } 28 | return ranges; 29 | } 30 | private static IPAddress GetLowestInRange(IPAddress address, IPAddress mask) 31 | { 32 | byte[] addressBytes = address.GetAddressBytes(); 33 | byte[] maskBytes = mask.GetAddressBytes(); 34 | if (addressBytes.Length != 4 || maskBytes.Length != 4) 35 | return IPAddress.None; 36 | byte[] lowest = new byte[4]; 37 | for (var i = 0; i < 4; i++) 38 | lowest[i] = (byte)(addressBytes[i] & maskBytes[i]); 39 | return new IPAddress(lowest); 40 | } 41 | private static IPAddress GetHighestInRange(IPAddress address, IPAddress mask) 42 | { 43 | byte[] addressBytes = address.GetAddressBytes(); 44 | byte[] maskBytes = mask.GetAddressBytes(); 45 | if (addressBytes.Length != 4 || maskBytes.Length != 4) 46 | return IPAddress.None; 47 | byte[] highest = new byte[4]; 48 | for (var i = 0; i < 4; i++) 49 | highest[i] = (byte)((addressBytes[i] & maskBytes[i]) | ~maskBytes[i]); 50 | return new IPAddress(highest); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /IPScanner/IPScanner.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {5C07071F-125F-419F-94CF-5E20D98A141A} 9 | WinExe 10 | Properties 11 | IPScanner 12 | IPScanner 13 | v4.0 14 | 15 | 16 | 512 17 | 18 | 19 | 20 | 21 | x86 22 | true 23 | full 24 | false 25 | bin\Debug\ 26 | DEBUG;TRACE 27 | prompt 28 | 4 29 | 30 | 31 | x86 32 | pdbonly 33 | true 34 | bin\Release\ 35 | TRACE 36 | prompt 37 | 4 38 | 39 | 40 | 41 | ..\packages\Costura.Fody.1.6.2\lib\portable-net+sl+win+wpa+wp\Costura.dll 42 | False 43 | 44 | 45 | .\IPAddressControlLib.dll 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | Form 62 | 63 | 64 | IPScannerForm.cs 65 | 66 | 67 | 68 | 69 | Form 70 | 71 | 72 | RangeSelector.cs 73 | 74 | 75 | Form 76 | 77 | 78 | ResponseAnalyze.cs 79 | 80 | 81 | IPScannerForm.cs 82 | 83 | 84 | ResXFileCodeGenerator 85 | Resources.Designer.cs 86 | Designer 87 | 88 | 89 | True 90 | Resources.resx 91 | True 92 | 93 | 94 | RangeSelector.cs 95 | 96 | 97 | ResponseAnalyze.cs 98 | 99 | 100 | 101 | 102 | SettingsSingleFileGenerator 103 | Settings.Designer.cs 104 | 105 | 106 | True 107 | Settings.settings 108 | True 109 | 110 | 111 | 112 | 113 | {BBA2E4E7-6448-44D5-A141-3E5A8DA1BEDC} 114 | IPScannerLib 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | mkdir "$(SolutionDir)$(ConfigurationName)" 123 | copy "$(TargetPath)" "$(SolutionDir)$(ConfigurationName)\$(TargetFileName)" 124 | 125 | 126 | 127 | 128 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 129 | 130 | 131 | 132 | 133 | 134 | 141 | -------------------------------------------------------------------------------- /IPScanner/IPScannerForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace IPScanner 2 | { 3 | partial class IPScannerForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.lvIPList = new System.Windows.Forms.ListView(); 32 | this.chIP = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); 33 | this.chPing = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); 34 | this.chHost = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); 35 | this.chRecognized = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); 36 | this.ipFrom = new IPAddressControlLib.IPAddressControl(); 37 | this.label1 = new System.Windows.Forms.Label(); 38 | this.label2 = new System.Windows.Forms.Label(); 39 | this.ipTo = new IPAddressControlLib.IPAddressControl(); 40 | this.btnScan = new System.Windows.Forms.Button(); 41 | this.btnAnalyzeSelected = new System.Windows.Forms.Button(); 42 | this.btnRanges = new System.Windows.Forms.Button(); 43 | this.SuspendLayout(); 44 | // 45 | // lvIPList 46 | // 47 | this.lvIPList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 48 | | System.Windows.Forms.AnchorStyles.Left) 49 | | System.Windows.Forms.AnchorStyles.Right))); 50 | this.lvIPList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { 51 | this.chIP, 52 | this.chPing, 53 | this.chHost, 54 | this.chRecognized}); 55 | this.lvIPList.FullRowSelect = true; 56 | this.lvIPList.Location = new System.Drawing.Point(-1, 33); 57 | this.lvIPList.MultiSelect = false; 58 | this.lvIPList.Name = "lvIPList"; 59 | this.lvIPList.Size = new System.Drawing.Size(626, 230); 60 | this.lvIPList.TabIndex = 0; 61 | this.lvIPList.UseCompatibleStateImageBehavior = false; 62 | this.lvIPList.View = System.Windows.Forms.View.Details; 63 | // 64 | // chIP 65 | // 66 | this.chIP.Text = "IP"; 67 | this.chIP.Width = 93; 68 | // 69 | // chPing 70 | // 71 | this.chPing.Text = "Ping"; 72 | // 73 | // chHost 74 | // 75 | this.chHost.Text = "Host"; 76 | this.chHost.Width = 88; 77 | // 78 | // chRecognized 79 | // 80 | this.chRecognized.Text = "Recognized as"; 81 | this.chRecognized.Width = 119; 82 | // 83 | // ipFrom 84 | // 85 | this.ipFrom.AllowInternalTab = false; 86 | this.ipFrom.AutoHeight = true; 87 | this.ipFrom.BackColor = System.Drawing.SystemColors.Window; 88 | this.ipFrom.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; 89 | this.ipFrom.Cursor = System.Windows.Forms.Cursors.IBeam; 90 | this.ipFrom.Location = new System.Drawing.Point(68, 6); 91 | this.ipFrom.MinimumSize = new System.Drawing.Size(87, 20); 92 | this.ipFrom.Name = "ipFrom"; 93 | this.ipFrom.ReadOnly = false; 94 | this.ipFrom.Size = new System.Drawing.Size(112, 20); 95 | this.ipFrom.TabIndex = 1; 96 | this.ipFrom.Text = "192.168.0.1"; 97 | // 98 | // label1 99 | // 100 | this.label1.AutoSize = true; 101 | this.label1.Location = new System.Drawing.Point(12, 9); 102 | this.label1.Name = "label1"; 103 | this.label1.Size = new System.Drawing.Size(50, 13); 104 | this.label1.TabIndex = 2; 105 | this.label1.Text = "IP range:"; 106 | // 107 | // label2 108 | // 109 | this.label2.AutoSize = true; 110 | this.label2.Location = new System.Drawing.Point(186, 9); 111 | this.label2.Name = "label2"; 112 | this.label2.Size = new System.Drawing.Size(16, 13); 113 | this.label2.TabIndex = 4; 114 | this.label2.Text = "to"; 115 | // 116 | // ipTo 117 | // 118 | this.ipTo.AllowInternalTab = false; 119 | this.ipTo.AutoHeight = true; 120 | this.ipTo.BackColor = System.Drawing.SystemColors.Window; 121 | this.ipTo.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; 122 | this.ipTo.Cursor = System.Windows.Forms.Cursors.IBeam; 123 | this.ipTo.Location = new System.Drawing.Point(208, 6); 124 | this.ipTo.MinimumSize = new System.Drawing.Size(87, 20); 125 | this.ipTo.Name = "ipTo"; 126 | this.ipTo.ReadOnly = false; 127 | this.ipTo.Size = new System.Drawing.Size(112, 20); 128 | this.ipTo.TabIndex = 3; 129 | this.ipTo.Text = "192.168.0.254"; 130 | // 131 | // btnScan 132 | // 133 | this.btnScan.Location = new System.Drawing.Point(326, 3); 134 | this.btnScan.Name = "btnScan"; 135 | this.btnScan.Size = new System.Drawing.Size(75, 23); 136 | this.btnScan.TabIndex = 5; 137 | this.btnScan.Text = "Scan"; 138 | this.btnScan.UseVisualStyleBackColor = true; 139 | this.btnScan.Click += new System.EventHandler(this.btnScan_Click); 140 | // 141 | // btnAnalyzeSelected 142 | // 143 | this.btnAnalyzeSelected.Location = new System.Drawing.Point(486, 4); 144 | this.btnAnalyzeSelected.Name = "btnAnalyzeSelected"; 145 | this.btnAnalyzeSelected.Size = new System.Drawing.Size(126, 23); 146 | this.btnAnalyzeSelected.TabIndex = 6; 147 | this.btnAnalyzeSelected.Text = "Analyze Selected"; 148 | this.btnAnalyzeSelected.UseVisualStyleBackColor = true; 149 | this.btnAnalyzeSelected.Click += new System.EventHandler(this.btnAnalyzeSelected_Click); 150 | // 151 | // btnRanges 152 | // 153 | this.btnRanges.Location = new System.Drawing.Point(407, 3); 154 | this.btnRanges.Name = "btnRanges"; 155 | this.btnRanges.Size = new System.Drawing.Size(73, 23); 156 | this.btnRanges.TabIndex = 7; 157 | this.btnRanges.Text = "[Ranges]"; 158 | this.btnRanges.UseVisualStyleBackColor = true; 159 | this.btnRanges.Click += new System.EventHandler(this.btnRanges_Click); 160 | // 161 | // IPScannerForm 162 | // 163 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 164 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 165 | this.ClientSize = new System.Drawing.Size(624, 262); 166 | this.Controls.Add(this.btnRanges); 167 | this.Controls.Add(this.btnAnalyzeSelected); 168 | this.Controls.Add(this.btnScan); 169 | this.Controls.Add(this.label2); 170 | this.Controls.Add(this.ipTo); 171 | this.Controls.Add(this.label1); 172 | this.Controls.Add(this.ipFrom); 173 | this.Controls.Add(this.lvIPList); 174 | this.Name = "IPScannerForm"; 175 | this.Text = "LAN IP Scanner"; 176 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.IPScannerForm_FormClosing); 177 | this.ResumeLayout(false); 178 | this.PerformLayout(); 179 | 180 | } 181 | 182 | #endregion 183 | 184 | private System.Windows.Forms.ListView lvIPList; 185 | private IPAddressControlLib.IPAddressControl ipFrom; 186 | private System.Windows.Forms.Label label1; 187 | private System.Windows.Forms.Label label2; 188 | private IPAddressControlLib.IPAddressControl ipTo; 189 | private System.Windows.Forms.Button btnScan; 190 | private System.Windows.Forms.ColumnHeader chIP; 191 | private System.Windows.Forms.ColumnHeader chPing; 192 | private System.Windows.Forms.ColumnHeader chHost; 193 | private System.Windows.Forms.ColumnHeader chRecognized; 194 | private System.Windows.Forms.Button btnAnalyzeSelected; 195 | private System.Windows.Forms.Button btnRanges; 196 | } 197 | } 198 | 199 | -------------------------------------------------------------------------------- /IPScanner/IPScannerForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | using System.Net; 10 | using System.Net.Sockets; 11 | 12 | namespace IPScanner 13 | { 14 | public partial class IPScannerForm : Form 15 | { 16 | NetworkScanner scanner = new NetworkScanner(); 17 | Timer timer = new Timer(); 18 | public IPScannerForm() 19 | { 20 | InitializeComponent(); 21 | List> ipRanges = IPRanges.GetOperationalIPRanges(); 22 | if (ipRanges.Count > 0) 23 | { 24 | ipFrom.IPAddress = ipRanges[0].Item1; 25 | ipTo.IPAddress = ipRanges[0].Item2; 26 | } 27 | } 28 | 29 | List results; 30 | private void btnScan_Click(object sender, EventArgs e) 31 | { 32 | timer.Stop(); 33 | lvIPList.Items.Clear(); 34 | results = scanner.BeginScan(ipFrom.IPAddress, ipTo.IPAddress); 35 | timer.Interval = 1000; 36 | timer.Tick += new EventHandler(timer_Tick); 37 | timer.Start(); 38 | } 39 | 40 | void timer_Tick(object sender, EventArgs e) 41 | { 42 | PopulateListView(); 43 | } 44 | 45 | private void PopulateListView() 46 | { 47 | bool itemModified = false; 48 | for (int i = 0; i < results.Count; i++) 49 | { 50 | IPScanResult result = results[i]; 51 | if (result.status == ScanStatus.Complete || result.status == ScanStatus.Partial) 52 | { 53 | string ip = result.ip.ToString(); 54 | ListViewItem[] matchedItems = lvIPList.Items.Find(ip, false); 55 | if (matchedItems.Length > 0) 56 | { 57 | matchedItems[0].Tag = result.response; 58 | matchedItems[0].SubItems[0].Text = result.ip.ToString(); 59 | matchedItems[0].SubItems[1].Text = GetPingTime(result); 60 | matchedItems[0].SubItems[2].Text = result.host; 61 | matchedItems[0].SubItems[3].Text = result.identification; 62 | } 63 | else 64 | { 65 | ListViewItem lvi = new ListViewItem(new string[] { result.ip.ToString(), GetPingTime(result), result.host, result.identification }); 66 | lvi.Name = ip; 67 | lvIPList.Items.Add(lvi); 68 | } 69 | itemModified = true; 70 | } 71 | } 72 | } 73 | 74 | private string GetPingTime(IPScanResult result) 75 | { 76 | if (result.ping > -1) 77 | return result.ping + " ms"; 78 | return "N/A"; 79 | } 80 | 81 | private void IPScannerForm_FormClosing(object sender, FormClosingEventArgs e) 82 | { 83 | timer.Stop(); 84 | scanner.Abort(); 85 | } 86 | 87 | private void btnAnalyzeSelected_Click(object sender, EventArgs e) 88 | { 89 | foreach (ListViewItem item in lvIPList.SelectedItems) 90 | { 91 | if (item.Tag != null) 92 | { 93 | HttpResponseData response = (HttpResponseData)item.Tag; 94 | ResponseAnalyze ra = new ResponseAnalyze(response); 95 | ra.Show(); 96 | } 97 | } 98 | } 99 | 100 | private void btnRanges_Click(object sender, EventArgs e) 101 | { 102 | RangeSelector rs = new RangeSelector(); 103 | rs.ShowDialog(); 104 | if (rs.selectedRange != null) 105 | { 106 | ipFrom.IPAddress = rs.selectedRange.Item1; 107 | ipTo.IPAddress = rs.selectedRange.Item2; 108 | } 109 | } 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /IPScanner/IPScannerForm.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /IPScanner/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace IPScanner 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new IPScannerForm()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /IPScanner/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("IPScanner")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("IPScanner")] 13 | [assembly: AssemblyCopyright("Copyright © 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("bd268f83-3fbb-4ee5-b81a-37a900caf233")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /IPScanner/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.1008 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace IPScanner.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("IPScanner.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /IPScanner/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /IPScanner/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.1008 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace IPScanner.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /IPScanner/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /IPScanner/RangeSelector.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace IPScanner 2 | { 3 | partial class RangeSelector 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.label1 = new System.Windows.Forms.Label(); 32 | this.lvRanges = new System.Windows.Forms.ListView(); 33 | this.SuspendLayout(); 34 | // 35 | // label1 36 | // 37 | this.label1.AutoSize = true; 38 | this.label1.Location = new System.Drawing.Point(12, 9); 39 | this.label1.Name = "label1"; 40 | this.label1.Size = new System.Drawing.Size(91, 13); 41 | this.label1.TabIndex = 0; 42 | this.label1.Text = "Click an IP range:"; 43 | // 44 | // lvRanges 45 | // 46 | this.lvRanges.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 47 | | System.Windows.Forms.AnchorStyles.Left) 48 | | System.Windows.Forms.AnchorStyles.Right))); 49 | this.lvRanges.Location = new System.Drawing.Point(12, 29); 50 | this.lvRanges.MultiSelect = false; 51 | this.lvRanges.Name = "lvRanges"; 52 | this.lvRanges.Size = new System.Drawing.Size(260, 220); 53 | this.lvRanges.TabIndex = 1; 54 | this.lvRanges.UseCompatibleStateImageBehavior = false; 55 | this.lvRanges.View = System.Windows.Forms.View.List; 56 | this.lvRanges.SelectedIndexChanged += new System.EventHandler(this.lvRanges_SelectedIndexChanged); 57 | // 58 | // RangeSelector 59 | // 60 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 61 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 62 | this.ClientSize = new System.Drawing.Size(284, 261); 63 | this.Controls.Add(this.lvRanges); 64 | this.Controls.Add(this.label1); 65 | this.Name = "RangeSelector"; 66 | this.Text = "RangeSelector"; 67 | this.ResumeLayout(false); 68 | this.PerformLayout(); 69 | 70 | } 71 | 72 | #endregion 73 | 74 | private System.Windows.Forms.Label label1; 75 | private System.Windows.Forms.ListView lvRanges; 76 | } 77 | } -------------------------------------------------------------------------------- /IPScanner/RangeSelector.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Net; 8 | using System.Text; 9 | using System.Windows.Forms; 10 | 11 | namespace IPScanner 12 | { 13 | public partial class RangeSelector : Form 14 | { 15 | public Tuple selectedRange = null; 16 | public RangeSelector() 17 | { 18 | InitializeComponent(); 19 | foreach (Tuple range in IPRanges.GetOperationalIPRanges()) 20 | { 21 | ListViewItem item = new ListViewItem(); 22 | item.Tag = range; 23 | item.Text = range.Item1.ToString() + " - " + range.Item2.ToString(); 24 | lvRanges.Items.Add(item); 25 | } 26 | } 27 | 28 | private void lvRanges_SelectedIndexChanged(object sender, EventArgs e) 29 | { 30 | selectedRange = (Tuple)lvRanges.SelectedItems[0].Tag; 31 | this.Close(); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /IPScanner/RangeSelector.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /IPScanner/ResponseAnalyze.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace IPScanner 2 | { 3 | partial class ResponseAnalyze 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.txtHeaders = new System.Windows.Forms.TextBox(); 32 | this.txtBody = new System.Windows.Forms.TextBox(); 33 | this.btnOpenInBrowser = new System.Windows.Forms.Button(); 34 | this.SuspendLayout(); 35 | // 36 | // txtHeaders 37 | // 38 | this.txtHeaders.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 39 | | System.Windows.Forms.AnchorStyles.Right))); 40 | this.txtHeaders.Location = new System.Drawing.Point(12, 31); 41 | this.txtHeaders.Multiline = true; 42 | this.txtHeaders.Name = "txtHeaders"; 43 | this.txtHeaders.Size = new System.Drawing.Size(549, 131); 44 | this.txtHeaders.TabIndex = 0; 45 | this.txtHeaders.DoubleClick += new System.EventHandler(this.txtHeaders_DoubleClick); 46 | // 47 | // txtBody 48 | // 49 | this.txtBody.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 50 | | System.Windows.Forms.AnchorStyles.Left) 51 | | System.Windows.Forms.AnchorStyles.Right))); 52 | this.txtBody.Location = new System.Drawing.Point(12, 168); 53 | this.txtBody.Multiline = true; 54 | this.txtBody.Name = "txtBody"; 55 | this.txtBody.Size = new System.Drawing.Size(549, 159); 56 | this.txtBody.TabIndex = 1; 57 | this.txtBody.DoubleClick += new System.EventHandler(this.txtBody_DoubleClick); 58 | // 59 | // btnOpenInBrowser 60 | // 61 | this.btnOpenInBrowser.Location = new System.Drawing.Point(390, 2); 62 | this.btnOpenInBrowser.Name = "btnOpenInBrowser"; 63 | this.btnOpenInBrowser.Size = new System.Drawing.Size(171, 23); 64 | this.btnOpenInBrowser.TabIndex = 2; 65 | this.btnOpenInBrowser.Text = "Open in Browser"; 66 | this.btnOpenInBrowser.UseVisualStyleBackColor = true; 67 | this.btnOpenInBrowser.Click += new System.EventHandler(this.btnOpenInBrowser_Click); 68 | // 69 | // ResponseAnalyze 70 | // 71 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 72 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 73 | this.ClientSize = new System.Drawing.Size(573, 339); 74 | this.Controls.Add(this.btnOpenInBrowser); 75 | this.Controls.Add(this.txtBody); 76 | this.Controls.Add(this.txtHeaders); 77 | this.Name = "ResponseAnalyze"; 78 | this.Text = "Response Analysis"; 79 | this.ResumeLayout(false); 80 | this.PerformLayout(); 81 | 82 | } 83 | 84 | #endregion 85 | 86 | private System.Windows.Forms.TextBox txtHeaders; 87 | private System.Windows.Forms.TextBox txtBody; 88 | private System.Windows.Forms.Button btnOpenInBrowser; 89 | } 90 | } -------------------------------------------------------------------------------- /IPScanner/ResponseAnalyze.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Diagnostics; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Windows.Forms; 10 | 11 | namespace IPScanner 12 | { 13 | public partial class ResponseAnalyze : Form 14 | { 15 | string url = ""; 16 | public ResponseAnalyze(HttpResponseData response) 17 | { 18 | InitializeComponent(); 19 | txtHeaders.Text = string.Join(Environment.NewLine, response.headers.Select(kvp => { return kvp.Key + ": " + kvp.Value; })); 20 | txtBody.Text = response.data; 21 | this.Text = "Analysis: " + response.host; 22 | url = response.host; 23 | } 24 | 25 | private void txtBody_DoubleClick(object sender, EventArgs e) 26 | { 27 | txtBody.SelectAll(); 28 | } 29 | 30 | private void txtHeaders_DoubleClick(object sender, EventArgs e) 31 | { 32 | txtHeaders.SelectAll(); 33 | } 34 | 35 | private void btnOpenInBrowser_Click(object sender, EventArgs e) 36 | { 37 | Process.Start(url); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /IPScanner/ResponseAnalyze.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /IPScanner/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /IPScanner/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /IPScannerLib/HiResTimer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace IPScanner 7 | { 8 | public class HiResTimer 9 | { 10 | private bool isPerfCounterSupported = false; 11 | private Int64 frequency = 0; 12 | 13 | // Windows CE native library with QueryPerformanceCounter(). 14 | private const string lib = "Kernel32.dll"; 15 | [DllImport(lib)] 16 | private static extern int QueryPerformanceCounter(ref Int64 count); 17 | [DllImport(lib)] 18 | private static extern int QueryPerformanceFrequency(ref Int64 frequency); 19 | 20 | public HiResTimer() 21 | { 22 | // Query the high-resolution timer only if it is supported. 23 | // A returned frequency of 1000 typically indicates that it is not 24 | // supported and is emulated by the OS using the same value that is 25 | // returned by Environment.TickCount. 26 | // A return value of 0 indicates that the performance counter is 27 | // not supported. 28 | int returnVal = QueryPerformanceFrequency(ref frequency); 29 | 30 | if (returnVal != 0 && frequency != 1000) 31 | { 32 | // The performance counter is supported. 33 | isPerfCounterSupported = true; 34 | } 35 | else 36 | { 37 | // The performance counter is not supported. Use 38 | // Environment.TickCount instead. 39 | frequency = 1000; 40 | } 41 | } 42 | 43 | private Int64 Frequency 44 | { 45 | get 46 | { 47 | return frequency; 48 | } 49 | } 50 | 51 | private Int64 Value 52 | { 53 | get 54 | { 55 | if (isPerfCounterSupported) 56 | { 57 | // Get the value here if the counter is supported. 58 | Int64 tickCount = 0; 59 | QueryPerformanceCounter(ref tickCount); 60 | return tickCount; 61 | } 62 | else 63 | { 64 | // Otherwise, use Environment.TickCount. 65 | return (Int64)Environment.TickCount; 66 | } 67 | } 68 | } 69 | 70 | private Int64 start; 71 | private bool isRunning = false; 72 | private double elapsedMillisecondsAtTimeOfStop = 0; 73 | public double ElapsedMilliseconds 74 | { 75 | get 76 | { 77 | if (isRunning) 78 | { 79 | Int64 timeElapsedInTicks = Value - start; 80 | return (timeElapsedInTicks * 1000) / Frequency; 81 | } 82 | else 83 | return elapsedMillisecondsAtTimeOfStop; 84 | } 85 | } 86 | public void Start() 87 | { 88 | start = Value; 89 | isRunning = true; 90 | } 91 | public void Stop() 92 | { 93 | if (!isRunning) 94 | return; 95 | elapsedMillisecondsAtTimeOfStop = ElapsedMilliseconds; 96 | isRunning = false; 97 | } 98 | public void Reset() 99 | { 100 | isRunning = false; 101 | elapsedMillisecondsAtTimeOfStop = 0; 102 | } 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /IPScannerLib/HttpHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Net; 5 | using System.IO; 6 | using System.Threading; 7 | using System.Reflection; 8 | using System.Net.Configuration; 9 | 10 | namespace IPScanner 11 | { 12 | public class HttpResponseData 13 | { 14 | public string data; 15 | public SortedList headers; 16 | public string host; 17 | public HttpResponseData(string data, SortedList headers, string host) 18 | { 19 | this.data = data; 20 | this.headers = headers; 21 | this.host = host; 22 | } 23 | public string GetHeaderValue(string key) 24 | { 25 | string val; 26 | if (headers.TryGetValue(key.ToLower(), out val)) 27 | return val; 28 | return ""; 29 | } 30 | } 31 | internal static class HttpHelper 32 | { 33 | static HttpHelper() 34 | { 35 | ToggleAllowUnsafeHeaderParsing(true); 36 | } 37 | public static HttpResponseData GetHttpResponseData(string url) 38 | { 39 | SortedList headers = new SortedList(); 40 | //return new HttpResponseData("", headers, url); 41 | byte[] data = GetData(url, headers); 42 | return new HttpResponseData(UTF8Encoding.UTF8.GetString(data), headers, url); 43 | } 44 | /// 45 | /// Gets data from a URL and returns it as a byte array. 46 | /// 47 | /// 48 | /// 49 | public static byte[] GetData(string url, SortedList headers = null, string user = "", string password = "", bool keepAlive = false) 50 | { 51 | try 52 | { 53 | if (url.Contains(".80")) 54 | { 55 | Console.WriteLine(url); 56 | } 57 | HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url); 58 | webRequest.Proxy = null; 59 | webRequest.KeepAlive = keepAlive; 60 | webRequest.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; 61 | 62 | if (!string.IsNullOrEmpty(user) || !string.IsNullOrEmpty(password)) 63 | { 64 | string authInfo = user + ":" + password; 65 | authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo)); 66 | webRequest.Headers["Authorization"] = "Basic " + authInfo; 67 | } 68 | webRequest.Method = "GET"; 69 | webRequest.Timeout = 5000; 70 | webRequest.AllowAutoRedirect = true; 71 | return GetResponse(webRequest, headers); 72 | } 73 | catch (ThreadAbortException ex) { throw ex; } 74 | catch (WebException ex) 75 | { 76 | if (ex.Message.StartsWith("The server committed a protocol violation")) 77 | return UTF8Encoding.UTF8.GetBytes(ex.Message); 78 | if (ex.Message == "The remote server returned an error: (404) Not Found." || ex.Message == "The remote server returned an error: (401) Unauthorized.") 79 | { 80 | 81 | //if(ex.Response.ResponseUri.AbsolutePath == "/nocookies.html") 82 | try 83 | { 84 | return GetResponseData(ex.Response, headers); 85 | } 86 | catch (ThreadAbortException e) { throw e; } 87 | catch (Exception e) 88 | { 89 | if (url.Contains(".80")) 90 | { 91 | Console.WriteLine(e.ToString()); 92 | } 93 | } 94 | } 95 | //else if (ex.Message == "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." && url.StartsWith("http:")) 96 | //{ 97 | // url = "https" + url.Substring(4); 98 | // return GetData(url, headers, user, password, keepAlive); 99 | //} 100 | } 101 | catch (Exception ex) 102 | { 103 | if (url.Contains(".80")) 104 | { 105 | Console.WriteLine(ex.ToString()); 106 | } 107 | } 108 | return new byte[0]; 109 | } 110 | private static byte[] GetResponse(HttpWebRequest webRequest, SortedList headers = null) 111 | { 112 | return GetResponseData((HttpWebResponse)webRequest.GetResponse(), headers); 113 | } 114 | 115 | private static byte[] GetResponseData(WebResponse webResponseObj, SortedList headers = null) 116 | { 117 | byte[] data; 118 | using (HttpWebResponse webResponse = (HttpWebResponse)webResponseObj) 119 | { 120 | using (MemoryStream ms = new MemoryStream()) 121 | { 122 | using (Stream responseStream = webResponse.GetResponseStream()) 123 | { 124 | // Dump the response stream into the MemoryStream ms 125 | int bytesRead = 1; 126 | while (bytesRead > 0) 127 | { 128 | byte[] buffer = new byte[8000]; 129 | bytesRead = responseStream.Read(buffer, 0, buffer.Length); 130 | if (bytesRead > 0) 131 | ms.Write(buffer, 0, bytesRead); 132 | } 133 | data = new byte[ms.Length]; 134 | 135 | // Dump the data into the byte array 136 | ms.Seek(0, SeekOrigin.Begin); 137 | ms.Read(data, 0, data.Length); 138 | responseStream.Close(); 139 | 140 | if (headers != null) 141 | foreach (string key in webResponse.Headers.AllKeys) 142 | headers[key.ToLower()] = webResponse.Headers[key]; 143 | } 144 | } 145 | webResponse.Close(); 146 | } 147 | return data; 148 | } 149 | 150 | /// 151 | /// Enable/disable useUnsafeHeaderParsing. 152 | /// See http://o2platform.wordpress.com/2010/10/20/dealing-with-the-server-committed-a-protocol-violation-sectionresponsestatusline/ 153 | /// 154 | /// 155 | /// 156 | public static bool ToggleAllowUnsafeHeaderParsing(bool enable) 157 | { 158 | //Get the assembly that contains the internal class 159 | Assembly assembly = Assembly.GetAssembly(typeof(SettingsSection)); 160 | if (assembly != null) 161 | { 162 | //Use the assembly in order to get the internal type for the internal class 163 | Type settingsSectionType = assembly.GetType("System.Net.Configuration.SettingsSectionInternal"); 164 | if (settingsSectionType != null) 165 | { 166 | //Use the internal static property to get an instance of the internal settings class. 167 | //If the static instance isn't created already invoking the property will create it for us. 168 | object anInstance = settingsSectionType.InvokeMember("Section", BindingFlags.Static | BindingFlags.GetProperty | BindingFlags.NonPublic, null, null, new object[] { }); 169 | if (anInstance != null) 170 | { 171 | //Locate the private bool field that tells the framework if unsafe header parsing is allowed 172 | FieldInfo aUseUnsafeHeaderParsing = settingsSectionType.GetField("useUnsafeHeaderParsing", BindingFlags.NonPublic | BindingFlags.Instance); 173 | if (aUseUnsafeHeaderParsing != null) 174 | { 175 | aUseUnsafeHeaderParsing.SetValue(anInstance, enable); 176 | return true; 177 | } 178 | 179 | } 180 | } 181 | } 182 | return false; 183 | } 184 | } 185 | } 186 | -------------------------------------------------------------------------------- /IPScannerLib/IPScanResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Net; 5 | 6 | namespace IPScanner 7 | { 8 | public class IPScanResult 9 | { 10 | public IPAddress ip; 11 | public int ping = -1; 12 | public string host; 13 | public ScanStatus status = ScanStatus.Initializing; 14 | public string identification = "..."; 15 | public HttpResponseData response; 16 | 17 | public IPScanResult(IPAddress ip) 18 | { 19 | this.ip = ip; 20 | } 21 | //public IPScanResult(IPAddress ip, int ping, string host) 22 | //{ 23 | // this.ip = ip; 24 | // this.ping = ping; 25 | // this.host = host; 26 | // this.status = ScanStatus.Complete; 27 | //} 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /IPScannerLib/IPScannerLib.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {BBA2E4E7-6448-44D5-A141-3E5A8DA1BEDC} 9 | Library 10 | Properties 11 | IPScanner 12 | IPScannerLib 13 | v2.0 14 | 512 15 | 16 | 17 | 18 | true 19 | bin\x86\Debug\ 20 | DEBUG;TRACE 21 | full 22 | x86 23 | prompt 24 | MinimumRecommendedRules.ruleset 25 | 26 | 27 | bin\x86\Release\ 28 | TRACE 29 | true 30 | pdbonly 31 | x86 32 | prompt 33 | MinimumRecommendedRules.ruleset 34 | 35 | 36 | 37 | SmartThreadPool.dll 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 67 | -------------------------------------------------------------------------------- /IPScannerLib/NetworkScanner.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Net; 5 | using System.Net.Sockets; 6 | using Amib.Threading; 7 | using System.Net.NetworkInformation; 8 | using System.Text.RegularExpressions; 9 | using System.Diagnostics; 10 | 11 | namespace IPScanner 12 | { 13 | public class NetworkScanner 14 | { 15 | private static Regex rxHtmlTitle = new Regex("([^<]+?)", RegexOptions.Compiled); 16 | SmartThreadPool Pool = new SmartThreadPool(1000, 256, 0); 17 | public NetworkScanner() 18 | { 19 | ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; 20 | System.Net.ServicePointManager.MaxServicePoints = int.MaxValue; 21 | } 22 | 23 | public List BeginScan(IPAddress ipFrom, IPAddress ipTo) 24 | { 25 | Amib.Threading.Action, int> ipScanAction = new Amib.Threading.Action, int>(ScanIPAsync); 26 | // Count the IP addresses included in this range 27 | byte[] addyEnd = ipTo.GetAddressBytes(); 28 | byte[] addyNext = ipFrom.GetAddressBytes(); 29 | 30 | List Results = new List(); 31 | while (CompareIPs(addyNext, addyEnd) < 1) 32 | { 33 | Results.Add(new IPScanResult(new IPAddress(addyNext))); 34 | IncrementIP(addyNext); 35 | } 36 | 37 | for (int i = 0; i < Results.Count; i++) 38 | Pool.QueueWorkItem(ipScanAction, Results[i].ip, Results, i); 39 | return Results; 40 | } 41 | private void ScanIPAsync(IPAddress ip, List results, int listIndex) 42 | { 43 | bool foundHost = false; 44 | results[listIndex].status = ScanStatus.Initializing; 45 | 46 | // Attempt Ordinary Ping 47 | try 48 | { 49 | using (Ping p = new Ping()) 50 | { 51 | PingReply pingReply = p.Send(ip, 5000); 52 | if (pingReply.Status == IPStatus.Success) 53 | { 54 | foundHost = true; 55 | results[listIndex].status = ScanStatus.Partial; 56 | results[listIndex].ping = (int)pingReply.RoundtripTime; 57 | } 58 | } 59 | } 60 | catch (SocketException) 61 | { 62 | } 63 | catch (Exception) 64 | { 65 | } 66 | 67 | // Attempt DNS Lookup 68 | try 69 | { 70 | Stopwatch timer = new Stopwatch(); 71 | timer.Start(); 72 | IPHostEntry ipe = Dns.GetHostEntry(ip); 73 | timer.Stop(); 74 | int dnsLookupTime = (int)timer.ElapsedMilliseconds; 75 | 76 | foundHost = true; 77 | //if (results[listIndex].ping < 0 || dnsLookupTime < results[listIndex].ping) 78 | // results[listIndex].ping = dnsLookupTime; 79 | results[listIndex].host = ipe.HostName.ToString(); 80 | results[listIndex].status = ScanStatus.Complete; 81 | } 82 | //catch (SocketException ex) 83 | //{ 84 | // //if (ex.SocketErrorCode == SocketError.HostNotFound) 85 | // // return; 86 | // Console.WriteLine(ex.Message); 87 | //} 88 | catch (Exception) 89 | { 90 | } 91 | 92 | 93 | 94 | if (foundHost) 95 | { 96 | // Try to identify 97 | HttpResponseData response; 98 | results[listIndex].identification = IdentifyHost(ip, out response); 99 | results[listIndex].status = ScanStatus.Complete; 100 | results[listIndex].response = response; 101 | } 102 | else 103 | results[listIndex].status = ScanStatus.NotFound; 104 | } 105 | 106 | private string IdentifyHost(IPAddress ip, out HttpResponseData response) 107 | { 108 | response = null; 109 | Stopwatch sw = new Stopwatch(); 110 | try 111 | { 112 | sw.Start(); 113 | response = HttpHelper.GetHttpResponseData("http://" + ip.ToString() + "/"); 114 | if (response.GetHeaderValue("server").StartsWith("lighttpd") && response.GetHeaderValue("set-cookie").Contains("AIROS_") && response.data.Contains("Error 404")) 115 | return "Ubiquiti"; 116 | else if (response.GetHeaderValue("server").StartsWith("Boa") && response.data.Contains("<OBJECT ID=\"TSConfigIPCCtrl\"")) 117 | return "Generic IP Cam"; // CCDCam EC-IP5911 118 | else if (response.data.Contains("flow_slct = get_slctid('flowtype');")) 119 | return "IPS Cam"; 120 | else if (response.GetHeaderValue("server") == "GoAhead-Webs" && response.data.Contains("document.location = '/live.asp?")) 121 | return "Edimax Cam"; 122 | else if (response.GetHeaderValue("server").StartsWith("App-webs/") && response.data.Contains("window.location.href = \"doc/page/login.asp")) 123 | return "Hikvision"; 124 | else if (response.data.Contains("src=\"jsCore/LAB.js\"") || response.data.Contains("var lt = \"?WebVersion=") || response.data.Contains("src=\"jsCore/rpcCore.js")) 125 | return "Dahua"; 126 | else if (response.GetHeaderValue("www-authenticate").Contains("realm=\"tomato\"")) 127 | return "Tomato"; 128 | else if (response.GetHeaderValue("server") == "Web Server" && response.data.Contains("<TITLE>NETGEAR FS728TP")) 129 | return "Netgear FS728TP"; 130 | else if (response.GetHeaderValue("set-cookie").Contains("DLILPC=") && response.data.Contains("Power Controller")) 131 | return "Web Power Switch"; 132 | else if (response.data == "The server committed a protocol violation. Section=ResponseStatusLine") 133 | return "? WeatherDirect ?"; 134 | else if (response.data == "The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF") 135 | return "? Web Power Switch ?"; 136 | else if (response.data.Contains("NetDAQ ND-100")) 137 | return "NetDAQ ND-100"; 138 | else if (response.GetHeaderValue("server") == "nginx" && response.data.Contains("<title>airVision:")) 139 | return "AirVision NVR"; 140 | else if (response.GetHeaderValue("server") == "nginx" && response.data.Contains("<title>airVision:")) 141 | return "AirVision NVR"; 142 | else if (response.GetHeaderValue("server").StartsWith("BlueIris-")) 143 | return "Blue Iris"; 144 | //else if (response.data.Contains("<title>iTach")) 145 | // return "iTach"; 146 | else if (response.data.Contains("href=\"/cmh\"")) 147 | return "Vera"; 148 | else if (response.data.Contains("WDMyCloud")) 149 | return "WDMyCloud"; 150 | //else if (response.data.Contains("<title>DD-WRT")) 151 | // return "DD-WRT"; 152 | else if (response.data.Contains("= \"Peplink\"")) 153 | return "Peplink"; 154 | else if (response.data.Contains("GSViewerX.ocx")) 155 | return "GrandStream"; 156 | else if (response.data.Contains("content=\"Canon Inc.\"")) 157 | return "Canon printer"; 158 | else if (response.GetHeaderValue("server") == "tsbox" && response.GetHeaderValue("www-authenticate") == "Basic realm=\"pbox\"") 159 | return "HDMI Encoder"; 160 | else if (response.data.Contains("Rules of login password.\\n")) 161 | return "ACTi"; 162 | else if (response.data.Contains("/static/freenas_favicon.ico")) 163 | return "FreeNAS"; 164 | else if (response.data.Contains("CONTENT=\"0;url=cgi-bin/kvm.cgi\"")) 165 | return "Avocent KVM"; 166 | else if (response.GetHeaderValue("www-authenticate") == "Basic realm=\"TomatoUSB\"") 167 | return "TomatoUSB Router"; 168 | else if (response.GetHeaderValue("auther") == "Steven Wu" && response.GetHeaderValue("server") == "Camera Web Server/1.0" && response.data.Contains("location.href=\"top.htm?Currenttime=\"+timeValue;")) 169 | return "TrendNET IP cam"; 170 | else if (response.data.Contains(@"<meta http-equiv=""refresh"" content=""0;URL='/ui'""/>")) 171 | return "ESXi"; 172 | else if (response.GetHeaderValue("server") == "Microsoft-HTTPAPI/2.0") 173 | return "IIS"; 174 | else 175 | { 176 | Match m = rxHtmlTitle.Match(response.data); 177 | if (m.Success) 178 | return m.Groups[1].Value; 179 | string server = response.GetHeaderValue("server"); 180 | if (!string.IsNullOrEmpty(server)) 181 | return server; 182 | return ""; 183 | } 184 | return response.data; 185 | } 186 | catch (Exception) 187 | { 188 | } 189 | finally 190 | { 191 | sw.Stop(); 192 | //Console.WriteLine("Spent " + sw.ElapsedMilliseconds + " on " + response.data.Length); 193 | } 194 | return ""; 195 | } 196 | 197 | public void Abort() 198 | { 199 | Pool.Cancel(true); 200 | } 201 | bool ArraysMatch(Array a1, Array a2) 202 | { 203 | if (a1.Length != a2.Length) 204 | return false; 205 | for (int i = 0; i < a1.Length; i++) 206 | if (a1.GetValue(i) != a1.GetValue(i)) 207 | return false; 208 | return true; 209 | } 210 | int CompareIPs(byte[] ip1, byte[] ip2) 211 | { 212 | if (ip1 == null || ip1.Length != 4) 213 | return -1; 214 | if (ip2 == null || ip2.Length != 4) 215 | return 1; 216 | int comp = ip1[0].CompareTo(ip2[0]); 217 | if (comp == 0) 218 | comp = ip1[1].CompareTo(ip2[1]); 219 | if (comp == 0) 220 | comp = ip1[2].CompareTo(ip2[2]); 221 | if (comp == 0) 222 | comp = ip1[3].CompareTo(ip2[3]); 223 | return comp; 224 | } 225 | void IncrementIP(byte[] ip, int idx = 3) 226 | { 227 | if (ip == null || ip.Length != 4 || idx < 0) 228 | return; 229 | if (ip[idx] == 254) 230 | { 231 | ip[idx] = 1; 232 | IncrementIP(ip, idx - 1); 233 | } 234 | else 235 | ip[idx] = (byte)(ip[idx] + 1); 236 | } 237 | } 238 | } 239 | -------------------------------------------------------------------------------- /IPScannerLib/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("IPScannerLib")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("IPScannerLib")] 13 | [assembly: AssemblyCopyright("Copyright © 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("a4488389-a3bf-4d66-82ad-c24a4c870019")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /IPScannerLib/ScanStatus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace IPScanner 6 | { 7 | public enum ScanStatus 8 | { 9 | Initializing, 10 | Scanning, 11 | NotFound, 12 | Complete, 13 | Partial 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /IPScannerLib/SmartThreadPool.XML: -------------------------------------------------------------------------------- 1 | <?xml version="1.0"?> 2 | <doc> 3 | <assembly> 4 | <name>SmartThreadPool</name> 5 | </assembly> 6 | <members> 7 | <member name="T:Amib.Threading.IWorkItemsGroup"> 8 | <summary> 9 | IWorkItemsGroup interface 10 | Created by SmartThreadPool.CreateWorkItemsGroup() 11 | </summary> 12 | </member> 13 | <member name="M:Amib.Threading.IWorkItemsGroup.GetStates"> 14 | <summary> 15 | Get an array with all the state objects of the currently running items. 16 | The array represents a snap shot and impact performance. 17 | </summary> 18 | </member> 19 | <member name="M:Amib.Threading.IWorkItemsGroup.Start"> 20 | <summary> 21 | Starts to execute work items 22 | </summary> 23 | </member> 24 | <member name="M:Amib.Threading.IWorkItemsGroup.Cancel"> 25 | <summary> 26 | Cancel all the work items. 27 | Same as Cancel(false) 28 | </summary> 29 | </member> 30 | <member name="M:Amib.Threading.IWorkItemsGroup.Cancel(System.Boolean)"> 31 | <summary> 32 | Cancel all work items using thread abortion 33 | </summary> 34 | <param name="abortExecution">True to stop work items by raising ThreadAbortException</param> 35 | </member> 36 | <member name="M:Amib.Threading.IWorkItemsGroup.WaitForIdle"> 37 | <summary> 38 | Wait for all work item to complete. 39 | </summary> 40 | </member> 41 | <member name="M:Amib.Threading.IWorkItemsGroup.WaitForIdle(System.TimeSpan)"> 42 | <summary> 43 | Wait for all work item to complete, until timeout expired 44 | </summary> 45 | <param name="timeout">How long to wait for the work items to complete</param> 46 | <returns>Returns true if work items completed within the timeout, otherwise false.</returns> 47 | </member> 48 | <member name="M:Amib.Threading.IWorkItemsGroup.WaitForIdle(System.Int32)"> 49 | <summary> 50 | Wait for all work item to complete, until timeout expired 51 | </summary> 52 | <param name="millisecondsTimeout">How long to wait for the work items to complete in milliseconds</param> 53 | <returns>Returns true if work items completed within the timeout, otherwise false.</returns> 54 | </member> 55 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemCallback)"> 56 | <summary> 57 | Queue a work item 58 | </summary> 59 | <param name="callback">A callback to execute</param> 60 | <returns>Returns a work item result</returns> 61 | </member> 62 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemCallback,Amib.Threading.WorkItemPriority)"> 63 | <summary> 64 | Queue a work item 65 | </summary> 66 | <param name="callback">A callback to execute</param> 67 | <param name="workItemPriority">The priority of the work item</param> 68 | <returns>Returns a work item result</returns> 69 | </member> 70 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object)"> 71 | <summary> 72 | Queue a work item 73 | </summary> 74 | <param name="callback">A callback to execute</param> 75 | <param name="state"> 76 | The context object of the work item. Used for passing arguments to the work item. 77 | </param> 78 | <returns>Returns a work item result</returns> 79 | </member> 80 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.WorkItemPriority)"> 81 | <summary> 82 | Queue a work item 83 | </summary> 84 | <param name="callback">A callback to execute</param> 85 | <param name="state"> 86 | The context object of the work item. Used for passing arguments to the work item. 87 | </param> 88 | <param name="workItemPriority">The work item priority</param> 89 | <returns>Returns a work item result</returns> 90 | </member> 91 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback)"> 92 | <summary> 93 | Queue a work item 94 | </summary> 95 | <param name="callback">A callback to execute</param> 96 | <param name="state"> 97 | The context object of the work item. Used for passing arguments to the work item. 98 | </param> 99 | <param name="postExecuteWorkItemCallback"> 100 | A delegate to call after the callback completion 101 | </param> 102 | <returns>Returns a work item result</returns> 103 | </member> 104 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.WorkItemPriority)"> 105 | <summary> 106 | Queue a work item 107 | </summary> 108 | <param name="callback">A callback to execute</param> 109 | <param name="state"> 110 | The context object of the work item. Used for passing arguments to the work item. 111 | </param> 112 | <param name="postExecuteWorkItemCallback"> 113 | A delegate to call after the callback completion 114 | </param> 115 | <param name="workItemPriority">The work item priority</param> 116 | <returns>Returns a work item result</returns> 117 | </member> 118 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.CallToPostExecute)"> 119 | <summary> 120 | Queue a work item 121 | </summary> 122 | <param name="callback">A callback to execute</param> 123 | <param name="state"> 124 | The context object of the work item. Used for passing arguments to the work item. 125 | </param> 126 | <param name="postExecuteWorkItemCallback"> 127 | A delegate to call after the callback completion 128 | </param> 129 | <param name="callToPostExecute">Indicates on which cases to call to the post execute callback</param> 130 | <returns>Returns a work item result</returns> 131 | </member> 132 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.CallToPostExecute,Amib.Threading.WorkItemPriority)"> 133 | <summary> 134 | Queue a work item 135 | </summary> 136 | <param name="callback">A callback to execute</param> 137 | <param name="state"> 138 | The context object of the work item. Used for passing arguments to the work item. 139 | </param> 140 | <param name="postExecuteWorkItemCallback"> 141 | A delegate to call after the callback completion 142 | </param> 143 | <param name="callToPostExecute">Indicates on which cases to call to the post execute callback</param> 144 | <param name="workItemPriority">The work item priority</param> 145 | <returns>Returns a work item result</returns> 146 | </member> 147 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemInfo,Amib.Threading.WorkItemCallback)"> 148 | <summary> 149 | Queue a work item 150 | </summary> 151 | <param name="workItemInfo">Work item info</param> 152 | <param name="callback">A callback to execute</param> 153 | <returns>Returns a work item result</returns> 154 | </member> 155 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.WorkItemInfo,Amib.Threading.WorkItemCallback,System.Object)"> 156 | <summary> 157 | Queue a work item 158 | </summary> 159 | <param name="workItemInfo">Work item information</param> 160 | <param name="callback">A callback to execute</param> 161 | <param name="state"> 162 | The context object of the work item. Used for passing arguments to the work item. 163 | </param> 164 | <returns>Returns a work item result</returns> 165 | </member> 166 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem(Amib.Threading.Action,Amib.Threading.WorkItemPriority)"> 167 | <summary> 168 | Queue a work item. 169 | </summary> 170 | <returns>Returns a IWorkItemResult object, but its GetResult() will always return null</returns> 171 | </member> 172 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``1(System.Action{``0},``0,Amib.Threading.WorkItemPriority)"> 173 | <summary> 174 | Queue a work item. 175 | </summary> 176 | <returns>Returns a IWorkItemResult object, but its GetResult() will always return null</returns> 177 | </member> 178 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``2(Amib.Threading.Action{``0,``1},``0,``1,Amib.Threading.WorkItemPriority)"> 179 | <summary> 180 | Queue a work item. 181 | </summary> 182 | <returns>Returns a IWorkItemResult object, but its GetResult() will always return null</returns> 183 | </member> 184 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``3(Amib.Threading.Action{``0,``1,``2},``0,``1,``2,Amib.Threading.WorkItemPriority)"> 185 | <summary> 186 | Queue a work item. 187 | </summary> 188 | <returns>Returns a IWorkItemResult object, but its GetResult() will always return null</returns> 189 | </member> 190 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``4(Amib.Threading.Action{``0,``1,``2,``3},``0,``1,``2,``3,Amib.Threading.WorkItemPriority)"> 191 | <summary> 192 | Queue a work item. 193 | </summary> 194 | <returns>Returns a IWorkItemResult object, but its GetResult() will always return null</returns> 195 | </member> 196 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``1(Amib.Threading.Func{``0},Amib.Threading.WorkItemPriority)"> 197 | <summary> 198 | Queue a work item. 199 | </summary> 200 | <returns>Returns a IWorkItemResult<TResult> object. 201 | its GetResult() returns a TResult object</returns> 202 | </member> 203 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``2(Amib.Threading.Func{``0,``1},``0,Amib.Threading.WorkItemPriority)"> 204 | <summary> 205 | Queue a work item. 206 | </summary> 207 | <returns>Returns a IWorkItemResult<TResult> object. 208 | its GetResult() returns a TResult object</returns> 209 | </member> 210 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``3(Amib.Threading.Func{``0,``1,``2},``0,``1,Amib.Threading.WorkItemPriority)"> 211 | <summary> 212 | Queue a work item. 213 | </summary> 214 | <returns>Returns a IWorkItemResult<TResult> object. 215 | its GetResult() returns a TResult object</returns> 216 | </member> 217 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``4(Amib.Threading.Func{``0,``1,``2,``3},``0,``1,``2,Amib.Threading.WorkItemPriority)"> 218 | <summary> 219 | Queue a work item. 220 | </summary> 221 | <returns>Returns a IWorkItemResult<TResult> object. 222 | its GetResult() returns a TResult object</returns> 223 | </member> 224 | <member name="M:Amib.Threading.IWorkItemsGroup.QueueWorkItem``5(Amib.Threading.Func{``0,``1,``2,``3,``4},``0,``1,``2,``3,Amib.Threading.WorkItemPriority)"> 225 | <summary> 226 | Queue a work item. 227 | </summary> 228 | <returns>Returns a IWorkItemResult<TResult> object. 229 | its GetResult() returns a TResult object</returns> 230 | </member> 231 | <member name="P:Amib.Threading.IWorkItemsGroup.Name"> 232 | <summary> 233 | Get/Set the name of the WorkItemsGroup 234 | </summary> 235 | </member> 236 | <member name="P:Amib.Threading.IWorkItemsGroup.Concurrency"> 237 | <summary> 238 | Get/Set the maximum number of workitem that execute cocurrency on the thread pool 239 | </summary> 240 | </member> 241 | <member name="P:Amib.Threading.IWorkItemsGroup.WaitingCallbacks"> 242 | <summary> 243 | Get the number of work items waiting in the queue. 244 | </summary> 245 | </member> 246 | <member name="P:Amib.Threading.IWorkItemsGroup.WIGStartInfo"> 247 | <summary> 248 | Get the WorkItemsGroup start information 249 | </summary> 250 | </member> 251 | <member name="P:Amib.Threading.IWorkItemsGroup.IsIdle"> 252 | <summary> 253 | IsIdle is true when there are no work items running or queued. 254 | </summary> 255 | </member> 256 | <member name="E:Amib.Threading.IWorkItemsGroup.OnIdle"> 257 | <summary> 258 | This event is fired when all work items are completed. 259 | (When IsIdle changes to true) 260 | This event only work on WorkItemsGroup. On SmartThreadPool 261 | it throws the NotImplementedException. 262 | </summary> 263 | </member> 264 | <member name="F:Amib.Threading.Internal.WorkItemsGroupBase._name"> 265 | <summary> 266 | Contains the name of this instance of SmartThreadPool. 267 | Can be changed by the user. 268 | </summary> 269 | </member> 270 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.Cancel"> 271 | <summary> 272 | Cancel all the work items. 273 | Same as Cancel(false) 274 | </summary> 275 | </member> 276 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.WaitForIdle"> 277 | <summary> 278 | Wait for the SmartThreadPool/WorkItemsGroup to be idle 279 | </summary> 280 | </member> 281 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.WaitForIdle(System.TimeSpan)"> 282 | <summary> 283 | Wait for the SmartThreadPool/WorkItemsGroup to be idle 284 | </summary> 285 | </member> 286 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback)"> 287 | <summary> 288 | Queue a work item 289 | </summary> 290 | <param name="callback">A callback to execute</param> 291 | <returns>Returns a work item result</returns> 292 | </member> 293 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback,Amib.Threading.WorkItemPriority)"> 294 | <summary> 295 | Queue a work item 296 | </summary> 297 | <param name="callback">A callback to execute</param> 298 | <param name="workItemPriority">The priority of the work item</param> 299 | <returns>Returns a work item result</returns> 300 | </member> 301 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemInfo,Amib.Threading.WorkItemCallback)"> 302 | <summary> 303 | Queue a work item 304 | </summary> 305 | <param name="workItemInfo">Work item info</param> 306 | <param name="callback">A callback to execute</param> 307 | <returns>Returns a work item result</returns> 308 | </member> 309 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object)"> 310 | <summary> 311 | Queue a work item 312 | </summary> 313 | <param name="callback">A callback to execute</param> 314 | <param name="state"> 315 | The context object of the work item. Used for passing arguments to the work item. 316 | </param> 317 | <returns>Returns a work item result</returns> 318 | </member> 319 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.WorkItemPriority)"> 320 | <summary> 321 | Queue a work item 322 | </summary> 323 | <param name="callback">A callback to execute</param> 324 | <param name="state"> 325 | The context object of the work item. Used for passing arguments to the work item. 326 | </param> 327 | <param name="workItemPriority">The work item priority</param> 328 | <returns>Returns a work item result</returns> 329 | </member> 330 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemInfo,Amib.Threading.WorkItemCallback,System.Object)"> 331 | <summary> 332 | Queue a work item 333 | </summary> 334 | <param name="workItemInfo">Work item information</param> 335 | <param name="callback">A callback to execute</param> 336 | <param name="state"> 337 | The context object of the work item. Used for passing arguments to the work item. 338 | </param> 339 | <returns>Returns a work item result</returns> 340 | </member> 341 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback)"> 342 | <summary> 343 | Queue a work item 344 | </summary> 345 | <param name="callback">A callback to execute</param> 346 | <param name="state"> 347 | The context object of the work item. Used for passing arguments to the work item. 348 | </param> 349 | <param name="postExecuteWorkItemCallback"> 350 | A delegate to call after the callback completion 351 | </param> 352 | <returns>Returns a work item result</returns> 353 | </member> 354 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.WorkItemPriority)"> 355 | <summary> 356 | Queue a work item 357 | </summary> 358 | <param name="callback">A callback to execute</param> 359 | <param name="state"> 360 | The context object of the work item. Used for passing arguments to the work item. 361 | </param> 362 | <param name="postExecuteWorkItemCallback"> 363 | A delegate to call after the callback completion 364 | </param> 365 | <param name="workItemPriority">The work item priority</param> 366 | <returns>Returns a work item result</returns> 367 | </member> 368 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.CallToPostExecute)"> 369 | <summary> 370 | Queue a work item 371 | </summary> 372 | <param name="callback">A callback to execute</param> 373 | <param name="state"> 374 | The context object of the work item. Used for passing arguments to the work item. 375 | </param> 376 | <param name="postExecuteWorkItemCallback"> 377 | A delegate to call after the callback completion 378 | </param> 379 | <param name="callToPostExecute">Indicates on which cases to call to the post execute callback</param> 380 | <returns>Returns a work item result</returns> 381 | </member> 382 | <member name="M:Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.CallToPostExecute,Amib.Threading.WorkItemPriority)"> 383 | <summary> 384 | Queue a work item 385 | </summary> 386 | <param name="callback">A callback to execute</param> 387 | <param name="state"> 388 | The context object of the work item. Used for passing arguments to the work item. 389 | </param> 390 | <param name="postExecuteWorkItemCallback"> 391 | A delegate to call after the callback completion 392 | </param> 393 | <param name="callToPostExecute">Indicates on which cases to call to the post execute callback</param> 394 | <param name="workItemPriority">The work item priority</param> 395 | <returns>Returns a work item result</returns> 396 | </member> 397 | <member name="P:Amib.Threading.Internal.WorkItemsGroupBase.Name"> 398 | <summary> 399 | Get/Set the name of the SmartThreadPool/WorkItemsGroup instance 400 | </summary> 401 | </member> 402 | <member name="P:Amib.Threading.Internal.WorkItemsGroupBase.IsIdle"> 403 | <summary> 404 | IsIdle is true when there are no work items running or queued. 405 | </summary> 406 | </member> 407 | <member name="T:Amib.Threading.STPStartInfo"> 408 | <summary> 409 | Summary description for STPStartInfo. 410 | </summary> 411 | </member> 412 | <member name="T:Amib.Threading.WIGStartInfo"> 413 | <summary> 414 | Summary description for WIGStartInfo. 415 | </summary> 416 | </member> 417 | <member name="M:Amib.Threading.WIGStartInfo.AsReadOnly"> 418 | <summary> 419 | Get a readonly version of this WIGStartInfo 420 | </summary> 421 | <returns>Returns a readonly reference to this WIGStartInfoRO</returns> 422 | </member> 423 | <member name="P:Amib.Threading.WIGStartInfo.UseCallerCallContext"> 424 | <summary> 425 | Get/Set if to use the caller's security context 426 | </summary> 427 | </member> 428 | <member name="P:Amib.Threading.WIGStartInfo.UseCallerHttpContext"> 429 | <summary> 430 | Get/Set if to use the caller's HTTP context 431 | </summary> 432 | </member> 433 | <member name="P:Amib.Threading.WIGStartInfo.DisposeOfStateObjects"> 434 | <summary> 435 | Get/Set if to dispose of the state object of a work item 436 | </summary> 437 | </member> 438 | <member name="P:Amib.Threading.WIGStartInfo.CallToPostExecute"> 439 | <summary> 440 | Get/Set the run the post execute options 441 | </summary> 442 | </member> 443 | <member name="P:Amib.Threading.WIGStartInfo.PostExecuteWorkItemCallback"> 444 | <summary> 445 | Get/Set the default post execute callback 446 | </summary> 447 | </member> 448 | <member name="P:Amib.Threading.WIGStartInfo.StartSuspended"> 449 | <summary> 450 | Get/Set if the work items execution should be suspended until the Start() 451 | method is called. 452 | </summary> 453 | </member> 454 | <member name="P:Amib.Threading.WIGStartInfo.WorkItemPriority"> 455 | <summary> 456 | Get/Set the default priority that a work item gets when it is enqueued 457 | </summary> 458 | </member> 459 | <member name="P:Amib.Threading.WIGStartInfo.FillStateWithArgs"> 460 | <summary> 461 | Get/Set the if QueueWorkItem of Action<...>/Func<...> fill the 462 | arguments as an object array into the state of the work item. 463 | The arguments can be access later by IWorkItemResult.State. 464 | </summary> 465 | </member> 466 | <member name="M:Amib.Threading.STPStartInfo.AsReadOnly"> 467 | <summary> 468 | Get a readonly version of this STPStartInfo. 469 | </summary> 470 | <returns>Returns a readonly reference to this STPStartInfo</returns> 471 | </member> 472 | <member name="P:Amib.Threading.STPStartInfo.IdleTimeout"> 473 | <summary> 474 | Get/Set the idle timeout in milliseconds. 475 | If a thread is idle (starved) longer than IdleTimeout then it may quit. 476 | </summary> 477 | </member> 478 | <member name="P:Amib.Threading.STPStartInfo.MinWorkerThreads"> 479 | <summary> 480 | Get/Set the lower limit of threads in the pool. 481 | </summary> 482 | </member> 483 | <member name="P:Amib.Threading.STPStartInfo.MaxWorkerThreads"> 484 | <summary> 485 | Get/Set the upper limit of threads in the pool. 486 | </summary> 487 | </member> 488 | <member name="P:Amib.Threading.STPStartInfo.ThreadPriority"> 489 | <summary> 490 | Get/Set the scheduling priority of the threads in the pool. 491 | The Os handles the scheduling. 492 | </summary> 493 | </member> 494 | <member name="P:Amib.Threading.STPStartInfo.ThreadPoolName"> 495 | <summary> 496 | Get/Set the thread pool name. Threads will get names depending on this. 497 | </summary> 498 | </member> 499 | <member name="P:Amib.Threading.STPStartInfo.PerformanceCounterInstanceName"> 500 | <summary> 501 | Get/Set the performance counter instance name of this SmartThreadPool 502 | The default is null which indicate not to use performance counters at all. 503 | </summary> 504 | </member> 505 | <member name="P:Amib.Threading.STPStartInfo.EnableLocalPerformanceCounters"> 506 | <summary> 507 | Enable/Disable the local performance counter. 508 | This enables the user to get some performance information about the SmartThreadPool 509 | without using Windows performance counters. (Useful on WindowsCE, Silverlight, etc.) 510 | The default is false. 511 | </summary> 512 | </member> 513 | <member name="P:Amib.Threading.STPStartInfo.AreThreadsBackground"> 514 | <summary> 515 | Get/Set backgroundness of thread in thread pool. 516 | </summary> 517 | </member> 518 | <member name="P:Amib.Threading.STPStartInfo.ApartmentState"> 519 | <summary> 520 | Get/Set the apartment state of threads in the thread pool 521 | </summary> 522 | </member> 523 | <member name="P:Amib.Threading.STPStartInfo.MaxStackSize"> 524 | <summary> 525 | Get/Set the max stack size of threads in the thread pool 526 | </summary> 527 | </member> 528 | <member name="T:Amib.Threading.Internal.PriorityQueue"> 529 | <summary> 530 | PriorityQueue class 531 | This class is not thread safe because we use external lock 532 | </summary> 533 | </member> 534 | <member name="F:Amib.Threading.Internal.PriorityQueue._queuesCount"> 535 | <summary> 536 | The number of queues, there is one for each type of priority 537 | </summary> 538 | </member> 539 | <member name="F:Amib.Threading.Internal.PriorityQueue._queues"> 540 | <summary> 541 | Work items queues. There is one for each type of priority 542 | </summary> 543 | </member> 544 | <member name="F:Amib.Threading.Internal.PriorityQueue._workItemsCount"> 545 | <summary> 546 | The total number of work items within the queues 547 | </summary> 548 | </member> 549 | <member name="F:Amib.Threading.Internal.PriorityQueue._version"> 550 | <summary> 551 | Use with IEnumerable interface 552 | </summary> 553 | </member> 554 | <member name="M:Amib.Threading.Internal.PriorityQueue.Enqueue(Amib.Threading.Internal.IHasWorkItemPriority)"> 555 | <summary> 556 | Enqueue a work item. 557 | </summary> 558 | <param name="workItem">A work item</param> 559 | </member> 560 | <member name="M:Amib.Threading.Internal.PriorityQueue.Dequeue"> 561 | <summary> 562 | Dequeque a work item. 563 | </summary> 564 | <returns>Returns the next work item</returns> 565 | </member> 566 | <member name="M:Amib.Threading.Internal.PriorityQueue.GetNextNonEmptyQueue(System.Int32)"> 567 | <summary> 568 | Find the next non empty queue starting at queue queueIndex+1 569 | </summary> 570 | <param name="queueIndex">The index-1 to start from</param> 571 | <returns> 572 | The index of the next non empty queue or -1 if all the queues are empty 573 | </returns> 574 | </member> 575 | <member name="M:Amib.Threading.Internal.PriorityQueue.Clear"> 576 | <summary> 577 | Clear all the work items 578 | </summary> 579 | </member> 580 | <member name="M:Amib.Threading.Internal.PriorityQueue.GetEnumerator"> 581 | <summary> 582 | Returns an enumerator to iterate over the work items 583 | </summary> 584 | <returns>Returns an enumerator</returns> 585 | </member> 586 | <member name="P:Amib.Threading.Internal.PriorityQueue.Count"> 587 | <summary> 588 | The number of work items 589 | </summary> 590 | </member> 591 | <member name="T:Amib.Threading.Internal.PriorityQueue.PriorityQueueEnumerator"> 592 | <summary> 593 | The class the implements the enumerator 594 | </summary> 595 | </member> 596 | <member name="T:Amib.Threading.Internal.WorkItemsQueue"> 597 | <summary> 598 | WorkItemsQueue class. 599 | </summary> 600 | </member> 601 | <member name="F:Amib.Threading.Internal.WorkItemsQueue._headWaiterEntry"> 602 | <summary> 603 | Waiters queue (implemented as stack). 604 | </summary> 605 | </member> 606 | <member name="F:Amib.Threading.Internal.WorkItemsQueue._waitersCount"> 607 | <summary> 608 | Waiters count 609 | </summary> 610 | </member> 611 | <member name="F:Amib.Threading.Internal.WorkItemsQueue._workItems"> 612 | <summary> 613 | Work items queue 614 | </summary> 615 | </member> 616 | <member name="F:Amib.Threading.Internal.WorkItemsQueue._isWorkItemsQueueActive"> 617 | <summary> 618 | Indicate that work items are allowed to be queued 619 | </summary> 620 | </member> 621 | <member name="F:Amib.Threading.Internal.WorkItemsQueue._isDisposed"> 622 | <summary> 623 | A flag that indicates if the WorkItemsQueue has been disposed. 624 | </summary> 625 | </member> 626 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.EnqueueWorkItem(Amib.Threading.Internal.WorkItem)"> 627 | <summary> 628 | Enqueue a work item to the queue. 629 | </summary> 630 | </member> 631 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.DequeueWorkItem(System.Int32,System.Threading.WaitHandle)"> 632 | <summary> 633 | Waits for a work item or exits on timeout or cancel 634 | </summary> 635 | <param name="millisecondsTimeout">Timeout in milliseconds</param> 636 | <param name="cancelEvent">Cancel wait handle</param> 637 | <returns>Returns true if the resource was granted</returns> 638 | </member> 639 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.Cleanup"> 640 | <summary> 641 | Cleanup the work items queue, hence no more work 642 | items are allowed to be queue 643 | </summary> 644 | </member> 645 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.GetThreadWaiterEntry"> 646 | <summary> 647 | Returns the WaiterEntry of the current thread 648 | </summary> 649 | <returns></returns> 650 | In order to avoid creation and destuction of WaiterEntry 651 | objects each thread has its own WaiterEntry object. 652 | </member> 653 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.PushWaiter(Amib.Threading.Internal.WorkItemsQueue.WaiterEntry)"> 654 | <summary> 655 | Push a new waiter into the waiter's stack 656 | </summary> 657 | <param name="newWaiterEntry">A waiter to put in the stack</param> 658 | </member> 659 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.PopWaiter"> 660 | <summary> 661 | Pop a waiter from the waiter's stack 662 | </summary> 663 | <returns>Returns the first waiter in the stack</returns> 664 | </member> 665 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.RemoveWaiter(Amib.Threading.Internal.WorkItemsQueue.WaiterEntry,System.Boolean)"> 666 | <summary> 667 | Remove a waiter from the stack 668 | </summary> 669 | <param name="waiterEntry">A waiter entry to remove</param> 670 | <param name="popDecrement">If true the waiter count is always decremented</param> 671 | </member> 672 | <member name="P:Amib.Threading.Internal.WorkItemsQueue.CurrentWaiterEntry"> 673 | <summary> 674 | Each thread in the thread pool keeps its own waiter entry. 675 | </summary> 676 | </member> 677 | <member name="P:Amib.Threading.Internal.WorkItemsQueue.Count"> 678 | <summary> 679 | Returns the current number of work items in the queue 680 | </summary> 681 | </member> 682 | <member name="P:Amib.Threading.Internal.WorkItemsQueue.WaitersCount"> 683 | <summary> 684 | Returns the current number of waiters 685 | </summary> 686 | </member> 687 | <member name="F:Amib.Threading.Internal.WorkItemsQueue.WaiterEntry._waitHandle"> 688 | <summary> 689 | Event to signal the waiter that it got the work item. 690 | </summary> 691 | </member> 692 | <member name="F:Amib.Threading.Internal.WorkItemsQueue.WaiterEntry._isTimedout"> 693 | <summary> 694 | Flag to know if this waiter already quited from the queue 695 | because of a timeout. 696 | </summary> 697 | </member> 698 | <member name="F:Amib.Threading.Internal.WorkItemsQueue.WaiterEntry._isSignaled"> 699 | <summary> 700 | Flag to know if the waiter was signaled and got a work item. 701 | </summary> 702 | </member> 703 | <member name="F:Amib.Threading.Internal.WorkItemsQueue.WaiterEntry._workItem"> 704 | <summary> 705 | A work item that passed directly to the waiter withou going 706 | through the queue 707 | </summary> 708 | </member> 709 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.WaiterEntry.Signal(Amib.Threading.Internal.WorkItem)"> 710 | <summary> 711 | Signal the waiter that it got a work item. 712 | </summary> 713 | <returns>Return true on success</returns> 714 | The method fails if Timeout() preceded its call 715 | </member> 716 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.WaiterEntry.Timeout"> 717 | <summary> 718 | Mark the wait entry that it has been timed out 719 | </summary> 720 | <returns>Return true on success</returns> 721 | The method fails if Signal() preceded its call 722 | </member> 723 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.WaiterEntry.Reset"> 724 | <summary> 725 | Reset the wait entry so it can be used again 726 | </summary> 727 | </member> 728 | <member name="M:Amib.Threading.Internal.WorkItemsQueue.WaiterEntry.Close"> 729 | <summary> 730 | Free resources 731 | </summary> 732 | </member> 733 | <member name="T:Amib.Threading.IWorkItemResult`1"> 734 | <summary> 735 | IWorkItemResult<TResult> interface. 736 | Created when a Func<TResult> work item is queued. 737 | </summary> 738 | </member> 739 | <member name="T:Amib.Threading.IWaitableResult"> 740 | <summary> 741 | The common interface of IWorkItemResult and IWorkItemResult<T> 742 | </summary> 743 | </member> 744 | <member name="M:Amib.Threading.IWaitableResult.GetWorkItemResult"> 745 | <summary> 746 | This method intent is for internal use. 747 | </summary> 748 | <returns></returns> 749 | </member> 750 | <member name="M:Amib.Threading.IWaitableResult.GetWorkItemResultT``1"> 751 | <summary> 752 | This method intent is for internal use. 753 | </summary> 754 | <returns></returns> 755 | </member> 756 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult"> 757 | <summary> 758 | Get the result of the work item. 759 | If the work item didn't run yet then the caller waits. 760 | </summary> 761 | <returns>The result of the work item</returns> 762 | </member> 763 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.Int32,System.Boolean)"> 764 | <summary> 765 | Get the result of the work item. 766 | If the work item didn't run yet then the caller waits until timeout. 767 | </summary> 768 | <returns>The result of the work item</returns> 769 | On timeout throws WorkItemTimeoutException 770 | </member> 771 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.TimeSpan,System.Boolean)"> 772 | <summary> 773 | Get the result of the work item. 774 | If the work item didn't run yet then the caller waits until timeout. 775 | </summary> 776 | <returns>The result of the work item</returns> 777 | On timeout throws WorkItemTimeoutException 778 | </member> 779 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.Int32,System.Boolean,System.Threading.WaitHandle)"> 780 | <summary> 781 | Get the result of the work item. 782 | If the work item didn't run yet then the caller waits until timeout or until the cancelWaitHandle is signaled. 783 | </summary> 784 | <param name="millisecondsTimeout">Timeout in milliseconds, or -1 for infinite</param> 785 | <param name="exitContext"> 786 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 787 | </param> 788 | <param name="cancelWaitHandle">A cancel wait handle to interrupt the blocking if needed</param> 789 | <returns>The result of the work item</returns> 790 | On timeout throws WorkItemTimeoutException 791 | On cancel throws WorkItemCancelException 792 | </member> 793 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.TimeSpan,System.Boolean,System.Threading.WaitHandle)"> 794 | <summary> 795 | Get the result of the work item. 796 | If the work item didn't run yet then the caller waits until timeout or until the cancelWaitHandle is signaled. 797 | </summary> 798 | <returns>The result of the work item</returns> 799 | On timeout throws WorkItemTimeoutException 800 | On cancel throws WorkItemCancelException 801 | </member> 802 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.Exception@)"> 803 | <summary> 804 | Get the result of the work item. 805 | If the work item didn't run yet then the caller waits. 806 | </summary> 807 | <param name="e">Filled with the exception if one was thrown</param> 808 | <returns>The result of the work item</returns> 809 | </member> 810 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.Int32,System.Boolean,System.Exception@)"> 811 | <summary> 812 | Get the result of the work item. 813 | If the work item didn't run yet then the caller waits until timeout. 814 | </summary> 815 | <param name="millisecondsTimeout"></param> 816 | <param name="exitContext"></param> 817 | <param name="e">Filled with the exception if one was thrown</param> 818 | <returns>The result of the work item</returns> 819 | On timeout throws WorkItemTimeoutException 820 | </member> 821 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.TimeSpan,System.Boolean,System.Exception@)"> 822 | <summary> 823 | Get the result of the work item. 824 | If the work item didn't run yet then the caller waits until timeout. 825 | </summary> 826 | <param name="exitContext"></param> 827 | <param name="e">Filled with the exception if one was thrown</param> 828 | <param name="timeout"></param> 829 | <returns>The result of the work item</returns> 830 | On timeout throws WorkItemTimeoutException 831 | </member> 832 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.Int32,System.Boolean,System.Threading.WaitHandle,System.Exception@)"> 833 | <summary> 834 | Get the result of the work item. 835 | If the work item didn't run yet then the caller waits until timeout or until the cancelWaitHandle is signaled. 836 | </summary> 837 | <param name="millisecondsTimeout">Timeout in milliseconds, or -1 for infinite</param> 838 | <param name="exitContext"> 839 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 840 | </param> 841 | <param name="cancelWaitHandle">A cancel wait handle to interrupt the blocking if needed</param> 842 | <param name="e">Filled with the exception if one was thrown</param> 843 | <returns>The result of the work item</returns> 844 | On timeout throws WorkItemTimeoutException 845 | On cancel throws WorkItemCancelException 846 | </member> 847 | <member name="M:Amib.Threading.IWorkItemResult`1.GetResult(System.TimeSpan,System.Boolean,System.Threading.WaitHandle,System.Exception@)"> 848 | <summary> 849 | Get the result of the work item. 850 | If the work item didn't run yet then the caller waits until timeout or until the cancelWaitHandle is signaled. 851 | </summary> 852 | <returns>The result of the work item</returns> 853 | <param name="cancelWaitHandle"></param> 854 | <param name="e">Filled with the exception if one was thrown</param> 855 | <param name="timeout"></param> 856 | <param name="exitContext"></param> 857 | On timeout throws WorkItemTimeoutException 858 | On cancel throws WorkItemCancelException 859 | </member> 860 | <member name="M:Amib.Threading.IWorkItemResult`1.Cancel"> 861 | <summary> 862 | Same as Cancel(false). 863 | </summary> 864 | </member> 865 | <member name="M:Amib.Threading.IWorkItemResult`1.Cancel(System.Boolean)"> 866 | <summary> 867 | Cancel the work item execution. 868 | If the work item is in the queue then it won't execute 869 | If the work item is completed, it will remain completed 870 | If the work item is in progress then the user can check the SmartThreadPool.IsWorkItemCanceled 871 | property to check if the work item has been cancelled. If the abortExecution is set to true then 872 | the Smart Thread Pool will send an AbortException to the running thread to stop the execution 873 | of the work item. When an in progress work item is canceled its GetResult will throw WorkItemCancelException. 874 | If the work item is already cancelled it will remain cancelled 875 | </summary> 876 | <param name="abortExecution">When true send an AbortException to the executing thread.</param> 877 | <returns>Returns true if the work item was not completed, otherwise false.</returns> 878 | </member> 879 | <member name="P:Amib.Threading.IWorkItemResult`1.IsCompleted"> 880 | <summary> 881 | Gets an indication whether the asynchronous operation has completed. 882 | </summary> 883 | </member> 884 | <member name="P:Amib.Threading.IWorkItemResult`1.IsCanceled"> 885 | <summary> 886 | Gets an indication whether the asynchronous operation has been canceled. 887 | </summary> 888 | </member> 889 | <member name="P:Amib.Threading.IWorkItemResult`1.State"> 890 | <summary> 891 | Gets the user-defined object that contains context data 892 | for the work item method. 893 | </summary> 894 | </member> 895 | <member name="P:Amib.Threading.IWorkItemResult`1.WorkItemPriority"> 896 | <summary> 897 | Get the work item's priority 898 | </summary> 899 | </member> 900 | <member name="P:Amib.Threading.IWorkItemResult`1.Result"> 901 | <summary> 902 | Return the result, same as GetResult() 903 | </summary> 904 | </member> 905 | <member name="P:Amib.Threading.IWorkItemResult`1.Exception"> 906 | <summary> 907 | Returns the exception if occured otherwise returns null. 908 | </summary> 909 | </member> 910 | <member name="M:Amib.Threading.Internal.IInternalWaitableResult.GetWorkItemResult"> 911 | <summary> 912 | This method is intent for internal use. 913 | </summary> 914 | </member> 915 | <member name="T:Amib.Threading.Internal.WorkItemsGroup"> 916 | <summary> 917 | Summary description for WorkItemsGroup. 918 | </summary> 919 | </member> 920 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._stp"> 921 | <summary> 922 | A reference to the SmartThreadPool instance that created this 923 | WorkItemsGroup. 924 | </summary> 925 | </member> 926 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._isSuspended"> 927 | <summary> 928 | A flag to indicate if the Work Items Group is now suspended. 929 | </summary> 930 | </member> 931 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._concurrency"> 932 | <summary> 933 | Defines how many work items of this WorkItemsGroup can run at once. 934 | </summary> 935 | </member> 936 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._workItemsQueue"> 937 | <summary> 938 | Priority queue to hold work items before they are passed 939 | to the SmartThreadPool. 940 | </summary> 941 | </member> 942 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._workItemsInStpQueue"> 943 | <summary> 944 | Indicate how many work items are waiting in the SmartThreadPool 945 | queue. 946 | This value is used to apply the concurrency. 947 | </summary> 948 | </member> 949 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._workItemsExecutingInStp"> 950 | <summary> 951 | Indicate how many work items are currently running in the SmartThreadPool. 952 | This value is used with the Cancel, to calculate if we can send new 953 | work items to the STP. 954 | </summary> 955 | </member> 956 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._workItemsGroupStartInfo"> 957 | <summary> 958 | WorkItemsGroup start information 959 | </summary> 960 | </member> 961 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._isIdleWaitHandle"> 962 | <summary> 963 | Signaled when all of the WorkItemsGroup's work item completed. 964 | </summary> 965 | </member> 966 | <member name="F:Amib.Threading.Internal.WorkItemsGroup._canceledWorkItemsGroup"> 967 | <summary> 968 | A common object for all the work items that this work items group 969 | generate so we can mark them to cancel in O(1) 970 | </summary> 971 | </member> 972 | <member name="M:Amib.Threading.Internal.WorkItemsGroup.Start"> 973 | <summary> 974 | Start the Work Items Group if it was started suspended 975 | </summary> 976 | </member> 977 | <member name="M:Amib.Threading.Internal.WorkItemsGroup.WaitForIdle(System.Int32)"> 978 | <summary> 979 | Wait for the thread pool to be idle 980 | </summary> 981 | </member> 982 | <member name="E:Amib.Threading.Internal.WorkItemsGroup._onIdle"> 983 | <summary> 984 | The OnIdle event 985 | </summary> 986 | </member> 987 | <member name="P:Amib.Threading.Internal.WorkItemsGroup.WIGStartInfo"> 988 | <summary> 989 | WorkItemsGroup start information 990 | </summary> 991 | </member> 992 | <member name="T:Amib.Threading.WorkItemCallback"> 993 | <summary> 994 | A delegate that represents the method to run as the work item 995 | </summary> 996 | <param name="state">A state object for the method to run</param> 997 | </member> 998 | <member name="T:Amib.Threading.PostExecuteWorkItemCallback"> 999 | <summary> 1000 | A delegate to call after the WorkItemCallback completed 1001 | </summary> 1002 | <param name="wir">The work item result object</param> 1003 | </member> 1004 | <member name="T:Amib.Threading.PostExecuteWorkItemCallback`1"> 1005 | <summary> 1006 | A delegate to call after the WorkItemCallback completed 1007 | </summary> 1008 | <param name="wir">The work item result object</param> 1009 | </member> 1010 | <member name="T:Amib.Threading.WorkItemsGroupIdleHandler"> 1011 | <summary> 1012 | A delegate to call when a WorkItemsGroup becomes idle 1013 | </summary> 1014 | <param name="workItemsGroup">A reference to the WorkItemsGroup that became idle</param> 1015 | </member> 1016 | <member name="T:Amib.Threading.ThreadInitializationHandler"> 1017 | <summary> 1018 | A delegate to call after a thread is created, but before 1019 | it's first use. 1020 | </summary> 1021 | </member> 1022 | <member name="T:Amib.Threading.ThreadTerminationHandler"> 1023 | <summary> 1024 | A delegate to call when a thread is about to exit, after 1025 | it is no longer belong to the pool. 1026 | </summary> 1027 | </member> 1028 | <member name="T:Amib.Threading.WorkItemPriority"> 1029 | <summary> 1030 | Defines the availeable priorities of a work item. 1031 | The higher the priority a work item has, the sooner 1032 | it will be executed. 1033 | </summary> 1034 | </member> 1035 | <member name="F:Amib.Threading.CallToPostExecute.Never"> 1036 | <summary> 1037 | Never call to the PostExecute call back 1038 | </summary> 1039 | </member> 1040 | <member name="F:Amib.Threading.CallToPostExecute.WhenWorkItemCanceled"> 1041 | <summary> 1042 | Call to the PostExecute only when the work item is cancelled 1043 | </summary> 1044 | </member> 1045 | <member name="F:Amib.Threading.CallToPostExecute.WhenWorkItemNotCanceled"> 1046 | <summary> 1047 | Call to the PostExecute only when the work item is not cancelled 1048 | </summary> 1049 | </member> 1050 | <member name="F:Amib.Threading.CallToPostExecute.Always"> 1051 | <summary> 1052 | Always call to the PostExecute 1053 | </summary> 1054 | </member> 1055 | <member name="T:Amib.Threading.IWorkItemResult"> 1056 | <summary> 1057 | IWorkItemResult interface. 1058 | Created when a WorkItemCallback work item is queued. 1059 | </summary> 1060 | </member> 1061 | <member name="T:Amib.Threading.Internal.STPPerformanceCounter"> 1062 | <summary> 1063 | Summary description for STPPerformanceCounter. 1064 | </summary> 1065 | </member> 1066 | <member name="T:Amib.Threading.Internal.WorkItem"> 1067 | <summary> 1068 | Holds a callback delegate and the state for that delegate. 1069 | </summary> 1070 | </member> 1071 | <member name="F:Amib.Threading.Internal.WorkItem._callback"> 1072 | <summary> 1073 | Callback delegate for the callback. 1074 | </summary> 1075 | </member> 1076 | <member name="F:Amib.Threading.Internal.WorkItem._state"> 1077 | <summary> 1078 | State with which to call the callback delegate. 1079 | </summary> 1080 | </member> 1081 | <member name="F:Amib.Threading.Internal.WorkItem._callerContext"> 1082 | <summary> 1083 | Stores the caller's context 1084 | </summary> 1085 | </member> 1086 | <member name="F:Amib.Threading.Internal.WorkItem._result"> 1087 | <summary> 1088 | Holds the result of the mehtod 1089 | </summary> 1090 | </member> 1091 | <member name="F:Amib.Threading.Internal.WorkItem._exception"> 1092 | <summary> 1093 | Hold the exception if the method threw it 1094 | </summary> 1095 | </member> 1096 | <member name="F:Amib.Threading.Internal.WorkItem._workItemState"> 1097 | <summary> 1098 | Hold the state of the work item 1099 | </summary> 1100 | </member> 1101 | <member name="F:Amib.Threading.Internal.WorkItem._workItemCompleted"> 1102 | <summary> 1103 | A ManualResetEvent to indicate that the result is ready 1104 | </summary> 1105 | </member> 1106 | <member name="F:Amib.Threading.Internal.WorkItem._workItemCompletedRefCount"> 1107 | <summary> 1108 | A reference count to the _workItemCompleted. 1109 | When it reaches to zero _workItemCompleted is Closed 1110 | </summary> 1111 | </member> 1112 | <member name="F:Amib.Threading.Internal.WorkItem._workItemResult"> 1113 | <summary> 1114 | Represents the result state of the work item 1115 | </summary> 1116 | </member> 1117 | <member name="F:Amib.Threading.Internal.WorkItem._workItemInfo"> 1118 | <summary> 1119 | Work item info 1120 | </summary> 1121 | </member> 1122 | <member name="F:Amib.Threading.Internal.WorkItem._canceledWorkItemsGroup"> 1123 | <summary> 1124 | A reference to an object that indicates whatever the 1125 | WorkItemsGroup has been canceled 1126 | </summary> 1127 | </member> 1128 | <member name="F:Amib.Threading.Internal.WorkItem._canceledSmartThreadPool"> 1129 | <summary> 1130 | A reference to an object that indicates whatever the 1131 | SmartThreadPool has been canceled 1132 | </summary> 1133 | </member> 1134 | <member name="F:Amib.Threading.Internal.WorkItem._workItemsGroup"> 1135 | <summary> 1136 | The work item group this work item belong to. 1137 | </summary> 1138 | </member> 1139 | <member name="F:Amib.Threading.Internal.WorkItem._executingThread"> 1140 | <summary> 1141 | The thread that executes this workitem. 1142 | This field is available for the period when the work item is executed, before and after it is null. 1143 | </summary> 1144 | </member> 1145 | <member name="F:Amib.Threading.Internal.WorkItem._expirationTime"> 1146 | <summary> 1147 | The absulote time when the work item will be timeout 1148 | </summary> 1149 | </member> 1150 | <member name="F:Amib.Threading.Internal.WorkItem._waitingOnQueueStopwatch"> 1151 | <summary> 1152 | Stores how long the work item waited on the stp queue 1153 | </summary> 1154 | </member> 1155 | <member name="F:Amib.Threading.Internal.WorkItem._processingStopwatch"> 1156 | <summary> 1157 | Stores how much time it took the work item to execute after it went out of the queue 1158 | </summary> 1159 | </member> 1160 | <member name="M:Amib.Threading.Internal.WorkItem.#ctor(Amib.Threading.IWorkItemsGroup,Amib.Threading.WorkItemInfo,Amib.Threading.WorkItemCallback,System.Object)"> 1161 | <summary> 1162 | Initialize the callback holding object. 1163 | </summary> 1164 | <param name="workItemsGroup">The workItemGroup of the workitem</param> 1165 | <param name="workItemInfo">The WorkItemInfo of te workitem</param> 1166 | <param name="callback">Callback delegate for the callback.</param> 1167 | <param name="state">State with which to call the callback delegate.</param> 1168 | 1169 | We assume that the WorkItem object is created within the thread 1170 | that meant to run the callback 1171 | </member> 1172 | <member name="M:Amib.Threading.Internal.WorkItem.StartingWorkItem"> 1173 | <summary> 1174 | Change the state of the work item to in progress if it wasn't canceled. 1175 | </summary> 1176 | <returns> 1177 | Return true on success or false in case the work item was canceled. 1178 | If the work item needs to run a post execute then the method will return true. 1179 | </returns> 1180 | </member> 1181 | <member name="M:Amib.Threading.Internal.WorkItem.Execute"> 1182 | <summary> 1183 | Execute the work item and the post execute 1184 | </summary> 1185 | </member> 1186 | <member name="M:Amib.Threading.Internal.WorkItem.ExecuteWorkItem"> 1187 | <summary> 1188 | Execute the work item 1189 | </summary> 1190 | </member> 1191 | <member name="M:Amib.Threading.Internal.WorkItem.PostExecute"> 1192 | <summary> 1193 | Runs the post execute callback 1194 | </summary> 1195 | </member> 1196 | <member name="M:Amib.Threading.Internal.WorkItem.SetResult(System.Object,System.Exception)"> 1197 | <summary> 1198 | Set the result of the work item to return 1199 | </summary> 1200 | <param name="result">The result of the work item</param> 1201 | <param name="exception">The exception that was throw while the workitem executed, null 1202 | if there was no exception.</param> 1203 | </member> 1204 | <member name="M:Amib.Threading.Internal.WorkItem.GetWorkItemResult"> 1205 | <summary> 1206 | Returns the work item result 1207 | </summary> 1208 | <returns>The work item result</returns> 1209 | </member> 1210 | <member name="M:Amib.Threading.Internal.WorkItem.WaitAll(Amib.Threading.IWaitableResult[],System.Int32,System.Boolean,System.Threading.WaitHandle)"> 1211 | <summary> 1212 | Wait for all work items to complete 1213 | </summary> 1214 | <param name="waitableResults">Array of work item result objects</param> 1215 | <param name="millisecondsTimeout">The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.</param> 1216 | <param name="exitContext"> 1217 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1218 | </param> 1219 | <param name="cancelWaitHandle">A cancel wait handle to interrupt the wait if needed</param> 1220 | <returns> 1221 | true when every work item in waitableResults has completed; otherwise false. 1222 | </returns> 1223 | </member> 1224 | <member name="M:Amib.Threading.Internal.WorkItem.WaitAny(Amib.Threading.IWaitableResult[],System.Int32,System.Boolean,System.Threading.WaitHandle)"> 1225 | <summary> 1226 | Waits for any of the work items in the specified array to complete, cancel, or timeout 1227 | </summary> 1228 | <param name="waitableResults">Array of work item result objects</param> 1229 | <param name="millisecondsTimeout">The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.</param> 1230 | <param name="exitContext"> 1231 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1232 | </param> 1233 | <param name="cancelWaitHandle">A cancel wait handle to interrupt the wait if needed</param> 1234 | <returns> 1235 | The array index of the work item result that satisfied the wait, or WaitTimeout if no work item result satisfied the wait and a time interval equivalent to millisecondsTimeout has passed or the work item has been canceled. 1236 | </returns> 1237 | </member> 1238 | <member name="M:Amib.Threading.Internal.WorkItem.GetWaitHandles(Amib.Threading.IWaitableResult[],System.Threading.WaitHandle[])"> 1239 | <summary> 1240 | Fill an array of wait handles with the work items wait handles. 1241 | </summary> 1242 | <param name="waitableResults">An array of work item results</param> 1243 | <param name="waitHandles">An array of wait handles to fill</param> 1244 | </member> 1245 | <member name="M:Amib.Threading.Internal.WorkItem.ReleaseWaitHandles(Amib.Threading.IWaitableResult[])"> 1246 | <summary> 1247 | Release the work items' wait handles 1248 | </summary> 1249 | <param name="waitableResults">An array of work item results</param> 1250 | </member> 1251 | <member name="M:Amib.Threading.Internal.WorkItem.SetWorkItemState(Amib.Threading.Internal.WorkItem.WorkItemState)"> 1252 | <summary> 1253 | Sets the work item's state 1254 | </summary> 1255 | <param name="workItemState">The state to set the work item to</param> 1256 | </member> 1257 | <member name="M:Amib.Threading.Internal.WorkItem.SignalComplete(System.Boolean)"> 1258 | <summary> 1259 | Signals that work item has been completed or canceled 1260 | </summary> 1261 | <param name="canceled">Indicates that the work item has been canceled</param> 1262 | </member> 1263 | <member name="M:Amib.Threading.Internal.WorkItem.Cancel(System.Boolean)"> 1264 | <summary> 1265 | Cancel the work item if it didn't start running yet. 1266 | </summary> 1267 | <returns>Returns true on success or false if the work item is in progress or already completed</returns> 1268 | </member> 1269 | <member name="M:Amib.Threading.Internal.WorkItem.GetResult(System.Int32,System.Boolean,System.Threading.WaitHandle)"> 1270 | <summary> 1271 | Get the result of the work item. 1272 | If the work item didn't run yet then the caller waits for the result, timeout, or cancel. 1273 | In case of error the method throws and exception 1274 | </summary> 1275 | <returns>The result of the work item</returns> 1276 | </member> 1277 | <member name="M:Amib.Threading.Internal.WorkItem.GetResult(System.Int32,System.Boolean,System.Threading.WaitHandle,System.Exception@)"> 1278 | <summary> 1279 | Get the result of the work item. 1280 | If the work item didn't run yet then the caller waits for the result, timeout, or cancel. 1281 | In case of error the e argument is filled with the exception 1282 | </summary> 1283 | <returns>The result of the work item</returns> 1284 | </member> 1285 | <member name="M:Amib.Threading.Internal.WorkItem.GetWaitHandle"> 1286 | <summary> 1287 | A wait handle to wait for completion, cancel, or timeout 1288 | </summary> 1289 | </member> 1290 | <member name="E:Amib.Threading.Internal.WorkItem._workItemStartedEvent"> 1291 | <summary> 1292 | Called when the WorkItem starts 1293 | </summary> 1294 | </member> 1295 | <member name="E:Amib.Threading.Internal.WorkItem._workItemCompletedEvent"> 1296 | <summary> 1297 | Called when the WorkItem completes 1298 | </summary> 1299 | </member> 1300 | <member name="P:Amib.Threading.Internal.WorkItem.IsCompleted"> 1301 | <summary> 1302 | Returns true when the work item has completed or canceled 1303 | </summary> 1304 | </member> 1305 | <member name="P:Amib.Threading.Internal.WorkItem.IsCanceled"> 1306 | <summary> 1307 | Returns true when the work item has canceled 1308 | </summary> 1309 | </member> 1310 | <member name="P:Amib.Threading.Internal.WorkItem.WorkItemPriority"> 1311 | <summary> 1312 | Returns the priority of the work item 1313 | </summary> 1314 | </member> 1315 | <member name="F:Amib.Threading.Internal.WorkItem.WorkItemResult._workItem"> 1316 | <summary> 1317 | A back reference to the work item 1318 | </summary> 1319 | </member> 1320 | <member name="P:Amib.Threading.Internal.WorkItem.WorkItemResult.Result"> 1321 | <summary> 1322 | Return the result, same as GetResult() 1323 | </summary> 1324 | </member> 1325 | <member name="P:Amib.Threading.Internal.WorkItem.WorkItemResult.Exception"> 1326 | <summary> 1327 | Returns the exception if occured otherwise returns null. 1328 | This value is valid only after the work item completed, 1329 | before that it is always null. 1330 | </summary> 1331 | </member> 1332 | <member name="T:Amib.Threading.Internal.WorkItem.WorkItemState"> 1333 | <summary> 1334 | Indicates the state of the work item in the thread pool 1335 | </summary> 1336 | </member> 1337 | <member name="T:Amib.Threading.WorkItemInfo"> 1338 | <summary> 1339 | Summary description for WorkItemInfo. 1340 | </summary> 1341 | </member> 1342 | <member name="P:Amib.Threading.WorkItemInfo.UseCallerCallContext"> 1343 | <summary> 1344 | Get/Set if to use the caller's security context 1345 | </summary> 1346 | </member> 1347 | <member name="P:Amib.Threading.WorkItemInfo.UseCallerHttpContext"> 1348 | <summary> 1349 | Get/Set if to use the caller's HTTP context 1350 | </summary> 1351 | </member> 1352 | <member name="P:Amib.Threading.WorkItemInfo.DisposeOfStateObjects"> 1353 | <summary> 1354 | Get/Set if to dispose of the state object of a work item 1355 | </summary> 1356 | </member> 1357 | <member name="P:Amib.Threading.WorkItemInfo.CallToPostExecute"> 1358 | <summary> 1359 | Get/Set the run the post execute options 1360 | </summary> 1361 | </member> 1362 | <member name="P:Amib.Threading.WorkItemInfo.PostExecuteWorkItemCallback"> 1363 | <summary> 1364 | Get/Set the post execute callback 1365 | </summary> 1366 | </member> 1367 | <member name="P:Amib.Threading.WorkItemInfo.WorkItemPriority"> 1368 | <summary> 1369 | Get/Set the work item's priority 1370 | </summary> 1371 | </member> 1372 | <member name="P:Amib.Threading.WorkItemInfo.Timeout"> 1373 | <summary> 1374 | Get/Set the work item's timout in milliseconds. 1375 | This is a passive timout. When the timout expires the work item won't be actively aborted! 1376 | </summary> 1377 | </member> 1378 | <member name="T:Amib.Threading.SmartThreadPool"> 1379 | <summary> 1380 | Smart thread pool class. 1381 | </summary> 1382 | </member> 1383 | <member name="F:Amib.Threading.SmartThreadPool.DefaultMinWorkerThreads"> 1384 | <summary> 1385 | Default minimum number of threads the thread pool contains. (0) 1386 | </summary> 1387 | </member> 1388 | <member name="F:Amib.Threading.SmartThreadPool.DefaultMaxWorkerThreads"> 1389 | <summary> 1390 | Default maximum number of threads the thread pool contains. (25) 1391 | </summary> 1392 | </member> 1393 | <member name="F:Amib.Threading.SmartThreadPool.DefaultIdleTimeout"> 1394 | <summary> 1395 | Default idle timeout in milliseconds. (One minute) 1396 | </summary> 1397 | </member> 1398 | <member name="F:Amib.Threading.SmartThreadPool.DefaultUseCallerCallContext"> 1399 | <summary> 1400 | Indicate to copy the security context of the caller and then use it in the call. (false) 1401 | </summary> 1402 | </member> 1403 | <member name="F:Amib.Threading.SmartThreadPool.DefaultUseCallerHttpContext"> 1404 | <summary> 1405 | Indicate to copy the HTTP context of the caller and then use it in the call. (false) 1406 | </summary> 1407 | </member> 1408 | <member name="F:Amib.Threading.SmartThreadPool.DefaultDisposeOfStateObjects"> 1409 | <summary> 1410 | Indicate to dispose of the state objects if they support the IDispose interface. (false) 1411 | </summary> 1412 | </member> 1413 | <member name="F:Amib.Threading.SmartThreadPool.DefaultCallToPostExecute"> 1414 | <summary> 1415 | The default option to run the post execute (CallToPostExecute.Always) 1416 | </summary> 1417 | </member> 1418 | <member name="F:Amib.Threading.SmartThreadPool.DefaultWorkItemPriority"> 1419 | <summary> 1420 | The default work item priority (WorkItemPriority.Normal) 1421 | </summary> 1422 | </member> 1423 | <member name="F:Amib.Threading.SmartThreadPool.DefaultStartSuspended"> 1424 | <summary> 1425 | The default is to work on work items as soon as they arrive 1426 | and not to wait for the start. (false) 1427 | </summary> 1428 | </member> 1429 | <member name="F:Amib.Threading.SmartThreadPool.DefaultThreadPriority"> 1430 | <summary> 1431 | The default thread priority (ThreadPriority.Normal) 1432 | </summary> 1433 | </member> 1434 | <member name="F:Amib.Threading.SmartThreadPool.DefaultThreadPoolName"> 1435 | <summary> 1436 | The default thread pool name. (SmartThreadPool) 1437 | </summary> 1438 | </member> 1439 | <member name="F:Amib.Threading.SmartThreadPool.DefaultFillStateWithArgs"> 1440 | <summary> 1441 | The default fill state with params. (false) 1442 | It is relevant only to QueueWorkItem of Action<...>/Func<...> 1443 | </summary> 1444 | </member> 1445 | <member name="F:Amib.Threading.SmartThreadPool.DefaultAreThreadsBackground"> 1446 | <summary> 1447 | The default thread backgroundness. (true) 1448 | </summary> 1449 | </member> 1450 | <member name="F:Amib.Threading.SmartThreadPool.DefaultApartmentState"> 1451 | <summary> 1452 | The default apartment state of a thread in the thread pool. 1453 | The default is ApartmentState.Unknown which means the STP will not 1454 | set the apartment of the thread. It will use the .NET default. 1455 | </summary> 1456 | </member> 1457 | <member name="F:Amib.Threading.SmartThreadPool.DefaultPostExecuteWorkItemCallback"> 1458 | <summary> 1459 | The default post execute method to run. (None) 1460 | When null it means not to call it. 1461 | </summary> 1462 | </member> 1463 | <member name="F:Amib.Threading.SmartThreadPool.DefaultPerformanceCounterInstanceName"> 1464 | <summary> 1465 | The default name to use for the performance counters instance. (null) 1466 | </summary> 1467 | </member> 1468 | <member name="F:Amib.Threading.SmartThreadPool.DefaultMaxStackSize"> 1469 | <summary> 1470 | The default Max Stack Size. (SmartThreadPool) 1471 | </summary> 1472 | </member> 1473 | <member name="F:Amib.Threading.SmartThreadPool._workerThreads"> 1474 | <summary> 1475 | Dictionary of all the threads in the thread pool. 1476 | </summary> 1477 | </member> 1478 | <member name="F:Amib.Threading.SmartThreadPool._workItemsQueue"> 1479 | <summary> 1480 | Queue of work items. 1481 | </summary> 1482 | </member> 1483 | <member name="F:Amib.Threading.SmartThreadPool._workItemsProcessed"> 1484 | <summary> 1485 | Count the work items handled. 1486 | Used by the performance counter. 1487 | </summary> 1488 | </member> 1489 | <member name="F:Amib.Threading.SmartThreadPool._inUseWorkerThreads"> 1490 | <summary> 1491 | Number of threads that currently work (not idle). 1492 | </summary> 1493 | </member> 1494 | <member name="F:Amib.Threading.SmartThreadPool._stpStartInfo"> 1495 | <summary> 1496 | Stores a copy of the original STPStartInfo. 1497 | It is used to change the MinThread and MaxThreads 1498 | </summary> 1499 | </member> 1500 | <member name="F:Amib.Threading.SmartThreadPool._currentWorkItemsCount"> 1501 | <summary> 1502 | Total number of work items that are stored in the work items queue 1503 | plus the work items that the threads in the pool are working on. 1504 | </summary> 1505 | </member> 1506 | <member name="F:Amib.Threading.SmartThreadPool._isIdleWaitHandle"> 1507 | <summary> 1508 | Signaled when the thread pool is idle, i.e. no thread is busy 1509 | and the work items queue is empty 1510 | </summary> 1511 | </member> 1512 | <member name="F:Amib.Threading.SmartThreadPool._shuttingDownEvent"> 1513 | <summary> 1514 | An event to signal all the threads to quit immediately. 1515 | </summary> 1516 | </member> 1517 | <member name="F:Amib.Threading.SmartThreadPool._isSuspended"> 1518 | <summary> 1519 | A flag to indicate if the Smart Thread Pool is now suspended. 1520 | </summary> 1521 | </member> 1522 | <member name="F:Amib.Threading.SmartThreadPool._shutdown"> 1523 | <summary> 1524 | A flag to indicate the threads to quit. 1525 | </summary> 1526 | </member> 1527 | <member name="F:Amib.Threading.SmartThreadPool._threadCounter"> 1528 | <summary> 1529 | Counts the threads created in the pool. 1530 | It is used to name the threads. 1531 | </summary> 1532 | </member> 1533 | <member name="F:Amib.Threading.SmartThreadPool._isDisposed"> 1534 | <summary> 1535 | Indicate that the SmartThreadPool has been disposed 1536 | </summary> 1537 | </member> 1538 | <member name="F:Amib.Threading.SmartThreadPool._workItemsGroups"> 1539 | <summary> 1540 | Holds all the WorkItemsGroup instaces that have at least one 1541 | work item int the SmartThreadPool 1542 | This variable is used in case of Shutdown 1543 | </summary> 1544 | </member> 1545 | <member name="F:Amib.Threading.SmartThreadPool._canceledSmartThreadPool"> 1546 | <summary> 1547 | A common object for all the work items int the STP 1548 | so we can mark them to cancel in O(1) 1549 | </summary> 1550 | </member> 1551 | <member name="F:Amib.Threading.SmartThreadPool._windowsPCs"> 1552 | <summary> 1553 | Windows STP performance counters 1554 | </summary> 1555 | </member> 1556 | <member name="F:Amib.Threading.SmartThreadPool._localPCs"> 1557 | <summary> 1558 | Local STP performance counters 1559 | </summary> 1560 | </member> 1561 | <member name="M:Amib.Threading.SmartThreadPool.#ctor"> 1562 | <summary> 1563 | Constructor 1564 | </summary> 1565 | </member> 1566 | <member name="M:Amib.Threading.SmartThreadPool.#ctor(System.Int32)"> 1567 | <summary> 1568 | Constructor 1569 | </summary> 1570 | <param name="idleTimeout">Idle timeout in milliseconds</param> 1571 | </member> 1572 | <member name="M:Amib.Threading.SmartThreadPool.#ctor(System.Int32,System.Int32)"> 1573 | <summary> 1574 | Constructor 1575 | </summary> 1576 | <param name="idleTimeout">Idle timeout in milliseconds</param> 1577 | <param name="maxWorkerThreads">Upper limit of threads in the pool</param> 1578 | </member> 1579 | <member name="M:Amib.Threading.SmartThreadPool.#ctor(System.Int32,System.Int32,System.Int32)"> 1580 | <summary> 1581 | Constructor 1582 | </summary> 1583 | <param name="idleTimeout">Idle timeout in milliseconds</param> 1584 | <param name="maxWorkerThreads">Upper limit of threads in the pool</param> 1585 | <param name="minWorkerThreads">Lower limit of threads in the pool</param> 1586 | </member> 1587 | <member name="M:Amib.Threading.SmartThreadPool.#ctor(Amib.Threading.STPStartInfo)"> 1588 | <summary> 1589 | Constructor 1590 | </summary> 1591 | <param name="stpStartInfo">A SmartThreadPool configuration that overrides the default behavior</param> 1592 | </member> 1593 | <member name="M:Amib.Threading.SmartThreadPool.Dequeue"> 1594 | <summary> 1595 | Waits on the queue for a work item, shutdown, or timeout. 1596 | </summary> 1597 | <returns> 1598 | Returns the WaitingCallback or null in case of timeout or shutdown. 1599 | </returns> 1600 | </member> 1601 | <member name="M:Amib.Threading.SmartThreadPool.Enqueue(Amib.Threading.Internal.WorkItem)"> 1602 | <summary> 1603 | Put a new work item in the queue 1604 | </summary> 1605 | <param name="workItem">A work item to queue</param> 1606 | </member> 1607 | <member name="M:Amib.Threading.SmartThreadPool.InformCompleted"> 1608 | <summary> 1609 | Inform that the current thread is about to quit or quiting. 1610 | The same thread may call this method more than once. 1611 | </summary> 1612 | </member> 1613 | <member name="M:Amib.Threading.SmartThreadPool.StartThreads(System.Int32)"> 1614 | <summary> 1615 | Starts new threads 1616 | </summary> 1617 | <param name="threadsCount">The number of threads to start</param> 1618 | </member> 1619 | <member name="M:Amib.Threading.SmartThreadPool.ProcessQueuedItems"> 1620 | <summary> 1621 | A worker thread method that processes work items from the work items queue. 1622 | </summary> 1623 | </member> 1624 | <member name="M:Amib.Threading.SmartThreadPool.Shutdown"> 1625 | <summary> 1626 | Force the SmartThreadPool to shutdown 1627 | </summary> 1628 | </member> 1629 | <member name="M:Amib.Threading.SmartThreadPool.Shutdown(System.Boolean,System.TimeSpan)"> 1630 | <summary> 1631 | Force the SmartThreadPool to shutdown with timeout 1632 | </summary> 1633 | </member> 1634 | <member name="M:Amib.Threading.SmartThreadPool.Shutdown(System.Boolean,System.Int32)"> 1635 | <summary> 1636 | Empties the queue of work items and abort the threads in the pool. 1637 | </summary> 1638 | </member> 1639 | <member name="M:Amib.Threading.SmartThreadPool.WaitAll(Amib.Threading.IWaitableResult[])"> 1640 | <summary> 1641 | Wait for all work items to complete 1642 | </summary> 1643 | <param name="waitableResults">Array of work item result objects</param> 1644 | <returns> 1645 | true when every work item in workItemResults has completed; otherwise false. 1646 | </returns> 1647 | </member> 1648 | <member name="M:Amib.Threading.SmartThreadPool.WaitAll(Amib.Threading.IWaitableResult[],System.TimeSpan,System.Boolean)"> 1649 | <summary> 1650 | Wait for all work items to complete 1651 | </summary> 1652 | <param name="waitableResults">Array of work item result objects</param> 1653 | <param name="timeout">The number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely. </param> 1654 | <param name="exitContext"> 1655 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1656 | </param> 1657 | <returns> 1658 | true when every work item in workItemResults has completed; otherwise false. 1659 | </returns> 1660 | </member> 1661 | <member name="M:Amib.Threading.SmartThreadPool.WaitAll(Amib.Threading.IWaitableResult[],System.TimeSpan,System.Boolean,System.Threading.WaitHandle)"> 1662 | <summary> 1663 | Wait for all work items to complete 1664 | </summary> 1665 | <param name="waitableResults">Array of work item result objects</param> 1666 | <param name="timeout">The number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely. </param> 1667 | <param name="exitContext"> 1668 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1669 | </param> 1670 | <param name="cancelWaitHandle">A cancel wait handle to interrupt the wait if needed</param> 1671 | <returns> 1672 | true when every work item in workItemResults has completed; otherwise false. 1673 | </returns> 1674 | </member> 1675 | <member name="M:Amib.Threading.SmartThreadPool.WaitAll(Amib.Threading.IWaitableResult[],System.Int32,System.Boolean)"> 1676 | <summary> 1677 | Wait for all work items to complete 1678 | </summary> 1679 | <param name="waitableResults">Array of work item result objects</param> 1680 | <param name="millisecondsTimeout">The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.</param> 1681 | <param name="exitContext"> 1682 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1683 | </param> 1684 | <returns> 1685 | true when every work item in workItemResults has completed; otherwise false. 1686 | </returns> 1687 | </member> 1688 | <member name="M:Amib.Threading.SmartThreadPool.WaitAll(Amib.Threading.IWaitableResult[],System.Int32,System.Boolean,System.Threading.WaitHandle)"> 1689 | <summary> 1690 | Wait for all work items to complete 1691 | </summary> 1692 | <param name="waitableResults">Array of work item result objects</param> 1693 | <param name="millisecondsTimeout">The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.</param> 1694 | <param name="exitContext"> 1695 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1696 | </param> 1697 | <param name="cancelWaitHandle">A cancel wait handle to interrupt the wait if needed</param> 1698 | <returns> 1699 | true when every work item in workItemResults has completed; otherwise false. 1700 | </returns> 1701 | </member> 1702 | <member name="M:Amib.Threading.SmartThreadPool.WaitAny(Amib.Threading.IWaitableResult[])"> 1703 | <summary> 1704 | Waits for any of the work items in the specified array to complete, cancel, or timeout 1705 | </summary> 1706 | <param name="waitableResults">Array of work item result objects</param> 1707 | <returns> 1708 | The array index of the work item result that satisfied the wait, or WaitTimeout if any of the work items has been canceled. 1709 | </returns> 1710 | </member> 1711 | <member name="M:Amib.Threading.SmartThreadPool.WaitAny(Amib.Threading.IWaitableResult[],System.TimeSpan,System.Boolean)"> 1712 | <summary> 1713 | Waits for any of the work items in the specified array to complete, cancel, or timeout 1714 | </summary> 1715 | <param name="waitableResults">Array of work item result objects</param> 1716 | <param name="timeout">The number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely. </param> 1717 | <param name="exitContext"> 1718 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1719 | </param> 1720 | <returns> 1721 | The array index of the work item result that satisfied the wait, or WaitTimeout if no work item result satisfied the wait and a time interval equivalent to millisecondsTimeout has passed or the work item has been canceled. 1722 | </returns> 1723 | </member> 1724 | <member name="M:Amib.Threading.SmartThreadPool.WaitAny(Amib.Threading.IWaitableResult[],System.TimeSpan,System.Boolean,System.Threading.WaitHandle)"> 1725 | <summary> 1726 | Waits for any of the work items in the specified array to complete, cancel, or timeout 1727 | </summary> 1728 | <param name="waitableResults">Array of work item result objects</param> 1729 | <param name="timeout">The number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely. </param> 1730 | <param name="exitContext"> 1731 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1732 | </param> 1733 | <param name="cancelWaitHandle">A cancel wait handle to interrupt the wait if needed</param> 1734 | <returns> 1735 | The array index of the work item result that satisfied the wait, or WaitTimeout if no work item result satisfied the wait and a time interval equivalent to millisecondsTimeout has passed or the work item has been canceled. 1736 | </returns> 1737 | </member> 1738 | <member name="M:Amib.Threading.SmartThreadPool.WaitAny(Amib.Threading.IWaitableResult[],System.Int32,System.Boolean)"> 1739 | <summary> 1740 | Waits for any of the work items in the specified array to complete, cancel, or timeout 1741 | </summary> 1742 | <param name="waitableResults">Array of work item result objects</param> 1743 | <param name="millisecondsTimeout">The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.</param> 1744 | <param name="exitContext"> 1745 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1746 | </param> 1747 | <returns> 1748 | The array index of the work item result that satisfied the wait, or WaitTimeout if no work item result satisfied the wait and a time interval equivalent to millisecondsTimeout has passed or the work item has been canceled. 1749 | </returns> 1750 | </member> 1751 | <member name="M:Amib.Threading.SmartThreadPool.WaitAny(Amib.Threading.IWaitableResult[],System.Int32,System.Boolean,System.Threading.WaitHandle)"> 1752 | <summary> 1753 | Waits for any of the work items in the specified array to complete, cancel, or timeout 1754 | </summary> 1755 | <param name="waitableResults">Array of work item result objects</param> 1756 | <param name="millisecondsTimeout">The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.</param> 1757 | <param name="exitContext"> 1758 | true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false. 1759 | </param> 1760 | <param name="cancelWaitHandle">A cancel wait handle to interrupt the wait if needed</param> 1761 | <returns> 1762 | The array index of the work item result that satisfied the wait, or WaitTimeout if no work item result satisfied the wait and a time interval equivalent to millisecondsTimeout has passed or the work item has been canceled. 1763 | </returns> 1764 | </member> 1765 | <member name="M:Amib.Threading.SmartThreadPool.CreateWorkItemsGroup(System.Int32)"> 1766 | <summary> 1767 | Creates a new WorkItemsGroup. 1768 | </summary> 1769 | <param name="concurrency">The number of work items that can be run concurrently</param> 1770 | <returns>A reference to the WorkItemsGroup</returns> 1771 | </member> 1772 | <member name="M:Amib.Threading.SmartThreadPool.CreateWorkItemsGroup(System.Int32,Amib.Threading.WIGStartInfo)"> 1773 | <summary> 1774 | Creates a new WorkItemsGroup. 1775 | </summary> 1776 | <param name="concurrency">The number of work items that can be run concurrently</param> 1777 | <param name="wigStartInfo">A WorkItemsGroup configuration that overrides the default behavior</param> 1778 | <returns>A reference to the WorkItemsGroup</returns> 1779 | </member> 1780 | <member name="M:Amib.Threading.SmartThreadPool.AbortOnWorkItemCancel"> 1781 | <summary> 1782 | Checks if the work item has been cancelled, and if yes then abort the thread. 1783 | Can be used with Cancel and timeout 1784 | </summary> 1785 | </member> 1786 | <member name="M:Amib.Threading.SmartThreadPool.GetStates"> 1787 | <summary> 1788 | Get an array with all the state objects of the currently running items. 1789 | The array represents a snap shot and impact performance. 1790 | </summary> 1791 | </member> 1792 | <member name="M:Amib.Threading.SmartThreadPool.Start"> 1793 | <summary> 1794 | Start the thread pool if it was started suspended. 1795 | If it is already running, this method is ignored. 1796 | </summary> 1797 | </member> 1798 | <member name="M:Amib.Threading.SmartThreadPool.Cancel(System.Boolean)"> 1799 | <summary> 1800 | Cancel all work items using thread abortion 1801 | </summary> 1802 | <param name="abortExecution">True to stop work items by raising ThreadAbortException</param> 1803 | </member> 1804 | <member name="M:Amib.Threading.SmartThreadPool.WaitForIdle(System.Int32)"> 1805 | <summary> 1806 | Wait for the thread pool to be idle 1807 | </summary> 1808 | </member> 1809 | <member name="M:Amib.Threading.SmartThreadPool.Join(System.Collections.Generic.IEnumerable{Amib.Threading.Action})"> 1810 | <summary> 1811 | Executes all actions in parallel. 1812 | Returns when they all finish. 1813 | </summary> 1814 | <param name="actions">Actions to execute</param> 1815 | </member> 1816 | <member name="M:Amib.Threading.SmartThreadPool.Join(Amib.Threading.Action[])"> 1817 | <summary> 1818 | Executes all actions in parallel. 1819 | Returns when they all finish. 1820 | </summary> 1821 | <param name="actions">Actions to execute</param> 1822 | </member> 1823 | <member name="M:Amib.Threading.SmartThreadPool.Choice(System.Collections.Generic.IEnumerable{Amib.Threading.Action})"> 1824 | <summary> 1825 | Executes all actions in parallel 1826 | Returns when the first one completes 1827 | </summary> 1828 | <param name="actions">Actions to execute</param> 1829 | </member> 1830 | <member name="M:Amib.Threading.SmartThreadPool.Choice(Amib.Threading.Action[])"> 1831 | <summary> 1832 | Executes all actions in parallel 1833 | Returns when the first one completes 1834 | </summary> 1835 | <param name="actions">Actions to execute</param> 1836 | </member> 1837 | <member name="M:Amib.Threading.SmartThreadPool.Pipe``1(``0,System.Collections.Generic.IEnumerable{System.Action{``0}})"> 1838 | <summary> 1839 | Executes actions in sequence asynchronously. 1840 | Returns immediately. 1841 | </summary> 1842 | <param name="pipeState">A state context that passes </param> 1843 | <param name="actions">Actions to execute in the order they should run</param> 1844 | </member> 1845 | <member name="M:Amib.Threading.SmartThreadPool.Pipe``1(``0,System.Action{``0}[])"> 1846 | <summary> 1847 | Executes actions in sequence asynchronously. 1848 | Returns immediately. 1849 | </summary> 1850 | <param name="pipeState"></param> 1851 | <param name="actions">Actions to execute in the order they should run</param> 1852 | </member> 1853 | <member name="E:Amib.Threading.SmartThreadPool._onThreadInitialization"> 1854 | <summary> 1855 | An event to call after a thread is created, but before 1856 | it's first use. 1857 | </summary> 1858 | </member> 1859 | <member name="E:Amib.Threading.SmartThreadPool._onThreadTermination"> 1860 | <summary> 1861 | An event to call when a thread is about to exit, after 1862 | it is no longer belong to the pool. 1863 | </summary> 1864 | </member> 1865 | <member name="P:Amib.Threading.SmartThreadPool.CurrentThreadEntry"> 1866 | <summary> 1867 | A reference to the current work item a thread from the thread pool 1868 | is executing. 1869 | </summary> 1870 | </member> 1871 | <member name="E:Amib.Threading.SmartThreadPool.OnThreadInitialization"> 1872 | <summary> 1873 | This event is fired when a thread is created. 1874 | Use it to initialize a thread before the work items use it. 1875 | </summary> 1876 | </member> 1877 | <member name="E:Amib.Threading.SmartThreadPool.OnThreadTermination"> 1878 | <summary> 1879 | This event is fired when a thread is terminating. 1880 | Use it for cleanup. 1881 | </summary> 1882 | </member> 1883 | <member name="P:Amib.Threading.SmartThreadPool.MinThreads"> 1884 | <summary> 1885 | Get/Set the lower limit of threads in the pool. 1886 | </summary> 1887 | </member> 1888 | <member name="P:Amib.Threading.SmartThreadPool.MaxThreads"> 1889 | <summary> 1890 | Get/Set the upper limit of threads in the pool. 1891 | </summary> 1892 | </member> 1893 | <member name="P:Amib.Threading.SmartThreadPool.ActiveThreads"> 1894 | <summary> 1895 | Get the number of threads in the thread pool. 1896 | Should be between the lower and the upper limits. 1897 | </summary> 1898 | </member> 1899 | <member name="P:Amib.Threading.SmartThreadPool.InUseThreads"> 1900 | <summary> 1901 | Get the number of busy (not idle) threads in the thread pool. 1902 | </summary> 1903 | </member> 1904 | <member name="P:Amib.Threading.SmartThreadPool.IsWorkItemCanceled"> 1905 | <summary> 1906 | Returns true if the current running work item has been cancelled. 1907 | Must be used within the work item's callback method. 1908 | The work item should sample this value in order to know if it 1909 | needs to quit before its completion. 1910 | </summary> 1911 | </member> 1912 | <member name="P:Amib.Threading.SmartThreadPool.STPStartInfo"> 1913 | <summary> 1914 | Thread Pool start information (readonly) 1915 | </summary> 1916 | </member> 1917 | <member name="P:Amib.Threading.SmartThreadPool.PerformanceCountersReader"> 1918 | <summary> 1919 | Return the local calculated performance counters 1920 | Available only if STPStartInfo.EnableLocalPerformanceCounters is true. 1921 | </summary> 1922 | </member> 1923 | <member name="P:Amib.Threading.SmartThreadPool.Concurrency"> 1924 | <summary> 1925 | Get/Set the maximum number of work items that execute cocurrency on the thread pool 1926 | </summary> 1927 | </member> 1928 | <member name="P:Amib.Threading.SmartThreadPool.WaitingCallbacks"> 1929 | <summary> 1930 | Get the number of work items in the queue. 1931 | </summary> 1932 | </member> 1933 | <member name="P:Amib.Threading.SmartThreadPool.WIGStartInfo"> 1934 | <summary> 1935 | WorkItemsGroup start information (readonly) 1936 | </summary> 1937 | </member> 1938 | <member name="E:Amib.Threading.SmartThreadPool.OnIdle"> 1939 | <summary> 1940 | This event is fired when all work items are completed. 1941 | (When IsIdle changes to true) 1942 | This event only work on WorkItemsGroup. On SmartThreadPool 1943 | it throws the NotImplementedException. 1944 | </summary> 1945 | </member> 1946 | <member name="F:Amib.Threading.SmartThreadPool.ThreadEntry._creationTime"> 1947 | <summary> 1948 | The thread creation time 1949 | The value is stored as UTC value. 1950 | </summary> 1951 | </member> 1952 | <member name="F:Amib.Threading.SmartThreadPool.ThreadEntry._lastAliveTime"> 1953 | <summary> 1954 | The last time this thread has been running 1955 | It is updated by IAmAlive() method 1956 | The value is stored as UTC value. 1957 | </summary> 1958 | </member> 1959 | <member name="F:Amib.Threading.SmartThreadPool.ThreadEntry._associatedSmartThreadPool"> 1960 | <summary> 1961 | A reference from each thread in the thread pool to its SmartThreadPool 1962 | object container. 1963 | With this variable a thread can know whatever it belongs to a 1964 | SmartThreadPool. 1965 | </summary> 1966 | </member> 1967 | <member name="P:Amib.Threading.SmartThreadPool.ThreadEntry.CurrentWorkItem"> 1968 | <summary> 1969 | A reference to the current work item a thread from the thread pool 1970 | is executing. 1971 | </summary> 1972 | </member> 1973 | <member name="T:Amib.Threading.Internal.WorkItemStateCallback"> 1974 | <summary> 1975 | An internal delegate to call when the WorkItem starts or completes 1976 | </summary> 1977 | </member> 1978 | <member name="T:Amib.Threading.WorkItemCancelException"> 1979 | <summary> 1980 | Represents an exception in case IWorkItemResult.GetResult has been canceled 1981 | </summary> 1982 | <summary> 1983 | Represents an exception in case IWorkItemResult.GetResult has been canceled 1984 | </summary> 1985 | </member> 1986 | <member name="T:Amib.Threading.WorkItemTimeoutException"> 1987 | <summary> 1988 | Represents an exception in case IWorkItemResult.GetResult has been timed out 1989 | </summary> 1990 | <summary> 1991 | Represents an exception in case IWorkItemResult.GetResult has been timed out 1992 | </summary> 1993 | </member> 1994 | <member name="T:Amib.Threading.WorkItemResultException"> 1995 | <summary> 1996 | Represents an exception in case IWorkItemResult.GetResult has been timed out 1997 | </summary> 1998 | <summary> 1999 | Represents an exception in case IWorkItemResult.GetResult has been timed out 2000 | </summary> 2001 | </member> 2002 | <member name="T:Amib.Threading.Internal.EventWaitHandleFactory"> 2003 | <summary> 2004 | EventWaitHandleFactory class. 2005 | This is a static class that creates AutoResetEvent and ManualResetEvent objects. 2006 | In WindowCE the WaitForMultipleObjects API fails to use the Handle property 2007 | of XxxResetEvent. It can use only handles that were created by the CreateEvent API. 2008 | Consequently this class creates the needed XxxResetEvent and replaces the handle if 2009 | it's a WindowsCE OS. 2010 | </summary> 2011 | </member> 2012 | <member name="M:Amib.Threading.Internal.EventWaitHandleFactory.CreateAutoResetEvent"> 2013 | <summary> 2014 | Create a new AutoResetEvent object 2015 | </summary> 2016 | <returns>Return a new AutoResetEvent object</returns> 2017 | </member> 2018 | <member name="M:Amib.Threading.Internal.EventWaitHandleFactory.CreateManualResetEvent(System.Boolean)"> 2019 | <summary> 2020 | Create a new ManualResetEvent object 2021 | </summary> 2022 | <returns>Return a new ManualResetEvent object</returns> 2023 | </member> 2024 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemCallback)"> 2025 | <summary> 2026 | Create a new work item 2027 | </summary> 2028 | <param name="workItemsGroup">The WorkItemsGroup of this workitem</param> 2029 | <param name="wigStartInfo">Work item group start information</param> 2030 | <param name="callback">A callback to execute</param> 2031 | <returns>Returns a work item</returns> 2032 | </member> 2033 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemCallback,Amib.Threading.WorkItemPriority)"> 2034 | <summary> 2035 | Create a new work item 2036 | </summary> 2037 | <param name="workItemsGroup">The WorkItemsGroup of this workitem</param> 2038 | <param name="wigStartInfo">Work item group start information</param> 2039 | <param name="callback">A callback to execute</param> 2040 | <param name="workItemPriority">The priority of the work item</param> 2041 | <returns>Returns a work item</returns> 2042 | </member> 2043 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemInfo,Amib.Threading.WorkItemCallback)"> 2044 | <summary> 2045 | Create a new work item 2046 | </summary> 2047 | <param name="workItemsGroup">The WorkItemsGroup of this workitem</param> 2048 | <param name="wigStartInfo">Work item group start information</param> 2049 | <param name="workItemInfo">Work item info</param> 2050 | <param name="callback">A callback to execute</param> 2051 | <returns>Returns a work item</returns> 2052 | </member> 2053 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemCallback,System.Object)"> 2054 | <summary> 2055 | Create a new work item 2056 | </summary> 2057 | <param name="workItemsGroup">The WorkItemsGroup of this workitem</param> 2058 | <param name="wigStartInfo">Work item group start information</param> 2059 | <param name="callback">A callback to execute</param> 2060 | <param name="state"> 2061 | The context object of the work item. Used for passing arguments to the work item. 2062 | </param> 2063 | <returns>Returns a work item</returns> 2064 | </member> 2065 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.WorkItemPriority)"> 2066 | <summary> 2067 | Create a new work item 2068 | </summary> 2069 | <param name="workItemsGroup">The work items group</param> 2070 | <param name="wigStartInfo">Work item group start information</param> 2071 | <param name="callback">A callback to execute</param> 2072 | <param name="state"> 2073 | The context object of the work item. Used for passing arguments to the work item. 2074 | </param> 2075 | <param name="workItemPriority">The work item priority</param> 2076 | <returns>Returns a work item</returns> 2077 | </member> 2078 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemInfo,Amib.Threading.WorkItemCallback,System.Object)"> 2079 | <summary> 2080 | Create a new work item 2081 | </summary> 2082 | <param name="workItemsGroup">The work items group</param> 2083 | <param name="wigStartInfo">Work item group start information</param> 2084 | <param name="workItemInfo">Work item information</param> 2085 | <param name="callback">A callback to execute</param> 2086 | <param name="state"> 2087 | The context object of the work item. Used for passing arguments to the work item. 2088 | </param> 2089 | <returns>Returns a work item</returns> 2090 | </member> 2091 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback)"> 2092 | <summary> 2093 | Create a new work item 2094 | </summary> 2095 | <param name="workItemsGroup">The work items group</param> 2096 | <param name="wigStartInfo">Work item group start information</param> 2097 | <param name="callback">A callback to execute</param> 2098 | <param name="state"> 2099 | The context object of the work item. Used for passing arguments to the work item. 2100 | </param> 2101 | <param name="postExecuteWorkItemCallback"> 2102 | A delegate to call after the callback completion 2103 | </param> 2104 | <returns>Returns a work item</returns> 2105 | </member> 2106 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.WorkItemPriority)"> 2107 | <summary> 2108 | Create a new work item 2109 | </summary> 2110 | <param name="workItemsGroup">The work items group</param> 2111 | <param name="wigStartInfo">Work item group start information</param> 2112 | <param name="callback">A callback to execute</param> 2113 | <param name="state"> 2114 | The context object of the work item. Used for passing arguments to the work item. 2115 | </param> 2116 | <param name="postExecuteWorkItemCallback"> 2117 | A delegate to call after the callback completion 2118 | </param> 2119 | <param name="workItemPriority">The work item priority</param> 2120 | <returns>Returns a work item</returns> 2121 | </member> 2122 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.CallToPostExecute)"> 2123 | <summary> 2124 | Create a new work item 2125 | </summary> 2126 | <param name="workItemsGroup">The work items group</param> 2127 | <param name="wigStartInfo">Work item group start information</param> 2128 | <param name="callback">A callback to execute</param> 2129 | <param name="state"> 2130 | The context object of the work item. Used for passing arguments to the work item. 2131 | </param> 2132 | <param name="postExecuteWorkItemCallback"> 2133 | A delegate to call after the callback completion 2134 | </param> 2135 | <param name="callToPostExecute">Indicates on which cases to call to the post execute callback</param> 2136 | <returns>Returns a work item</returns> 2137 | </member> 2138 | <member name="M:Amib.Threading.Internal.WorkItemFactory.CreateWorkItem(Amib.Threading.IWorkItemsGroup,Amib.Threading.WIGStartInfo,Amib.Threading.WorkItemCallback,System.Object,Amib.Threading.PostExecuteWorkItemCallback,Amib.Threading.CallToPostExecute,Amib.Threading.WorkItemPriority)"> 2139 | <summary> 2140 | Create a new work item 2141 | </summary> 2142 | <param name="workItemsGroup">The work items group</param> 2143 | <param name="wigStartInfo">Work item group start information</param> 2144 | <param name="callback">A callback to execute</param> 2145 | <param name="state"> 2146 | The context object of the work item. Used for passing arguments to the work item. 2147 | </param> 2148 | <param name="postExecuteWorkItemCallback"> 2149 | A delegate to call after the callback completion 2150 | </param> 2151 | <param name="callToPostExecute">Indicates on which cases to call to the post execute callback</param> 2152 | <param name="workItemPriority">The work item priority</param> 2153 | <returns>Returns a work item</returns> 2154 | </member> 2155 | <member name="T:Amib.Threading.Internal.CallerThreadContext"> 2156 | <summary> 2157 | This class stores the caller call context in order to restore 2158 | it when the work item is executed in the thread pool environment. 2159 | </summary> 2160 | </member> 2161 | <member name="M:Amib.Threading.Internal.CallerThreadContext.#ctor"> 2162 | <summary> 2163 | Constructor 2164 | </summary> 2165 | </member> 2166 | <member name="M:Amib.Threading.Internal.CallerThreadContext.Capture(System.Boolean,System.Boolean)"> 2167 | <summary> 2168 | Captures the current thread context 2169 | </summary> 2170 | <returns></returns> 2171 | </member> 2172 | <member name="M:Amib.Threading.Internal.CallerThreadContext.Apply(Amib.Threading.Internal.CallerThreadContext)"> 2173 | <summary> 2174 | Applies the thread context stored earlier 2175 | </summary> 2176 | <param name="callerThreadContext"></param> 2177 | </member> 2178 | </members> 2179 | </doc> 2180 | -------------------------------------------------------------------------------- /IPScannerLib/SmartThreadPool.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bp2008/IPScanner/8740b25f491aba6707b2e3983e7264c2a7e4c195/IPScannerLib/SmartThreadPool.dll -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 bp2008 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # IPScanner 2 | IP address scanner written in C# 3 | 4 | I wrote this IP address scanner myself. It is not efficient or well-polished, but it scans a network quicker than just about anything. I have customized it to recognize most devices on the networks I manage. 5 | --------------------------------------------------------------------------------