2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 19:42:58 +00:00
This commit is contained in:
Ahmed Zamil 2017-09-17 22:12:56 +03:00
parent 7ae722ab51
commit 38951a8cbd
6 changed files with 52 additions and 46 deletions

View File

@ -2,6 +2,15 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework> <TargetFramework>netstandard1.5</TargetFramework>
<Authors>Ahmed Kh. Zamil</Authors>
<Company>Esiur</Company>
<Product>Esiur MongoDB Store</Product>
<Description>MongoDB Store for Esiur Library</Description>
<Copyright>Ahmed Kh. Zamil</Copyright>
<PackageLicenseUrl>https://github.com/esiur/esiur-dotnet/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>http://www.esiur.com</PackageProjectUrl>
<RepositoryUrl>https://github.com/esiur/esiur-dotnet/</RepositoryUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -8,8 +8,6 @@ namespace Esiur.Engine
{ {
public class AsyncBag<T>:AsyncReply public class AsyncBag<T>:AsyncReply
{ {
//List<AsyncReply> replies = new List<AsyncReply>();
//List<T> results = new List<T>();
Dictionary<AsyncReply, T> results = new Dictionary<AsyncReply, T>(); Dictionary<AsyncReply, T> results = new Dictionary<AsyncReply, T>();
int count = 0; int count = 0;
bool sealedBag = false; bool sealedBag = false;
@ -19,13 +17,6 @@ namespace Esiur.Engine
base.Then(new Action<object>(o => callback((T[])o))); base.Then(new Action<object>(o => callback((T[])o)));
} }
/*
public void Trigger(T[] result)
{
Trigger((object)result);
}
*/
public void Seal() public void Seal()
{ {
sealedBag = true; sealedBag = true;
@ -54,11 +45,5 @@ namespace Esiur.Engine
} }
/*
public AsyncBag(T[] result)
{
this.result = result;
}
*/
} }
} }

View File

@ -2,6 +2,14 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework> <TargetFramework>netstandard1.5</TargetFramework>
<Description>Distributed Resources Platform</Description>
<Copyright>Ahmed Kh. Zamil</Copyright>
<PackageLicenseUrl>https://github.com/esiur/esiur-dotnet/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>http://www.esiur.com</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.0.0</Version>
<RepositoryUrl>https://github.com/esiur/esiur-dotnet</RepositoryUrl>
<Authors>Ahmed Kh. Zamil</Authors>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@ -9,6 +17,10 @@
<DefineConstants>TRACE;DEBUG;NETSTANDARD1_5</DefineConstants> <DefineConstants>TRACE;DEBUG;NETSTANDARD1_5</DefineConstants>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Remove="Net\UDP\UDPServer.cs" /> <Compile Remove="Net\UDP\UDPServer.cs" />
</ItemGroup> </ItemGroup>

View File

@ -1,31 +1,33 @@
/******************************************************************************\ /********************************************************************************\
* Uruky Sniffer Project * * Uruky Project *
* * * *
* Copyright (C) 2006 Ahmed Khalaf - ahmed@uruky.com * * Copyright (C) 2006 Ahmed Zamil - ahmed@dijlh.com *
* ahmed_baghdad@yahoo.com * * http://www.dijlh.com *
* http://www.uruky.com * * *
* http://www.dijlh.com * * Permission is hereby granted, free of charge, to any person obtaining a copy *
* * * of this software and associated documentation files (the "Software"), to deal *
* This program is free software; you can redistribute it and/or modify * * in the Software without restriction, including without limitation the rights *
* it under the terms of the GNU General Public License as published by * * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
* the Free Software Foundation; either version 2, or (at your option) * * copies of the Software, and to permit persons to whom the Software is *
* any later version. * * furnished to do so, subject to the following conditions: *
* * * *
* This program is distributed in the hope that it will be useful, * * The above copyright notice and this permission notice shall be included in all *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * * copies or substantial portions of the Software. *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * *
* GNU General Public License for more details. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* * * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* You should have received a copy of the GNU General Public License * * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
* along with this program; if not, write to the Free Software * * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
* * * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *
* File: Packet.cs * * SOFTWARE. *
* Description: Ethernet/ARP/IPv4/TCP/UDP Packet Decoding & Encoding Class * * *
* Compatibility: .Net Framework 2.0 / Mono 1.1.8 * * File: Packet.cs *
* * * Description: Ethernet/ARP/IPv4/TCP/UDP Packet Decoding & Encoding Class *
\******************************************************************************/ * Compatibility: .Net Framework 2.0 / Mono 1.1.8 *
* *
\********************************************************************************/

View File

@ -25,7 +25,7 @@ namespace Test
{ {
Info = new Structure(); Info = new Structure();
Info["size"] = 200; Info["size"] = 200;
Info["age"] = 30; Info["age"] = 28;
Info["name"] = "Zamil"; Info["name"] = "Zamil";
Name = "Ahmed"; Name = "Ahmed";
Level = 5; Level = 5;

View File

@ -1,8 +1,6 @@
/* /*
Copyright(c) Ahmed Kh. Zamil Copyright (c) 2017 Ahmed Kh. Zamil
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal