diff --git a/NOCQ.sln b/NOCQ.sln index 08dc15a..41378d1 100644 --- a/NOCQ.sln +++ b/NOCQ.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NOCQ", "src\NOCQ\NOCQ.csproj", "{83651B7D-B58F-46B8-BFE2-BCC0A6C92C7A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NOCQ.Application", "NOCQ.Application\NOCQ.Application.csproj", "{DF8CD7EA-76FC-4B57-B24A-52C6373A8EDF}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NOCQ.Application", "src\NOCQ.Application\NOCQ.Application.csproj", "{DF8CD7EA-76FC-4B57-B24A-52C6373A8EDF}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/src/NOCQ.Application/NOCQ.Application.csproj b/src/NOCQ.Application/NOCQ.Application.csproj new file mode 100644 index 0000000..9a009b0 --- /dev/null +++ b/src/NOCQ.Application/NOCQ.Application.csproj @@ -0,0 +1,39 @@ + + + + Debug + AnyCPU + 10.0.0 + 2.0 + {DF8CD7EA-76FC-4B57-B24A-52C6373A8EDF} + Exe + NOCQ.Application + NOCQ.Application + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + true + + + full + true + bin\Release + prompt + 4 + true + + + + + + + + + + \ No newline at end of file diff --git a/src/NOCQ.Application/Program.cs b/src/NOCQ.Application/Program.cs new file mode 100644 index 0000000..afcde55 --- /dev/null +++ b/src/NOCQ.Application/Program.cs @@ -0,0 +1,12 @@ +using System; + +namespace NOCQ.Application +{ + class MainClass + { + public static void Main (string[] args) + { + Console.WriteLine ("Hello World!"); + } + } +} diff --git a/src/NOCQ.Application/Properties/AssemblyInfo.cs b/src/NOCQ.Application/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f2ded68 --- /dev/null +++ b/src/NOCQ.Application/Properties/AssemblyInfo.cs @@ -0,0 +1,22 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. +[assembly: AssemblyTitle ("NOCQ.Application")] +[assembly: AssemblyDescription ("")] +[assembly: AssemblyConfiguration ("")] +[assembly: AssemblyCompany ("")] +[assembly: AssemblyProduct ("")] +[assembly: AssemblyCopyright ("nmaclennan")] +[assembly: AssemblyTrademark ("")] +[assembly: AssemblyCulture ("")] +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. +[assembly: AssemblyVersion ("1.0.*")] +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] + diff --git a/src/NOCQ/Imports/DataImports.cs b/src/NOCQ/Imports/DataImports.cs new file mode 100644 index 0000000..f2e048d --- /dev/null +++ b/src/NOCQ/Imports/DataImports.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using System.ComponentModel.Composition; + +namespace NOCQ +{ + [Export] + public class DataImports + { + [ImportMany] + IEnumerable DataHooks {get; set;} + } +} + diff --git a/src/NOCQ/Imports/IDataImport.cs b/src/NOCQ/Imports/IDataImport.cs deleted file mode 100644 index 9d609a0..0000000 --- a/src/NOCQ/Imports/IDataImport.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace NOCQ -{ - public interface IDataImport - { - void Run(); - void Stop(); - } -} - diff --git a/src/NOCQ/Imports/IDataImportHook.cs b/src/NOCQ/Imports/IDataImportHook.cs new file mode 100644 index 0000000..e4c37be --- /dev/null +++ b/src/NOCQ/Imports/IDataImportHook.cs @@ -0,0 +1,14 @@ +using System.ComponentModel.Composition; + + +namespace NOCQ +{ + [Export(typeof(IDataImportHook))] + public interface IDataImportHook + { + string Name { get; set; } + void Run(); + void Stop(); + } +} + diff --git a/src/NOCQ/NOCQ.csproj b/src/NOCQ/NOCQ.csproj index 483a717..b11c6e6 100644 --- a/src/NOCQ/NOCQ.csproj +++ b/src/NOCQ/NOCQ.csproj @@ -58,6 +58,8 @@ + +