Skip to content

Commit

Permalink
published to nuget.
Browse files Browse the repository at this point in the history
  • Loading branch information
fractos committed Feb 26, 2018
1 parent a74623c commit 14f93b4
Show file tree
Hide file tree
Showing 49 changed files with 1,161 additions and 3,711 deletions.
69 changes: 35 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@

#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.vspx
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug*/
*.lib
*.sbr
obj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*
/packages/
!packages/repositories.config
/export/
obj/*/DesignTimeResolveAssemblyReferencesInput.cache

#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.vspx
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug*/
*.lib
*.sbr
obj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*
/packages/
!packages/repositories.config
/export/
obj/*/DesignTimeResolveAssemblyReferencesInput.cache
.vs/
134 changes: 19 additions & 115 deletions Inversion.Messaging.AmazonSNS/Inversion.Messaging.AmazonSNS.csproj
Original file line number Diff line number Diff line change
@@ -1,115 +1,19 @@
<?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>{28435172-E8C2-4894-9AC9-C3DCBF21EF56}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Inversion.Messaging</RootNamespace>
<AssemblyName>Inversion.Messaging.AmazonSNS</AssemblyName>
<TargetFrameworkVersion>v4.5.2</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="AWSSDK.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604, processorArchitecture=MSIL">
<HintPath>$(SolutionDir)packages\AWSSDK.Core.3.3.7.1\lib\net45\AWSSDK.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="AWSSDK.SimpleNotificationService, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604, processorArchitecture=MSIL">
<HintPath>$(SolutionDir)packages\AWSSDK.SimpleNotificationService.3.3.0.6\lib\net45\AWSSDK.SimpleNotificationService.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Inversion, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>$(SolutionDir)packages\Inversion.1.0.0\lib\net452\Inversion.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Inversion.Data, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>$(SolutionDir)packages\Inversion.Data.1.0.0\lib\net452\Inversion.Data.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Inversion.Data.AmazonSNS, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>$(SolutionDir)packages\Inversion.Data.AmazonSNS.1.0.0\lib\net452\Inversion.Data.AmazonSNS.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Inversion.Process, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Inversion.Process.1.0.0\lib\net452\Inversion.Process.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>$(SolutionDir)packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Collections.Immutable, Version=1.0.34.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>$(SolutionDir)packages\Microsoft.Bcl.Immutable.1.0.34\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.Reactive.Core, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Rx-Core.2.2.5\lib\net45\System.Reactive.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Reactive.Interfaces, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Rx-Interfaces.2.2.5\lib\net45\System.Reactive.Interfaces.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Reactive.Linq, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Rx-Linq.2.2.5\lib\net45\System.Reactive.Linq.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Reactive.PlatformServices, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Rx-PlatformServices.2.2.5\lib\net45\System.Reactive.PlatformServices.dll</HintPath>
<Private>True</Private>
</Reference>
<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="Properties\AssemblyInfo.cs" />
<Compile Include="Transport\AmazonSNSPush.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Inversion.Messaging\Inversion.Messaging.csproj">
<Project>{18a7e8cb-cdb4-4846-8b5e-6e7d03178831}</Project>
<Name>Inversion.Messaging</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Inversion.Messaging.AmazonSNS.nuspec" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Analyzer Include="$(SolutionDir)packages\AWSSDK.SimpleNotificationService.3.3.0.6\analyzers\dotnet\cs\AWSSDK.SimpleNotificationService.CodeAnalysis.dll" />
</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>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Inversion.Messaging.AmazonSNS</PackageId>
<Version>1.0.1</Version>
<Authors>Adam Christie</Authors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Inversion" Version="1.0.*" />
<PackageReference Include="Inversion.Data" Version="1.0.*" />
<PackageReference Include="Inversion.Data.AmazonSNS" Version="1.0.*" />
<PackageReference Include="Inversion.Messaging" Version="1.0.*" />
<PackageReference Include="AWSSDK.Core" Version="3.3.7.1" />
<PackageReference Include="AWSSDK.SimpleNotificationService" Version="3.3.0.6" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3"/>
</ItemGroup>
</Project>
32 changes: 0 additions & 32 deletions Inversion.Messaging.AmazonSNS/Inversion.Messaging.AmazonSNS.nuspec

This file was deleted.

36 changes: 0 additions & 36 deletions Inversion.Messaging.AmazonSNS/Properties/AssemblyInfo.cs

This file was deleted.

48 changes: 24 additions & 24 deletions Inversion.Messaging.AmazonSNS/Transport/AmazonSNSPush.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
using System;

using Amazon.SimpleNotificationService.Model;

using Inversion.Data;
using Inversion.Process;

namespace Inversion.Messaging.Transport
{
public class AmazonSNSPush : AmazonSNSStore, IPush
{
public AmazonSNSPush(string serviceUrl, string region, string accessKey, string accessSecret) : base(serviceUrl, region, accessKey, accessSecret) {}

public void Push(IEvent ev)
{
this.AssertIsStarted();

PublishResponse response = this.Client.Publish(new PublishRequest
{
Message = ev.ToJson(),
TopicArn = this.TopicArn
});
}
}
using System;

using Amazon.SimpleNotificationService.Model;

using Inversion.Data;
using Inversion.Process;

namespace Inversion.Messaging.Transport
{
public class AmazonSNSPush : AmazonSNSStore, IPush
{
public AmazonSNSPush(string serviceUrl, string region, string accessKey, string accessSecret) : base(serviceUrl, region, accessKey, accessSecret) {}

public void Push(IEvent ev)
{
this.AssertIsStarted();

PublishResponse response = this.Client.PublishAsync(new PublishRequest
{
Message = ev.ToJson(),
TopicArn = this.TopicArn
}).Result;
}
}
}
16 changes: 0 additions & 16 deletions Inversion.Messaging.AmazonSNS/packages.config

This file was deleted.

Loading

0 comments on commit 14f93b4

Please sign in to comment.