Skip to content

Instantly share code, notes, and snippets.

@sfmskywalker
Created November 2, 2019 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfmskywalker/7fb185d9fc607384419618d443621217 to your computer and use it in GitHub Desktop.
Save sfmskywalker/7fb185d9fc607384419618d443621217 to your computer and use it in GitHub Desktop.
UserServiceCollectionExtensions.cs - Building Workflow Driven .NET Core Applications with Elsa
using Elsa.Samples.UserRegistration.Web.Activities;
using Microsoft.Extensions.DependencyInjection;
namespace Elsa.Samples.UserRegistration.Web.Extensions
{
public static class UserServiceCollectionExtensions
{
public static IServiceCollection AddUserActivities(this IServiceCollection services)
{
return services
.AddActivity<CreateUser>()
.AddActivity<ActivateUser>()
.AddActivity<DeleteUser>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment