Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NoteService"/> class.
 /// </summary>
 /// <param name="logger">Injected Logger Provider.</param>
 /// <param name="noteDelegate">Injected Note delegate.</param>
 /// <param name="profileDelegate">Injected Profile delegate.</param>
 /// <param name="cryptoDelegate">Injected Crypto delegate.</param>
 public NoteService(ILogger <NoteService> logger, INoteDelegate noteDelegate, IUserProfileDelegate profileDelegate, ICryptoDelegate cryptoDelegate)
 {
     this.logger          = logger;
     this.noteDelegate    = noteDelegate;
     this.profileDelegate = profileDelegate;
     this.cryptoDelegate  = cryptoDelegate;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CsvExportService"/> class.
 /// </summary>
 /// <param name="noteDelegate">The note delegate to interact with the DB.</param>
 /// <param name="userProfileDelegate">The user profile delegate to interact with the DB.</param>
 /// <param name="commentDelegate">The beta request delegate to interact with the DB.</param>
 public CsvExportService(
     INoteDelegate noteDelegate,
     IUserProfileDelegate userProfileDelegate,
     ICommentDelegate commentDelegate)
 {
     this.noteDelegate        = noteDelegate;
     this.userProfileDelegate = userProfileDelegate;
     this.commentDelegate     = commentDelegate;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DashboardService"/> class.
 /// </summary>
 /// <param name="noteDelegate">The note delegate to interact with the DB.</param>
 /// <param name="dependentDelegate">The dependent delegate to interact with the DB.</param>
 /// <param name="userProfileDelegate">The user profile delegate to interact with the DB.</param>
 /// <param name="config">The configuration provider.</param>
 public DashboardService(
     INoteDelegate noteDelegate,
     IResourceDelegateDelegate dependentDelegate,
     IUserProfileDelegate userProfileDelegate,
     IConfiguration config)
 {
     this.noteDelegate        = noteDelegate;
     this.dependentDelegate   = dependentDelegate;
     this.userProfileDelegate = userProfileDelegate;
     this.configuration       = config;
     this.adminConfiguration  = new AdminConfiguration();
     this.configuration.GetSection("Admin").Bind(this.adminConfiguration);
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DashboardService"/> class.
 /// </summary>
 /// <param name="noteDelegate">The note delegate to interact with the DB.</param>
 /// <param name="userProfileDelegate">The user profile delegate to interact with the DB.</param>
 /// <param name="betaRequestDelegate">The beta request delegate to interact with the DB.</param>
 /// <param name="config">The configuration provider.</param>
 public DashboardService(
     INoteDelegate noteDelegate,
     IUserProfileDelegate userProfileDelegate,
     IBetaRequestDelegate betaRequestDelegate,
     IConfiguration config)
 {
     this.noteDelegate        = noteDelegate;
     this.userProfileDelegate = userProfileDelegate;
     this.betaRequestDelegate = betaRequestDelegate;
     this.configuration       = config;
     this.adminConfiguration  = new AdminConfiguration();
     this.configuration.GetSection("Admin").Bind(this.adminConfiguration);
 }