Permalink
Browse files

version 1.1

  • Loading branch information...
1 parent 9475f62 commit 6b360b4dda85e39f91d455c2ae18fa972eb41b94 @ppossanzini ppossanzini committed Nov 30, 2012
Showing 520 changed files with 232,041 additions and 19,134 deletions.
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{941FADB8-09C5-4531-A300-C23FBE4A3FB8}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>DeNSo.Client</RootNamespace>
- <AssemblyName>DeNSo.Client</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\DeNSo.Meta\DeNSo.Meta.csproj">
- <Project>{FDBAC522-A00C-46A1-B197-FA9AC2788422}</Project>
- <Name>DeNSo.Meta</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <Content Include="LICENSE.txt" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
@@ -1,78 +0,0 @@
-DeNSo Database - A NoSql Database
-Copyright (C) 2012 TeamDev s.r.l.
-===================================================================
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as
-published by the Free Software Foundation, either version 3 of the
-License.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-----------
-FOSS License Exception
-----------
-
-What is the FOSS License Exception?
-
-This Free and Open Source Software ("FOSS") License Exception allows
-developers of FOSS applications to include DeNSoDB with their FOSS
-applications. DeNSoDB is typically licensed pursuant to version 3
-of the Affero General Public License ("AGPL"), but this exception permits
-distribution of DeNSoDB with a developer's FOSS applications licensed
-under the terms of another FOSS license listed below, even though such
-other FOSS license may be incompatible with the AGPL.
-
-The following terms and conditions describe the circumstances under which
-this FOSS License Exception applies.
-
-FOSS License Exception Terms and Conditions
-
-Definitions.
- * "Derivative Work" means a derivative work, as defined under applicable
- copyright law, formed entirely from the Program and one or more FOSS Applications.
- * "FOSS Application" means a free and open source software application distributed
- subject to a license approved by the Open Source Initiative (OSI) board. A list of
- applicable licenses appears at: http://www.opensource.org/licenses/category.
- * "FOSS Notice" means a notice placed by TeamDev or the DeNSoDB author
- in a copy of the DeNSoDB library stating that such copy of the DeNSoDB library
- may be distributed under FOSS License Exception.
- * "Independent Work" means portions of the Derivative Work that are not derived
- from the Program and can reasonably be considered independent and separate works.
- * "Program" means a copy of DeNSoDB library that contains a FOSS Notice.
-
-A FOSS application developer ("you" or "your") may distribute a Derivative Work provided
-that you and the Derivative Work meet all of the following conditions:
-
- * You obey the AGPL in all respects for the Program and all portions (including
- modifications) of the Program included in the Derivative Work (provided that this
- condition does not apply to Independent Works);
- * The Derivative Work does not include any work licensed under the AGPL other than
- the Program;
- * You distribute Independent Works subject to a license approved by the OSI which is
- listed in http://www.opensource.org/licenses/category;
- * You distribute Independent Works in object code or executable form with the complete
- corresponding machine-readable source code on the same medium and under the same
- FOSS license applying to the object code or executable forms;
- * All works that are aggregated with the Program or the Derivative Work on a medium or
- volume of storage are not derivative works of the Program, Derivative Work or FOSS
- Application, and must reasonably be considered independent and separate works.
-
-TeamDev s.r.l. reserves all rights not expressly granted in these terms and conditions.
-If all of the above conditions are not met, then this FOSS License Exception does not
-apply to you or your Derivative Work.
-
-----------
-
-Commercial Licensing
-----------
-In addition to this license, DeNSoDB is offered under a commercial license.
-You can learn more about this option by contacting us using:
-http://www.teamdev.it
@@ -1,56 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.ComponentModel.Composition;
-using DeNSo.Meta;
-using System.ComponentModel.Composition.Hosting;
-using System.Reflection;
-
-namespace DeNSo.Core
-{
- /// <summary>
- /// DensoExtensions use MEF to load extensions in densodb
- /// </summary>
- public class DensoExtensions
- {
- [ImportMany(AllowRecomposition = true)]
- internal IExtensionPlugin[] Extensions { get; set; }
-
- [ImportMany(AllowRecomposition = true)]
- internal ICommandHandler[] ImportedHandlers { get; set; }
-
- public void Init()
- {
- try
- {
- AggregateCatalog catalog = new AggregateCatalog();
-
- var c1 = new DirectoryCatalog("Extensions");
- c1.Refresh();
- var c2 = new DirectoryCatalog("EventHandlers");
- c2.Refresh();
- var c3 = new AssemblyCatalog(Assembly.GetExecutingAssembly());
-
- catalog.Catalogs.Add(c1);
- catalog.Catalogs.Add(c2);
- catalog.Catalogs.Add(c3);
-
- CompositionContainer container = new CompositionContainer(catalog);
- container.ComposeParts(this);
- }
- catch (Exception ex)
- {
- WindowsLogWriter.LogMessage("Error occurred while composing Denso Extensions", System.Diagnostics.EventLogEntryType.Error);
- WindowsLogWriter.LogException(ex);
- }
-
- foreach (var plugin in Extensions)
- {
- plugin.Init();
- }
-
- EventHandlerManager.AnalyzeCommandHandlers(ImportedHandlers);
- }
- }
-}
@@ -1,2 +0,0 @@
-this is a placeholder
-Put in this folder all your EventHandlers Assemblies.
@@ -1,85 +0,0 @@
-using System;
-using System.ComponentModel;
-using System.Configuration;
-using System.Diagnostics;
-using System.Security.Permissions;
-namespace DeNSo.Core
-{
- [Description("Log messages and exceptions in the Machine EventLog")]
- [EventLogPermission(SecurityAction.Demand)]
- public static class WindowsLogWriter
- {
- private static string _logname = "Application";
- private static string _eventsourcename = "DeNSo DB";
- public static string LogName
- {
- get
- {
- return WindowsLogWriter._logname;
- }
- }
- public static string EventDefaultSourceName
- {
- get
- {
- return WindowsLogWriter._eventsourcename;
- }
- set
- {
- WindowsLogWriter._eventsourcename = value;
- }
- }
- [Description("Log the exception in Machine EventLog")]
- public static void LogException(Exception ex)
- {
- WindowsLogWriter.LogException(ex, EventLogEntryType.Error);
- }
- [Description("Log the exception in Machine EventLog")]
- public static void LogException(Exception ex, EventLogEntryType entrytype)
- {
- WindowsLogWriter.LogException(ex, entrytype, WindowsLogWriter._logname);
- }
- [Description("Log the exception in Machine EventLog")]
- public static void LogException(Exception ex, EventLogEntryType entrytype, string applicationname)
- {
- string message = "Error Message:" + ex.Message + "\r\n";
- message = message + "StackTrace: " + ex.StackTrace + "\r\n";
- message = message + "Source: " + ex.Source + "\r\n";
- if (ex.InnerException != null)
- {
- message = message + "InnerException: " + ex.InnerException.Message + "\r\n";
- }
- WindowsLogWriter.LogMessage(message, applicationname, entrytype);
- }
- [Description("Log a message in the Machine EventLog")]
- public static void LogMessage(string message, EventLogEntryType entrytype)
- {
- WindowsLogWriter.LogMessage(message, WindowsLogWriter._logname, entrytype);
- }
- [Description("Log a message in the Machine EventLog")]
- public static void LogMessage(string message, string applicationname, EventLogEntryType entrytype)
- {
- string verbose = string.Empty;
- try
- {
- if (!(verbose == "0") || entrytype == EventLogEntryType.Error)
- {
- if (!(verbose == "1") || entrytype == EventLogEntryType.Error || entrytype == EventLogEntryType.Warning)
- {
- if (!EventLog.SourceExists(WindowsLogWriter._eventsourcename))
- {
- EventLog.CreateEventSource(WindowsLogWriter._eventsourcename, applicationname);
- }
- new EventLog(applicationname)
- {
- Source = WindowsLogWriter._eventsourcename
- }.WriteEntry(message, entrytype);
- }
- }
- }
- catch
- {
- }
- }
- }
-}
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>
- </ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{F5FB76B6-F078-4744-A070-113BC9D60AEA}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>DeNSo.Lucene.Test</RootNamespace>
- <AssemblyName>DeNSo.Lucene.Test</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="UnitTest1.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\DeNSo.Core\DeNSo.Core.csproj">
- <Project>{60B0B52B-2846-41DF-931D-24032CF4E9E8}</Project>
- <Name>DeNSo.Core</Name>
- </ProjectReference>
- <ProjectReference Include="..\DeNSo.Lucene\DeNSo.Lucene.csproj">
- <Project>{6A508096-FAAE-4E85-B547-FDCB52D69772}</Project>
- <Name>DeNSo.Lucene</Name>
- </ProjectReference>
- <ProjectReference Include="..\DeNSo.Meta\DeNSo.Meta.csproj">
- <Project>{FDBAC522-A00C-46A1-B197-FA9AC2788422}</Project>
- <Name>DeNSo.Meta</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
@@ -1,28 +0,0 @@
-using System;
-using System.Text;
-using System.Collections.Generic;
-using System.Linq;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using DeNSo.Lucene;
-
-namespace DeNSo.Lucene.Test
-{
- [TestClass]
- public class UnitTest1
- {
-
- class Game
- {
- public string Name { get; set; }
- public string Id { get; set; }
- public Game subgame { get; set; }
- }
-
- [TestMethod]
- public void TestMethod1()
- {
- Indexer indx = Indexer.GetIndexerFor("i");
- indx.SetIndex<Game>("gamesIndexName", g => g.subgame.Name);
- }
- }
-}
Oops, something went wrong.

0 comments on commit 6b360b4

Please sign in to comment.