/// <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));
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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));
 }