Skip to content

Instantly share code, notes, and snippets.

@fluxdigital
Created November 7, 2018 18:37
Show Gist options
  • Save fluxdigital/e35d29c39e81b8dad3f1d828e2cdb867 to your computer and use it in GitHub Desktop.
Save fluxdigital/e35d29c39e81b8dad3f1d828e2cdb867 to your computer and use it in GitHub Desktop.
Pipeline to Initialise a Telligent Host
public class InitialiseHost
{
public virtual void Process(PipelineArgs args)
{
Host.Get("default").ResolveLocalUser = (host, resolveArgs) =>
{
if (Context.User == null || !Context.User.IsAuthenticated)
return null;
return new LocalUser(Context.User.LocalName, Context.User.Profile.Email);
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment