mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Making sure previous commit follows naming conventions
This commit is contained in:
parent
b3eef7755f
commit
68e9972579
@ -1,6 +1,5 @@
|
||||
using JetBrains.Annotations;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.Data;
|
||||
using Orchard.ContentManagement.Handlers;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Users.Models;
|
||||
|
@ -6,62 +6,62 @@ using Orchard.Workflows.Services;
|
||||
namespace Orchard.Users.Handlers {
|
||||
[OrchardFeature("Orchard.Users.Workflows")]
|
||||
public class WorkflowUserEventHandler : IUserEventHandler {
|
||||
private IWorkflowManager workflowManager;
|
||||
private readonly IWorkflowManager _workflowManager;
|
||||
|
||||
public WorkflowUserEventHandler(IWorkflowManager workflowManager) {
|
||||
this.workflowManager = workflowManager;
|
||||
_workflowManager = workflowManager;
|
||||
}
|
||||
|
||||
public void Creating(UserContext context) {
|
||||
workflowManager.TriggerEvent("UserCreating",
|
||||
_workflowManager.TriggerEvent("UserCreating",
|
||||
context.User,
|
||||
() => new Dictionary<string, object> {{"User", context}});
|
||||
}
|
||||
|
||||
public void Created(UserContext context) {
|
||||
workflowManager.TriggerEvent("UserCreated",
|
||||
_workflowManager.TriggerEvent("UserCreated",
|
||||
context.User,
|
||||
() => new Dictionary<string, object> {{"User", context}});
|
||||
}
|
||||
|
||||
public void LoggedIn(Security.IUser user) {
|
||||
workflowManager.TriggerEvent("UserLoggedIn",
|
||||
_workflowManager.TriggerEvent("UserLoggedIn",
|
||||
user,
|
||||
() => new Dictionary<string, object> {{"User", user}});
|
||||
}
|
||||
|
||||
public void LoggedOut(Security.IUser user) {
|
||||
workflowManager.TriggerEvent("UserLoggedOut",
|
||||
_workflowManager.TriggerEvent("UserLoggedOut",
|
||||
user,
|
||||
() => new Dictionary<string, object> {{"User", user}});
|
||||
}
|
||||
|
||||
public void AccessDenied(Security.IUser user) {
|
||||
workflowManager.TriggerEvent("UserAccessDenied",
|
||||
_workflowManager.TriggerEvent("UserAccessDenied",
|
||||
user,
|
||||
() => new Dictionary<string, object> {{"User", user}});
|
||||
}
|
||||
|
||||
public void ChangedPassword(Security.IUser user) {
|
||||
workflowManager.TriggerEvent("UserChangedPassword",
|
||||
_workflowManager.TriggerEvent("UserChangedPassword",
|
||||
user,
|
||||
() => new Dictionary<string, object> {{"User", user}});
|
||||
}
|
||||
|
||||
public void SentChallengeEmail(Security.IUser user) {
|
||||
workflowManager.TriggerEvent("UserSentChallengeEmail",
|
||||
_workflowManager.TriggerEvent("UserSentChallengeEmail",
|
||||
user,
|
||||
() => new Dictionary<string, object> {{"User", user}});
|
||||
}
|
||||
|
||||
public void ConfirmedEmail(Security.IUser user) {
|
||||
workflowManager.TriggerEvent("UserConfirmedEmail",
|
||||
_workflowManager.TriggerEvent("UserConfirmedEmail",
|
||||
user,
|
||||
() => new Dictionary<string, object> {{"User", user}});
|
||||
}
|
||||
|
||||
public void Approved(Security.IUser user) {
|
||||
workflowManager.TriggerEvent("UserApproved",
|
||||
_workflowManager.TriggerEvent("UserApproved",
|
||||
user,
|
||||
() => new Dictionary<string, object> {{"User", user}});
|
||||
}
|
||||
|
@ -12,6 +12,6 @@ Features:
|
||||
Dependencies: Settings
|
||||
Orchard.Users.Workflows:
|
||||
Name: Users Workflows Activities
|
||||
Description: Provides User based Workflow Activites.
|
||||
Description: Provides User based Workflow Activites.
|
||||
Category: Workflows
|
||||
Dependencies: Orchard.Workflows
|
||||
|
@ -129,7 +129,7 @@
|
||||
<Name>Orchard.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Orchard.Workflows\Orchard.Workflows.csproj">
|
||||
<Project>{7059493C-8251-4764-9C1E-2368B8B485BC}</Project>
|
||||
<Project>{7059493c-8251-4764-9c1e-2368b8b485bc}</Project>
|
||||
<Name>Orchard.Workflows</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user