Integration
User profiles can be created or updated by publishing a UpdateProfile
event
with the following structure:
C# |
---|
| public interface UpdateProfile
{
public Guid CorrelationId { get; set; }
public string DisplayName { get; set; }
public string EmailAddress { get; set; }
string LoginId { get; set; }
}
|
In order to do so, you have to reference the Users contracts project.
XML |
---|
| <ProjectReference Include="$(ServicesPath)Users\ITsynch.Suite.Users.Profile.Application.Contracts\ITsynch.Suite.Users.Profile.Application.Contracts.csproj" />
|
This will trigger the corresponding operations in the Users Service saga. If the
handling completed successfully, a ProfileUpdated
event will be published.
C# |
---|
| public interface ProfileUpdated
{
public Guid CorrelationId { get; set; }
public string DisplayName { get; set; }
public string LoginId { get; set; }
}
|
Other services can listen to this event to be notified about updates.