Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ismcagdas committed Jan 14, 2021
2 parents 727b0c0 + b976c20 commit a235e9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.ps1
Expand Up @@ -51,7 +51,7 @@

# Download install script
$DotNetInstallFile = "$TempDirectory\dotnet-install.ps1"
New-Item -ItemType Directory -Path $TempDirectory | Out-Null
New-Item -ItemType Directory -Path $TempDirectory -Force | Out-Null
(New-Object System.Net.WebClient).DownloadFile($DotNetInstallUrl, $DotNetInstallFile)

# Install by channel or version
Expand Down
13 changes: 3 additions & 10 deletions common.props
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>6.1.1</Version>
<Version>6.2.0</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<PackageIconUrl>http://www.aspnetboilerplate.com/images/abp_nupkg.png</PackageIconUrl>
<PackageProjectUrl>http://www.aspnetboilerplate.com/</PackageProjectUrl>
Expand All @@ -12,15 +12,8 @@
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup>
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<!-- Include symbol files (*.pdb) in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
<!-- Add PackageReference specific for your source control provider (see below) -->
Expand Down
12 changes: 6 additions & 6 deletions doc/WebSite/Notification-System.md
Expand Up @@ -88,7 +88,7 @@ a **specific entity** (Photo), if the user wants to get notified if anyone
writes a comment to a specified photo.

Every notification type should have a **unique name** (like
*SentFrendshipRequest* and *CommentPhoto* in the examples)
*SentFriendshipRequest* and *CommentPhoto* in the examples)

The **INotificationSubscriptionManager** also has the **UnsubscribeAsync,
IsSubscribedAsync, GetSubscriptionsAsync**... methods to manage
Expand All @@ -108,9 +108,9 @@ subscriptions.
}

//Send a general notification to a specific user
public async Task Publish_SentFrendshipRequest(string senderUserName, string friendshipMessage, UserIdentifier targetUserId)
public async Task Publish_SentFriendshipRequest(string senderUserName, string friendshipMessage, UserIdentifier targetUserId)
{
await _notificationPublisher.PublishAsync("SentFrendshipRequest", new SentFrendshipRequestNotificationData(senderUserName, friendshipMessage), userIds: new[] { targetUserId });
await _notificationPublisher.PublishAsync("SentFriendshipRequest", new SentFriendshipRequestNotificationData(senderUserName, friendshipMessage), userIds: new[] { targetUserId });
}

//Send an entity notification to a specific user
Expand All @@ -131,17 +131,17 @@ subscriptions.
}

In the first example, we published a notification to a single user.
*SentFrendshipRequestNotificationData* should be derived from
*SentFriendshipRequestNotificationData* should be derived from
**NotificationData** like this:

[Serializable]
public class SentFrendshipRequestNotificationData : NotificationData
public class SentFriendshipRequestNotificationData : NotificationData
{
public string SenderUserName { get; set; }

public string FriendshipMessage { get; set; }

public SentFrendshipRequestNotificationData(string senderUserName, string friendshipMessage)
public SentFriendshipRequestNotificationData(string senderUserName, string friendshipMessage)
{
SenderUserName = senderUserName;
FriendshipMessage = friendshipMessage;
Expand Down

0 comments on commit a235e9e

Please sign in to comment.