/// <summary>Constructor</summary> /// <param name="options">Membership Options</param> public MembershipContext(MembershipOptions options) { this.options = options.ThrowIfNull(nameof(options)); options.ConnectionString.ThrowIfNull(nameof(options.ConnectionString)); }
/// <summary>Constructor</summary> /// <param name="context">Membership Context</param> /// <param name="options">Membership Options</param> public MembershipRepository(IMembershipContext context, MembershipOptions options) { this.context = context.ThrowIfNull(nameof(context)); this.options = options.ThrowIfNull(nameof(options)); }
/// <summary>Constructor</summary> /// <param name="membershipContext">Membership Context</param> /// <param name="options">Membership Options</param> public RoleRepository(IMembershipContext membershipContext, MembershipOptions options) { this.membershipContext = membershipContext.ThrowIfNull(nameof(membershipContext)); this.options = options.ThrowIfNull(nameof(options)); }