Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleTokenService" /> class.
 /// </summary>
 /// <param name="simpleTokenRepo">The simple token repository.</param>
 /// <param name="options">The options.</param>
 public SimpleTokenService(
     ISimpleTokenRepository simpleTokenRepo,
     SimpleTokenSettings options)
 {
     Settings        = options ?? new SimpleTokenSettings();
     SimpleTokenRepo = simpleTokenRepo;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleTokenService"/> class.
 /// </summary>
 /// <param name="simpleTokenRepo">The simple token repository.</param>
 public SimpleTokenService(ISimpleTokenRepository simpleTokenRepo)
 {
     Settings        = new SimpleTokenSettings();
     SimpleTokenRepo = simpleTokenRepo;
 }