Changeset 4728

Show
Ignore:
Timestamp:
06/18/08 23:23:04 (6 months ago)
Author:
xmlhacker
Message:

this should now build again

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nuxleus/Source/CodeSamples/AwsSdbSOAP_Test/AwsSdbSOAP_Test.csproj

    r4715 r4728  
    6666      <Name>Scope</Name> 
    6767    </ProjectReference> 
     68    <ProjectReference Include="..\..\Nuxleus.Asynchronous\Nuxleus.Asynchronous.csproj"> 
     69      <Project>{EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}</Project> 
     70      <Name>Nuxleus.Asynchronous</Name> 
     71    </ProjectReference> 
    6872    <ProjectReference Include="..\..\Nuxleus.Extension.Aws\Nuxleus.Extension.Aws.csproj"> 
    6973      <Project>{058E925F-6FD0-4FAF-AA97-22D48D62923E}</Project> 
    7074      <Name>Nuxleus.Extension.Aws</Name> 
    71     </ProjectReference> 
    72     <ProjectReference Include="..\..\Nuxleus.Extension.Linq\Nuxleus.Extension.Linq.csproj"> 
    73       <Project>{D937BA9E-1E6C-4757-98CC-7D932F4697B0}</Project> 
    74       <Name>Nuxleus.Extension.Linq</Name> 
    7575    </ProjectReference> 
    7676  </ItemGroup> 
  • trunk/nuxleus/Source/CodeSamples/AwsSdbSOAP_Test/Handler/ExceptionHandler.cs

    r4697 r4728  
    55using VVMF.SOA.Common; 
    66using System.Net; 
    7 using EeekSoft.Asynchronous; 
     7using Nuxleus.Asynchronous; 
    88using System.IO; 
    99using System.Xml.Linq; 
  • trunk/nuxleus/Source/CodeSamples/AwsSdbSOAP_Test/LoadBalancer/WorkerQueue.cs

    r4700 r4728  
    22using System.Threading; 
    33using System.Collections.Generic; 
    4 using EeekSoft.Asynchronous; 
     4using Nuxleus.Asynchronous; 
    55 
    66namespace AwsSdbSOAP_Test { 
  • trunk/nuxleus/Source/CodeSamples/AwsSdbSOAP_Test/Program.cs

    r4724 r4728  
    1717        static void Main(string[] args) { 
    1818 
    19             Agent agent = new Agent(); 
     19            Agent<Program> agent = new Agent<Program>(); 
    2020 
    2121            System.Environment.SetEnvironmentVariable("AWS_PUBLIC_KEY", ConfigurationManager.AppSettings["AWS_PUBLIC_KEY"]); 
  • trunk/nuxleus/Source/CodeSamples/HttpGetAsyncResponse_Test/HttpGetAsyncResponse_Test.csproj

    r4649 r4728  
    44    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    55    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    6     <ProductVersion>9.0.20706</ProductVersion> 
     6    <ProductVersion>9.0.30428</ProductVersion> 
    77    <SchemaVersion>2.0</SchemaVersion> 
    88    <ProjectGuid>{A128AED6-F1C8-4D86-A22B-97EB0D892C70}</ProjectGuid> 
     
    5454      <Name>Nuxleus.Agent</Name> 
    5555    </ProjectReference> 
    56     <ProjectReference Include="..\..\Nuxleus.Extension.Linq\Nuxleus.Extension.Linq.csproj"> 
    57       <Project>{D937BA9E-1E6C-4757-98CC-7D932F4697B0}</Project> 
    58       <Name>Nuxleus.Extension.Linq</Name> 
     56    <ProjectReference Include="..\..\Nuxleus.Asynchronous\Nuxleus.Asynchronous.csproj"> 
     57      <Project>{EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}</Project> 
     58      <Name>Nuxleus.Asynchronous</Name> 
    5959    </ProjectReference> 
    6060    <ProjectReference Include="..\..\Nuxleus.Web\Nuxleus.Web.csproj"> 
  • trunk/nuxleus/Source/CodeSamples/HttpGetAsyncResponse_Test/Program.cs

    r4579 r4728  
    77using System.Threading; 
    88using System.Diagnostics; 
    9 using EeekSoft.Asynchronous; 
     9using Nuxleus.Asynchronous; 
    1010using System.Collections; 
    1111 
  • trunk/nuxleus/Source/CodeSamples/HttpGetRequestAsyncWorkflow_Test/HttpGetRequestAsyncWorkflow_Test.csproj

    r4689 r4728  
    5656      <Name>Nuxleus.Agent</Name> 
    5757    </ProjectReference> 
    58     <ProjectReference Include="..\..\Nuxleus.Extension.Linq\Nuxleus.Extension.Linq.csproj"> 
    59       <Project>{D937BA9E-1E6C-4757-98CC-7D932F4697B0}</Project> 
    60       <Name>Nuxleus.Extension.Linq</Name> 
     58    <ProjectReference Include="..\..\Nuxleus.Asynchronous\Nuxleus.Asynchronous.csproj"> 
     59      <Project>{EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}</Project> 
     60      <Name>Nuxleus.Asynchronous</Name> 
    6161    </ProjectReference> 
    6262  </ItemGroup> 
  • trunk/nuxleus/Source/CodeSamples/HttpGetRequestAsyncWorkflow_Test/Program.cs

    r4689 r4728  
    66using System.Threading; 
    77using System.Diagnostics; 
    8 using EeekSoft.Asynchronous; 
     8using Nuxleus.Asynchronous; 
    99using System.Net; 
    1010using System.Text.RegularExpressions; 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/Agent.cs

    r4723 r4728  
    33using Nuxleus.Extension.AWS.SimpleDB; 
    44using VVMF.SOA.Common; 
    5 using EeekSoft.Asynchronous; 
     5using Nuxleus.Asynchronous; 
    66using System.Net; 
    77using System.Configuration; 
     
    1212using Nuxleus.Extension.AWS.SimpleDB.Model; 
    1313using System.Xml.Linq; 
     14using Nuxleus.Extension; 
     15using log4net; 
     16using log4net.Config; 
    1417 
    1518namespace Nuxleus.Extension.Aws { 
    1619 
    17     public struct Agent { 
     20    public struct Agent<T> { 
     21 
     22        static readonly ILog m_loggerInstance = LogManager.GetLogger(typeof(T)); 
    1823 
    1924        static LoggerScope logger = new LoggerScope(); 
     
    2126        static ProfilerScope profiler = new ProfilerScope(); 
    2227        static int m_workers = (int.Parse(ConfigurationManager.AppSettings["WorkerQueueMultiplier"]) * System.Environment.ProcessorCount); 
     28 
     29        public static ILog GetBasicLogger() { 
     30            XmlConfigurator.Configure(new System.IO.FileInfo(("log4net.config"))); 
     31            return m_loggerInstance; 
     32        } 
    2333 
    2434        public void Initialize() { 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/Handler/ExceptionHandler.cs

    r4717 r4728  
    55using VVMF.SOA.Common; 
    66using System.Net; 
    7 using EeekSoft.Asynchronous; 
     7using Nuxleus.Asynchronous; 
    88using System.IO; 
    99using System.Xml.Linq; 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/LoadBalancer/WorkerQueue.cs

    r4723 r4728  
    22using System.Threading; 
    33using System.Collections.Generic; 
    4 using EeekSoft.Asynchronous; 
     4using Nuxleus.Asynchronous; 
    55 
    66namespace Nuxleus.Extension.AWS.SimpleDB { 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/Nuxleus.Extension.Aws.csproj

    r4727 r4728  
    3535  </PropertyGroup> 
    3636  <ItemGroup> 
     37    <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL"> 
     38      <SpecificVersion>False</SpecificVersion> 
     39      <HintPath>..\Dependencies\log4net.dll</HintPath> 
     40    </Reference> 
    3741    <Reference Include="System" /> 
    3842    <Reference Include="System.configuration" /> 
     
    6064  <ItemGroup> 
    6165    <Compile Include="Agent.cs" /> 
    62     <Compile Include="AwsConnection\HttpQueryConnection.cs" /> 
    63     <Compile Include="AwsConnection\IAwsConnection.cs" /> 
    6466    <Compile Include="Handler\ExceptionHandler.cs" /> 
     67    <Compile Include="HttpQueryConnection.cs" /> 
     68    <Compile Include="IAwsConnection.cs" /> 
    6569    <Compile Include="LoadBalancer\WorkerQueue.cs" /> 
    6670    <Compile Include="Properties\AssemblyInfo.cs" /> 
     
    7781    <Compile Include="Request\IRequest.cs" /> 
    7882    <Compile Include="Request\PutAttributesRequest.cs" /> 
     83    <Compile Include="Response\CreateDomainResponse.cs" /> 
     84    <Compile Include="Response\DeleteDomainResponse.cs" /> 
     85    <Compile Include="Response\QueryResponse.cs" /> 
     86    <Compile Include="Response\ListDomainsResponse.cs" /> 
     87    <Compile Include="Response\GetAttributesResponse.cs" /> 
    7988    <Compile Include="Response\IResponse.cs" /> 
     89    <Compile Include="Response\PutAttributesResponse.cs" /> 
    8090    <Compile Include="Scope\LoggerScope.cs" /> 
    8191    <Compile Include="Scope\ProfilerScope.cs" /> 
     
    8494    <Compile Include="SimpleDB\Model\Item.cs" /> 
    8595    <Compile Include="SimpleDB\Operation\Operation.cs" /> 
    86     <Compile Include="SimpleDB\SdbAction.cs" /> 
    8796    <Compile Include="SimpleDB\SimpleDBService.cs" /> 
    8897    <Compile Include="SimpleDB\Task\CreateDomain.cs" /> 
     
    93102    <Compile Include="SimpleDB\Task\PutAttributes.cs" /> 
    94103    <Compile Include="SimpleDB\Task\Query.cs" /> 
    95     <Compile Include="SimpleDB\Task\Task.cs" /> 
    96     <Compile Include="Utils\HMACSigner.cs" /> 
    97104  </ItemGroup> 
    98105  <ItemGroup> 
    99106    <None Include="Extf.Net.snk" /> 
     107    <None Include="log4net.config"> 
     108      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 
     109    </None> 
    100110    <None Include="Properties\Settings.settings"> 
    101111      <Generator>SettingsSingleFileGenerator</Generator> 
     
    118128      <Name>Nuxleus.Agent</Name> 
    119129    </ProjectReference> 
     130    <ProjectReference Include="..\Nuxleus.Asynchronous\Nuxleus.Asynchronous.csproj"> 
     131      <Project>{EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}</Project> 
     132      <Name>Nuxleus.Asynchronous</Name> 
     133    </ProjectReference> 
    120134    <ProjectReference Include="..\Nuxleus.Extension.Linq\Nuxleus.Extension.Linq.csproj"> 
    121135      <Project>{D937BA9E-1E6C-4757-98CC-7D932F4697B0}</Project> 
     
    131145    </ProjectReference> 
    132146  </ItemGroup> 
     147  <ItemGroup> 
     148    <Folder Include="Utils\" /> 
     149  </ItemGroup> 
    133150  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    134151  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/Response/IResponse.cs

    r4727 r4728  
    88    public interface IResponse { 
    99        KeyValuePair<string,string>[] Headers { get; set;} 
    10         String Response { get; set;
     10        String Response { get;
    1111    } 
    1212} 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/Operation/Operation.cs

    r4715 r4728  
    33using System.Linq; 
    44using System.Text; 
    5 using EeekSoft.Asynchronous; 
     5using Nuxleus.Asynchronous; 
    66using VVMF.SOA.Common; 
    77 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/SimpleDBService.cs

    r4727 r4728  
    1111using System.Globalization; 
    1212using Nuxleus.Extension; 
    13 using EeekSoft.Asynchronous; 
     13using Nuxleus.Asynchronous; 
    1414using System.Collections.Generic; 
    1515using System.Threading; 
     
    1717using System.Collections; 
    1818using System.Xml.Serialization; 
     19using Nuxleus.Extension.Aws; 
     20using log4net; 
    1921 
    2022namespace Nuxleus.Extension.AWS.SimpleDB { 
     
    4547        static XNamespace i = "http://www.w3.org/2001/XMLSchema-instance"; 
    4648        static XmlSerializer m_xSerializer = new XmlSerializer(typeof(TRequestType)); 
     49        static ILog m_logger = Agent<SimpleDBService<TRequestType>>.GetBasicLogger(); 
    4750 
    4851        public static IEnumerable<IAsync> CallWebService<TResultType>(ITask task, IRequest sdbRequest, Dictionary<IRequest, TResultType> responseList) { 
     
    6467            } 
    6568 
     69            Console.WriteLine("TaskID: {0}", task.TaskID); 
     70 
    6671            string soapMessage = output.ToString(); 
    6772            sdbRequest.RequestMessage = soapMessage; 
    68             //Console.WriteLine("XML: {0}", soapMessage); 
     73            m_logger.DebugFormat("SOAP message for task {0}: {1}", task.TaskID, soapMessage); 
    6974 
    7075            byte[] buffer = encoding.GetBytes(soapMessage); 
     
    7984            } 
    8085 
    81             //System.Console.WriteLine("Start Request: Thread is background: {0}, Thread ID: {1}, Thread is managed: {2}", Thread.CurrentThread.IsBackground, Thread.CurrentThread.ManagedThreadId, Thread.CurrentThread.IsThreadPoolThread); 
     86            m_logger.DebugFormat("Start Request: Thread is background: {0}, Thread ID: {1}, Thread is managed: {2}", Thread.CurrentThread.IsBackground, Thread.CurrentThread.ManagedThreadId, Thread.CurrentThread.IsThreadPoolThread); 
    8287 
    8388            using (Stream newStream = request.GetRequestStream()) { 
    8489                newStream.Write(buffer, 0, contentLength); 
     90                m_logger.DebugFormat("Sending request for task {0} on thread: {1}", task.TaskID, Thread.CurrentThread.ManagedThreadId); 
    8591                Async<WebResponse> response = request.GetResponseAsync(); 
    8692                yield return response; 
    87                 //System.Console.WriteLine("[] got response on thread: {0}", Thread.CurrentThread.ManagedThreadId); 
     93                m_logger.DebugFormat("Received response for task {0} on thread: {1}", task.TaskID, Thread.CurrentThread.ManagedThreadId); 
    8894                Stream stream = response.Result.GetResponseStream(); 
    8995                Async<TResultType> responseObject = stream.ReadToEndAsync<TResultType>().ExecuteAsync<TResultType>(); 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/Task/CreateDomain.cs

    r4727 r4728  
    22using System.Collections.Generic; 
    33using System.Xml.Serialization; 
    4 using EeekSoft.Asynchronous; 
    5 using Nuxleus.Extension.AWS.SimpleDB.Model; 
     4using Nuxleus.Asynchronous; 
    65 
    76namespace Nuxleus.Extension.AWS.SimpleDB { 
     
    1211 
    1312        string m_domainName; 
    14         List<String> m_attributeNameArray
    15         static Guid m_taskID = new Guid()
    16         static IRequest m_request = new GetAttributesRequest()
     13        Guid m_taskID
     14        IRequest m_request
     15        IResponse m_response
    1716 
    1817        [XmlElementAttribute(ElementName = "DomainName")] 
    1918        public string DomainName { 
    20             get { return m_domainName; } 
     19            get { 
     20                return m_domainName; } 
    2121            set { m_domainName = value; } 
    2222        } 
     
    3232        } 
    3333 
    34         public IResponse Response { get; set; } 
     34        public IResponse Response { 
     35            get { 
     36                return m_response; 
     37            } 
     38        } 
    3539 
    3640        public IEnumerable<IAsync> Invoke<T>(Dictionary<IRequest, T> responseList) { 
     41            Init(); 
    3742            return SimpleDBService<CreateDomain>.CallWebService<T>(this, Request, responseList); 
     43        } 
     44 
     45        void Init() { 
     46            m_request = new CreateDomainRequest(); 
     47            m_response = new CreateDomainResponse(); 
     48            m_taskID = System.Guid.NewGuid(); 
    3849        } 
    3950    } 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/Task/DeleteDomain.cs

    r4715 r4728  
    11using System; 
    22using System.Collections.Generic; 
    3 using System.Linq; 
    4 using System.Text; 
     3using System.Xml.Serialization; 
     4using Nuxleus.Asynchronous; 
     5using Nuxleus.Extension.AWS.SimpleDB.Model; 
    56 
    67namespace Nuxleus.Extension.AWS.SimpleDB { 
    7     class DeleteDomain { 
     8 
     9    [XmlTypeAttribute(Namespace = "http://sdb.amazonaws.com/doc/2007-11-07/")] 
     10    [XmlRootAttribute(Namespace = "http://sdb.amazonaws.com/doc/2007-11-07/", IsNullable = false)] 
     11    public struct DeleteDomain : ITask { 
     12 
     13        string m_domainName; 
     14        List<String> m_attributeNameArray; 
     15        Guid m_taskID; 
     16        IRequest m_request; 
     17        IResponse m_response; 
     18 
     19        [XmlElementAttribute(ElementName = "DomainName")] 
     20        public string DomainName { 
     21            get { 
     22                return m_domainName; 
     23            } 
     24            set { m_domainName = value; } 
     25        } 
     26 
     27        public Guid TaskID { 
     28            get { return m_taskID; } 
     29        } 
     30 
     31        public IRequest Request { 
     32            get { 
     33                return m_request; 
     34            } 
     35        } 
     36 
     37        public IResponse Response { 
     38            get { 
     39                return m_response; 
     40            } 
     41        } 
     42 
     43        public IEnumerable<IAsync> Invoke<T>(Dictionary<IRequest, T> responseList) { 
     44            Init(); 
     45            return SimpleDBService<CreateDomain>.CallWebService<T>(this, Request, responseList); 
     46        } 
     47 
     48        void Init() { 
     49            m_request = new DeleteDomainRequest(); 
     50            m_response = new DeleteDomainResponse(); 
     51            m_taskID = System.Guid.NewGuid(); 
     52        } 
    853    } 
    954} 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/Task/GetAttributes.cs

    r4727 r4728  
    22using System.Collections.Generic; 
    33using System.Xml.Serialization; 
    4 using EeekSoft.Asynchronous; 
     4using Nuxleus.Asynchronous; 
    55using Nuxleus.Extension.AWS.SimpleDB.Model; 
    66 
     
    1414        string m_itemName; 
    1515        List<String> m_attributeNameArray; 
    16         static Guid m_taskID = new Guid(); 
    17         static IRequest m_request = new GetAttributesRequest(); 
     16        Guid m_taskID; 
     17        IRequest m_request; 
     18        IResponse m_response; 
    1819 
    1920        [XmlElementAttribute(ElementName = "DomainName")] 
    2021        public string DomainName { 
    21             get { return m_domainName; } 
     22            get { 
     23                return m_domainName; 
     24            } 
    2225            set { m_domainName = value; } 
    2326        } 
     
    4548        } 
    4649 
    47         public IResponse Response { get; set; } 
     50        public IResponse Response { 
     51            get { 
     52                return m_response; 
     53            } 
     54        } 
    4855 
    4956        public IEnumerable<IAsync> Invoke<T>(Dictionary<IRequest, T> responseList) { 
     57            Init(); 
    5058            return SimpleDBService<GetAttributes>.CallWebService<T>(this, Request, responseList); 
     59        } 
     60 
     61        void Init() { 
     62            m_request = new GetAttributesRequest(); 
     63            m_response = new GetAttributesResponse(); 
     64            m_taskID = System.Guid.NewGuid(); 
    5165        } 
    5266    } 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/Task/ITask.cs

    r4727 r4728  
    44using System.Text; 
    55using System.Xml.Linq; 
    6 using EeekSoft.Asynchronous; 
     6using Nuxleus.Asynchronous; 
    77 
    88namespace Nuxleus.Extension.AWS.SimpleDB { 
     
    1010        Guid TaskID { get; } 
    1111        IRequest Request { get; } 
    12         IResponse Response { get; set;
     12        IResponse Response { get;
    1313        IEnumerable<IAsync> Invoke<T>(Dictionary<IRequest, T> responseList); 
    1414    } 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/Task/ListDomains.cs

    r4715 r4728  
    11using System; 
    22using System.Collections.Generic; 
    3 using System.Linq
    4 using System.Text
     3using System.Xml.Serialization
     4using Nuxleus.Asynchronous
    55 
    66namespace Nuxleus.Extension.AWS.SimpleDB { 
    7     class ListDomains { 
     7 
     8    [XmlTypeAttribute(Namespace = "http://sdb.amazonaws.com/doc/2007-11-07/")] 
     9    [XmlRootAttribute(Namespace = "http://sdb.amazonaws.com/doc/2007-11-07/", IsNullable = false)] 
     10    public struct ListDomains : ITask { 
     11 
     12        string m_maxNumberOfItems; 
     13        string m_nextToken; 
     14        Guid m_taskID; 
     15        IRequest m_request; 
     16        IResponse m_response; 
     17 
     18        [XmlElementAttribute(ElementName = "MaxNumberOfItems")] 
     19        public String MaxNumberOfItems { 
     20            get { 
     21                return m_maxNumberOfItems; 
     22            } 
     23            set { m_maxNumberOfItems = value; } 
     24        } 
     25 
     26        [XmlElementAttribute(ElementName = "NextToken")] 
     27        public String NextToken { 
     28            get { return m_nextToken; } 
     29            set { m_nextToken = value; } 
     30        } 
     31 
     32 
     33        #region ITask Members 
     34 
     35        public RequestType RequestType { 
     36            get { throw new NotImplementedException(); } 
     37        } 
     38 
     39        public IRequest Request { 
     40            get { throw new NotImplementedException(); } 
     41            set { throw new NotImplementedException(); } 
     42        } 
     43 
     44        public IResponse Response { 
     45            get { 
     46                return m_response; 
     47            } 
     48        } 
     49 
     50        public Guid TaskID { 
     51            get { return m_taskID; } 
     52        } 
     53 
     54        public IEnumerable<IAsync> Invoke<T>(Dictionary<IRequest, T> responseList) { 
     55            Init(); 
     56            throw new NotImplementedException(); 
     57        } 
     58 
     59        #endregion 
     60 
     61        void Init() { 
     62            m_request = new ListDomainsRequest(); 
     63            m_response = new ListDomainsResponse(); 
     64            m_taskID = System.Guid.NewGuid(); 
     65        } 
    866    } 
    967} 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/Task/PutAttributes.cs

    r4727 r4728  
    11using System.Collections.Generic; 
    22using System.Xml.Serialization; 
    3 using EeekSoft.Asynchronous; 
     3using Nuxleus.Asynchronous; 
    44using Nuxleus.Extension.AWS.SimpleDB.Model; 
    55 
     
    1414        string m_itemName; 
    1515        List<Attribute> m_attributeArray; 
    16         static System.Guid m_taskID = new System.Guid(); 
    17         static IRequest m_request = new PutAttributesRequest(); 
     16        System.Guid m_taskID; 
     17        IRequest m_request; 
     18        IResponse m_response; 
    1819 
    1920        [XmlElementAttribute(ElementName = "DomainName")] 
    2021        public string DomainName { 
    2122            get { return m_domainName; } 
    22             set { m_domainName = value; } 
     23            set { 
     24                m_domainName = value;  
     25            } 
    2326        } 
    2427 
     
    3639 
    3740        public System.Guid TaskID { 
    38             get { return m_taskID; } 
     41            get { 
     42                return m_taskID; 
     43            } 
    3944        } 
    4045 
     
    4550        } 
    4651 
    47         public IResponse Response { get; set; } 
     52        public IResponse Response { 
     53            get { 
     54                return m_response; 
     55            } 
     56        } 
    4857 
    4958        public IEnumerable<IAsync> Invoke<T>(Dictionary<IRequest, T> responseList) { 
     59            Init(); 
    5060            return SimpleDBService<PutAttributes>.CallWebService<T>(this, Request, responseList); 
     61        } 
     62 
     63        void Init() { 
     64            m_request = new PutAttributesRequest(); 
     65            m_response = new PutAttributesResponse(); 
     66            m_taskID = System.Guid.NewGuid(); 
    5167        } 
    5268    } 
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/SimpleDB/Task/Query.cs

    r4727 r4728  
    22using System.Collections.Generic; 
    33using System.Xml.Serialization; 
    4 using EeekSoft.Asynchronous; 
     4using Nuxleus.Asynchronous; 
    55 
    66namespace Nuxleus.Extension.AWS.SimpleDB { 
     
    1414        string m_maxNumberOfItems; 
    1515        string m_nextToken; 
    16         static Guid m_taskID = new Guid(); 
     16        Guid m_taskID; 
     17        IRequest m_request; 
     18        IResponse m_response; 
    1719 
    1820        [XmlElementAttribute(ElementName = "DomainName")] 
    1921        public String DomainName { 
    20             get { return m_domainName; } 
     22            get { 
     23                return m_domainName; 
     24            } 
    2125            set { m_domainName = value; } 
    2226        } 
     
    4044        } 
    4145 
    42  
    4346        #region ITask Members 
    4447 
     
    5255        } 
    5356 
    54         public IResponse Response { get; set; } 
     57        public IResponse Response { 
     58            get { 
     59                return m_response; 
     60            } 
     61        } 
    5562 
    5663        public Guid TaskID { 
     
    5966 
    6067        public IEnumerable<IAsync> Invoke<T>(Dictionary<IRequest, T> responseList) { 
     68            Init(); 
    6169            throw new NotImplementedException(); 
     70        } 
     71 
     72        void Init() { 
     73            m_request = new QueryRequest(); 
     74            m_response = new QueryResponse(); 
     75            m_taskID = System.Guid.NewGuid(); 
    6276        } 
    6377 
  • trunk/nuxleus/Source/Nuxleus.Web/Agent.cs

    r4674 r4728  
    99namespace Nuxleus.Web { 
    1010 
    11     public struct Agent : IAgent { 
     11    public struct Agent<T> : IAgent { 
    1212 
    13         static readonly ILog m_loggerInstance = LogManager.GetLogger(typeof(Agent)); 
     13        static readonly ILog m_loggerInstance = LogManager.GetLogger(typeof(T)); 
    1414 
    1515        public System.Collections.Hashtable Result { 
  • trunk/nuxleus/Source/Nuxleus.Web/HttpHandler/NuxleusHttpAsyncXmlServiceOperationHandler.cs

    r4674 r4728  
    7373        IAsyncResult m_asyncResult; 
    7474        XmlReader initialReader; 
    75         static ILog m_logger = Web.Agent.GetBasicLogger(); 
     75        static ILog m_logger = Web.Agent<NuxleusHttpAsyncXmlServiceOperationHandler>.GetBasicLogger(); 
    7676 
    7777        public void ProcessRequest ( HttpContext context ) { 
  • trunk/nuxleus/Source/nuXleus.sln

    r4709 r4728  
    135135EndProject 
    136136Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaxonExtensionFunction_Test", "CodeSamples\SaxonExtensionFunction_Test\SaxonExtensionFunction_Test.csproj", "{A36FBFC7-9C35-42B3-BCEE-10BA7524204C}" 
     137EndProject 
     138Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nuxleus.Asynchronous", "Nuxleus.Asynchronous\Nuxleus.Asynchronous.csproj", "{EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}" 
    137139EndProject 
    138140Global 
     
    10921094                {A36FBFC7-9C35-42B3-BCEE-10BA7524204C}.Release|x64.ActiveCfg = Release|Any CPU 
    10931095                {A36FBFC7-9C35-42B3-BCEE-10BA7524204C}.Release|x86.ActiveCfg = Release|Any CPU 
     1096                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Debug|.NET.ActiveCfg = Debug|Any CPU 
     1097                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 
     1098                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Debug|Any CPU.Build.0 = Debug|Any CPU 
     1099                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 
     1100                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 
     1101                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Debug|x64.ActiveCfg = Debug|Any CPU 
     1102                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Debug|x86.ActiveCfg = Debug|Any CPU 
     1103                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Release|.NET.ActiveCfg = Release|Any CPU 
     1104                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Release|Any CPU.ActiveCfg = Release|Any CPU 
     1105                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Release|Any CPU.Build.0 = Release|Any CPU 
     1106                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 
     1107                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Release|Mixed Platforms.Build.0 = Release|Any CPU 
     1108                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Release|x64.ActiveCfg = Release|Any CPU 
     1109                {EDD96E5A-5BEE-4A0C-89AA-A6C9CE68C710}.Release|x86.ActiveCfg = Release|Any CPU 
    10941110        EndGlobalSection 
    10951111        GlobalSection(SolutionProperties) = preSolution 
  • trunk/nuxleus/Source/nux.build

    r4715 r4728  
    1313  <target name="Xameleon" depends="init Nuxleus.Authentication Nuxleus.Agent Nuxleus.Command Nuxleus.Configuration Nuxleus.Cryptography Nuxleus.Extension.Facebook Nuxleus.Extension.Aws.Sdb Nuxleus.Extension.Aws Nuxleus.IO Nuxleus.Messaging Nuxleus.Process Nuxleus.PubSub Nuxleus.Utility"> 
    1414    <csc target="library" output="${build.dir}/Xameleon.dll" unsafe="True" keyfile="./Dependencies/Extf.Net.snk"> 
    15       <arg if="${platform::is-unix()}" value="-langversion:linq"/> 
    1615      <sources> 
    1716        <include name="${source.dir}/Xameleon/*.cs"/> 
     
    6463  <target name="XSP" depends="init Nuxleus.Web"> 
    6564    <csc target="exe" output="${build.dir}/xsp2.exe" keyfile="./Dependencies/Extf.Net.snk"> 
    66       <arg if="${platform::is-unix()}" value="-langversion:linq"/> 
    6765      <sources> 
    6866        <include name="${source.dir}/XSP/**/*.cs"/> 
     
    7977  <target name="Nuxleus" depends="init Xameleon Nuxleus.Agent Nuxleus.Messaging Nuxleus.Command Nuxleus.Entity Nuxleus.Service Nuxleus.Extension"> 
    8078    <csc target="exe" output="${build.dir}/Nuxleus.exe" keyfile="./Dependencies/Extf.Net.snk"> 
    81       <arg if="${platform::is-unix()}" value="-langversion:linq"/> 
    8279      <sources> 
    8380        <include name="${source.dir}/Nuxleus/**/*.cs"/> 
     
    104101  <target name="Nuxleus.Agent" depends="init"> 
    105102    <csc target="library" output="${build.dir}/Nuxleus.Agent.dll" keyfile="./Dependencies/Extf.Net.snk"> 
    106       <arg if="${platform::is-unix()}" value="-langversion:linq"/> 
    107103      <sources> 
    108104        <include name="${source.dir}/Nuxleus.Agent/**/*.cs"/> 
     
    111107        <include name="System.dll"/> 
    112108        <include name="System.Web.dll"/> 
     109      </references> 
     110    </csc> 
     111  </target> 
     112  <target name="Nuxleus.Asynchronous" depends="init"> 
     113    <csc target="library" output="${build.dir}/Nuxleus.Asynchronous.dll" keyfile="./Dependencies/Extf.Net.snk"> 
     114      <sources> 
     115        <include name="${source.dir}/Nuxleus.Asynchronous/**/*.cs"/> 
     116      </sources> 
     117      <references> 
     118        <include name="System.dll"/> 
     119        <include name="System.Data.dll"/> 
     120        <include name="System.Linq.dll"/> 
     121        <include name="System.Xml.Linq.dll"/> 
     122        <include name="System.Xml.dll"/> 
     123        <include name="System.Web.dll"/> 
     124        <include name="System.Web.Services.dll"/> 
     125        <include name="System.EnterpriseServices.dll"/> 
    113126      </references> 
    114127    </csc> 
     
    116129  <target name="Nuxleus.Authentication" depends="init Nuxleus.Utility"> 
    117130    <csc target="library" output="${build.dir}/Nuxleus.Authentication.dll" keyfile="./Dependencies/Extf.Net.snk"> 
    118       <arg if="${platform::is-unix()}" value="-langversion:linq"/> 
    119131      <sources> 
    120132        <include name="${source.dir}/Nuxleus.Authentication/**/*.cs"/> 
    &