Skip to content

Commit

Permalink
天津mq
Browse files Browse the repository at this point in the history
  • Loading branch information
sachem1 committed Apr 9, 2018
1 parent 566cd8a commit 1c49777
Show file tree
Hide file tree
Showing 73 changed files with 26,834 additions and 9 deletions.
Binary file added .vs/Iddd/v14/.suo
Binary file not shown.
Binary file modified .vs/Iddd/v15/.suo
Binary file not shown.
Binary file modified .vs/Iddd/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file added .vs/Iddd/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file added .vs/Iddd/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
2 changes: 1 addition & 1 deletion .vs/config/applicationhost.config
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
</site>
<site name="Iddd" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="H:\Personal\Project\Iddd\Iddd" />
<virtualDirectory path="/" physicalPath="D:\Work\Demo\IDDD\Iddd" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:64201:localhost" />
Expand Down
11 changes: 10 additions & 1 deletion ConsoleApp/Algorithm/StrategyContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ namespace ConsoleApp
{
public class StrategyContext
{

public IAlgorithmStrategy AlgorithmStrategy { get; set; }

public void SetStrategy(IAlgorithmStrategy strategy)
{
AlgorithmStrategy = strategy;
}
public void Calculation(int a,int b)
{
AlgorithmStrategy.Calculation(a, b);
}
}
}
3 changes: 3 additions & 0 deletions ConsoleApp/ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Messaging" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -56,6 +57,8 @@
<Compile Include="HanDuck\SweepingBehavior.cs" />
<Compile Include="HanDuck\WoodDuck.cs" />
<Compile Include="Algorithm\IAlgorithmStrategy.cs" />
<Compile Include="Msmq\MsmqManager.cs" />
<Compile Include="Pipes\PipesDeom.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Algorithm\StrategyContext.cs" />
Expand Down
39 changes: 39 additions & 0 deletions ConsoleApp/Msmq/MsmqManager.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Messaging;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp.Msmq
{
public class MsmqManager
{
internal static string MqPath = @".\private$\mqtest";
public void Sender()
{
MessageQueue mq = CreateMessageQueue(MqPath);
mq.
}

/// <summary>
/// 创建消息队列
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
private static MessageQueue CreateMessageQueue(string path)
{
MessageQueue mq = null;
if (MessageQueue.Exists(path))
{
mq=new MessageQueue(path);
}
else
{
mq=MessageQueue.Create(path);
}

return mq;
}
}
}
28 changes: 28 additions & 0 deletions ConsoleApp/Pipes/PipesDeom.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp.Pipes
{
public class PipesDeom
{
public void Test()
{
Process process = new Process();
process.StartInfo.FileName = "child.exe";
using (AnonymousPipeServerStream anonymousPipe = new AnonymousPipeServerStream(PipeDirection.Out, HandleInheritability.Inheritable))
{
process.StartInfo.Arguments = anonymousPipe.GetClientHandleAsString();
process.StartInfo.UseShellExecute = false;
process.Start();


}
}
}
}
Binary file added ConsoleApp/bin/Debug/ConsoleApp.vshost.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions ConsoleApp/bin/Debug/ConsoleApp.vshost.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
</configuration>
11 changes: 11 additions & 0 deletions ConsoleApp/bin/Debug/ConsoleApp.vshost.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9c5e0e2437eb7533fa90b4ffb3b02e03adb8e80e
625010a3d8af28ecdee2715233fc7b957a54e9a3
3 changes: 3 additions & 0 deletions ConsoleApp/obj/Debug/ConsoleApp.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ H:\Personal\Project\Iddd\ConsoleApp\bin\Debug\ConsoleApp.exe
H:\Personal\Project\Iddd\ConsoleApp\bin\Debug\ConsoleApp.pdb
H:\Personal\Project\Iddd\ConsoleApp\obj\Debug\ConsoleApp.exe
H:\Personal\Project\Iddd\ConsoleApp\obj\Debug\ConsoleApp.pdb
E:\Work\Demo\IDDD\ConsoleApp\bin\Debug\ConsoleApp.exe.config
E:\Work\Demo\IDDD\ConsoleApp\obj\Debug\ConsoleApp.exe
E:\Work\Demo\IDDD\ConsoleApp\obj\Debug\ConsoleApp.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ec4db5f52e43da5b5e9ad47e11e441d9bd09eea9
c2bffaaa68183a90ac0ed692ad485f7d10b1a0bd
Binary file not shown.
10 changes: 8 additions & 2 deletions Iddd.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2005
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Iddd", "Iddd\Iddd.csproj", "{A560C135-7B92-4C77-A24D-582E64CA8B66}"
EndProject
Expand All @@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Iddd.Data", "Iddd.Data\Iddd
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "ConsoleApp\ConsoleApp.csproj", "{9EFED439-767F-4F0F-9D09-9EF025B13C7C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RedisApplication", "RedisApplication\RedisApplication.csproj", "{C9C4FC9C-7F6B-47C0-AFB0-2B67B5210814}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -39,6 +41,10 @@ Global
{9EFED439-767F-4F0F-9D09-9EF025B13C7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9EFED439-767F-4F0F-9D09-9EF025B13C7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9EFED439-767F-4F0F-9D09-9EF025B13C7C}.Release|Any CPU.Build.0 = Release|Any CPU
{C9C4FC9C-7F6B-47C0-AFB0-2B67B5210814}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9C4FC9C-7F6B-47C0-AFB0-2B67B5210814}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9C4FC9C-7F6B-47C0-AFB0-2B67B5210814}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9C4FC9C-7F6B-47C0-AFB0-2B67B5210814}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
122a2b1e54ba0c99a7006f5b29d66c3804a87ad3
60ffe43ada58bc04c0b52044550943b35a181e6e
Binary file not shown.
1 change: 1 addition & 0 deletions Iddd/Iddd.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<UseIISExpress>true</UseIISExpress>
<ProjectView>ShowAllFiles</ProjectView>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
Expand Down
Binary file modified Iddd/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion Iddd/obj/Debug/Iddd.csproj.CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
365bc904a266134e43a4a8069978f658f7967eab
97613c25f211f911f4c7be5fb063f422740a97c3
Binary file modified Iddd/obj/Debug/Iddd.csprojResolveAssemblyReference.cache
Binary file not shown.
12 changes: 12 additions & 0 deletions RedisApplication/.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedisApplication
{
public class
{
}
}
6 changes: 6 additions & 0 deletions RedisApplication/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
15 changes: 15 additions & 0 deletions RedisApplication/ICache.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedisApplication
{
public interface ICache:IDisposable
{
T Get<T>(string contextKey, string dataKey);

T Get<T>(string contextKey, string dataKey,Func<T,int> action);
}
}
15 changes: 15 additions & 0 deletions RedisApplication/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedisApplication
{
class Program
{
static void Main(string[] args)
{
}
}
}
36 changes: 36 additions & 0 deletions RedisApplication/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("RedisApplication")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RedisApplication")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//将 ComVisible 设置为 false 将使此程序集中的类型
//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]

// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("c9c4fc9c-7f6b-47c0-afb0-2b67b5210814")]

// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
88 changes: 88 additions & 0 deletions RedisApplication/RedisApplication.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C9C4FC9C-7F6B-47C0-AFB0-2B67B5210814}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RedisApplication</RootNamespace>
<AssemblyName>RedisApplication</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<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' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="ServiceStack, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587, processorArchitecture=MSIL">
<HintPath>..\packages\ServiceStack.5.0.2\lib\net45\ServiceStack.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ServiceStack.Client, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587, processorArchitecture=MSIL">
<HintPath>..\packages\ServiceStack.Client.5.0.2\lib\net45\ServiceStack.Client.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ServiceStack.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587, processorArchitecture=MSIL">
<HintPath>..\packages\ServiceStack.Common.5.0.2\lib\net45\ServiceStack.Common.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ServiceStack.Interfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587, processorArchitecture=MSIL">
<HintPath>..\packages\ServiceStack.Interfaces.5.0.2\lib\net45\ServiceStack.Interfaces.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ServiceStack.Text, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587, processorArchitecture=MSIL">
<HintPath>..\packages\ServiceStack.Text.5.0.2\lib\net45\ServiceStack.Text.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="StackExchange.Redis, Version=1.2.6.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\StackExchange.Redis.1.2.6\lib\net45\StackExchange.Redis.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include=".cs" />
<Compile Include="ICache.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</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>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0eb49ed2667a9bc23cb9bc18ba3f9abead629c9f
Binary file not shown.
Empty file.
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions RedisApplication/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ServiceStack" version="5.0.2" targetFramework="net452" />
<package id="ServiceStack.Client" version="5.0.2" targetFramework="net452" />
<package id="ServiceStack.Common" version="5.0.2" targetFramework="net452" />
<package id="ServiceStack.Interfaces" version="5.0.2" targetFramework="net452" />
<package id="ServiceStack.Text" version="5.0.2" targetFramework="net452" />
<package id="StackExchange.Redis" version="1.2.6" targetFramework="net452" />
</packages>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8bfb08bae6d08340fa29a325db28e8538c8fa16b
3d0332fd4877ee07e9b9831fe2fb3313618af060
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 1c49777

Please sign in to comment.