Skip to content

Commit

Permalink
Add package logo
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslevesque committed Oct 12, 2019
1 parent 6a05a2d commit d2899ba
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# WeakEvent

![Logo](assets/weakevent.png)

[![NuGet version](https://img.shields.io/nuget/v/ThomasLevesque.WeakEvent.svg?logo=nuget)](https://www.nuget.org/packages/ThomasLevesque.WeakEvent)
[![AppVeyor build](https://img.shields.io/appveyor/ci/thomaslevesque/weakevent.svg?logo=appveyor)](https://ci.appveyor.com/project/thomaslevesque/weakevent)
[![AppVeyor tests](https://img.shields.io/appveyor/tests/thomaslevesque/weakevent.svg?logo=appveyor)](https://ci.appveyor.com/project/thomaslevesque/weakevent/build/tests)
Expand Down Expand Up @@ -70,3 +72,9 @@ public delegate void OpenFooEventHandler(object target, object sender, FooEventA
So, when someone subscribes to our weak event by passing a normal delegate, we create a weak delegate that wraps a weak reference to
the target, and an open-instance delegate that is bound to the original delegate's method. When we need to invoke the weak delegate,
we check if the target is still alive, and if it is, we invoke the open-instance delegate on it.

## Credits

The package logo is made from two icons:
- [Lightning bolt](https://www.iconfinder.com/icons/2682840) by Laura Reen from Iconfinder, under license [CC BY-NC 3.0](https://creativecommons.org/licenses/by-nc/3.0/)
- [Broken link](https://thenounproject.com/term/broken-link/900264/) by Tomas Knopp from the Noun Project, under license [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
Binary file added assets/weakevent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions assets/weakevent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/WeakEvent/WeakEvent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<PackageReleaseNotes>https://github.com/thomaslevesque/WeakEvent/releases</PackageReleaseNotes>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageIcon>assets/weakevent.png</PackageIcon>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net40'">
Expand All @@ -33,6 +34,10 @@
<Compile Remove="AsyncWeakEventSource.cs" />
</ItemGroup>

<ItemGroup>
<None Include="../../assets/weakevent.png" Pack="True" PackagePath="assets/weakevent.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
<PackageReference Include="MinVer" Version="1.0.0-rc.1" PrivateAssets="All" />
Expand Down

0 comments on commit d2899ba

Please sign in to comment.