private static void BootStrapParticipantLibrary(IParticipantLibraryLogger logWriter) //Beazley.EndorsementCatalog.Core.Security.IResolveClaimsPrincipal claimsPrincipalResolver) { participantLibrary = ParticipantLibraryConfigure .Init() .With(logWriter) .With(ConfigureBus()) .EfPersistence() .WithConnectionStrings(participantLibraryAppSettings.ConnectionString_ParticipantLibrary_Read, participantLibraryAppSettings.ConnectionString_ParticipantLibrary_Write) //.With(claimsPrincipalResolver) .Build(); }
private IAmAParticipantLibrary BootStrapParticipantLibrary(IParticipantLibraryLogger logWriter) { //IResolveClaimsPrincipal claimsPrincipalResolver = new ClaimsPrincipalResolver(); IAmAParticipantLibrary participantLibrary = ParticipantLibraryConfigure .Init() .With(logWriter) .With(ConfigureBus()) //.With(claimsPrincipalResolver) .EfPersistence() .WithConnectionsNamed(CONNECTION_STRING_NAME_READ, CONNECTION_STRING_NAME_WRITE) .Build(); return(participantLibrary); }
public EfConfigure(ParticipantLibraryConfigure configure) : base(configure) { }
public static EfConfigure EfPersistence(this ParticipantLibraryConfigure configure) { return(new EfConfigure(configure)); }