Ejemplo n.º 1
0
        public RemoteFileController(AttachService attachService
                                    , TokenSerivce tokenSerivce
                                    , NoteFileService noteFileService
                                    , UserService userService
                                    , ConfigFileService configFileService
                                    , IHttpContextAccessor accessor
                                    , AccessService accessService
                                    , ConfigService configService
                                    , TagService tagService
                                    , NoteService noteService
                                    , NotebookService notebookService
                                    , IWebHostEnvironment webHostEnvironment
                                    , ISevenZipCompressor sevenZipCompressor
                                    , BlogService blogService
                                    ) :
            base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
        {
            this.accessService      = accessService;
            this.blogService        = blogService;
            this.configService      = configService;
            this.tagService         = tagService;
            this.notebookService    = notebookService;
            this.noteService        = noteService;
            this.HostEnvironment    = webHostEnvironment;
            this.SevenZipCompressor = sevenZipCompressor;

            if (RuntimeEnvironment.IsWindows)
            {
                PathRoot = @"C:\";
            }
        }
Ejemplo n.º 2
0
 public NoteAPIController(AttachService attachService
                          , TokenSerivce tokenSerivce
                          , NoteFileService noteFileService
                          , UserService userService
                          , ConfigFileService configFileService
                          , IHttpContextAccessor accessor,
                          NoteService noteService,
                          NoteContentService noteContentService,
                          NotebookService notebookService,
                          NoteRepositoryService noteRepositoryService,
                          TrashService trashService,
                          EPassService ePass,
                          GMService gMService,
                          DataSignService dataSignService
                          ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.attachService         = attachService;
     this.noteService           = noteService;
     this.tokenSerivce          = tokenSerivce;
     this.noteContentService    = noteContentService;
     this.trashService          = trashService;
     this.accessor              = accessor;
     this.notebookService       = notebookService;
     this.noteRepositoryService = noteRepositoryService;
     this.ePassService          = ePass;
     this.dataSignService       = dataSignService;
     this.gMService             = gMService;
 }
Ejemplo n.º 3
0
        public APPController(AttachService attachService
                             , TokenSerivce tokenSerivce
                             , NoteFileService noteFileService
                             , UserService userService
                             , ConfigFileService configFileService

                             , IHttpContextAccessor accessor) :
            base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
        {
        }
Ejemplo n.º 4
0
 public MemberIndexController(AttachService attachService
                              , TokenSerivce tokenSerivce
                              , NoteFileService noteFileService
                              , UserService userService
                              , ConfigFileService configFileService
                              , IHttpContextAccessor accessor, NoteService noteService
                              ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.noteService = noteService;
 }
Ejemplo n.º 5
0
 public SpamController(AttachService attachService
                       , TokenSerivce tokenSerivce
                       , NoteFileService noteFileService
                       , UserService userService
                       , ConfigFileService configFileService
                       , IHttpContextAccessor accessor,
                       SpamService spamService
                       ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.spamService = spamService;
 }
Ejemplo n.º 6
0
 public JoplinTestingController(AttachService attachService
                                , TokenSerivce tokenSerivce
                                , NoteFileService noteFileService
                                , UserService userService
                                , ConfigFileService configFileService
                                , IHttpContextAccessor accessor
                                , AuthService authService
                                ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.AuthService = authService;
 }
Ejemplo n.º 7
0
 public FileAPIController(AttachService attachService
                          , TokenSerivce tokenSerivce
                          , NoteFileService noteFileService
                          , UserService userService
                          , ConfigFileService configFileService
                          , IHttpContextAccessor accessor,
                          NoteService noteService
                          ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.noteService   = noteService;
     this.webSiteConfig = configFileService.WebConfig;
 }
Ejemplo n.º 8
0
 public VditorController(AttachService attachService
                         , TokenSerivce tokenSerivce
                         , NoteFileService noteFileService
                         , UserService userService
                         , ConfigFileService configFileService
                         , IHttpContextAccessor accessor, AuthService authService
                         ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.authService  = authService;
     this.userService  = userService;
     this.tokenSerivce = tokenSerivce;
 }
Ejemplo n.º 9
0
 public TagAPIController(AttachService attachService
                         , TokenSerivce tokenSerivce
                         , NoteFileService noteFileService
                         , UserService userService
                         , ConfigFileService configFileService
                         , IHttpContextAccessor accessor,
                         TagService tagService
                         ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.tokenSerivce = tokenSerivce;
     this.tagService   = tagService;
 }
Ejemplo n.º 10
0
 public FIDO2Controller(AttachService attachService
                        , TokenSerivce tokenSerivce
                        , NoteFileService noteFileService
                        , UserService userService
                        , ConfigFileService configFileService
                        , IHttpContextAccessor accessor
                        , AuthService authService
                        , FIDO2Service fIDO2Service
                        ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.authService  = authService;
     this.fido2Service = fIDO2Service;
 }
Ejemplo n.º 11
0
 public USBKeyController(AttachService attachService
                         , TokenSerivce tokenSerivce
                         , NoteFileService noteFileService
                         , UserService userService
                         , ConfigFileService configFileService
                         , IHttpContextAccessor accessor
                         , AuthService authService
                         , EPassService ePassService
                         ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.authService = authService;
     this.ePass       = ePassService;
 }
Ejemplo n.º 12
0
 public OrganizationController(AttachService attachService
                               , TokenSerivce tokenSerivce
                               , NoteFileService noteFileService
                               , UserService userService
                               , ConfigFileService configFileService
                               , IHttpContextAccessor accessor,
                               NotebookService notebookService,
                               OrganizationService organizationService,
                               NoteRepositoryService noteRepositoryService
                               ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.organizationService = organizationService;
 }
Ejemplo n.º 13
0
 public PayJSController(AttachService attachService
                        , TokenSerivce tokenSerivce
                        , NoteFileService noteFileService
                        , UserService userService
                        , ConfigFileService configFileService
                        , IHttpContextAccessor accessor
                        , DataContext dataContext
                        ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.dataContext       = dataContext;
     this.configFileService = configFileService;
     webSiteConfig          = configFileService.WebConfig;
     pay = new Payjs(webSiteConfig.Payjs.PayJS_MCHID, webSiteConfig.Payjs.PayJS_Key);
 }
Ejemplo n.º 14
0
        public AuthController(AttachService attachService
                              , TokenSerivce tokenSerivce
                              , NoteFileService noteFileService
                              , UserService userService
                              , ConfigFileService configFileService
                              , IDistributedCache distributedCache

                              , IHttpContextAccessor accessor,
                              AuthService authService,
                              ConfigService configService
                              ) :
            base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
        {
            this.distributedCache = distributedCache;
            this.authService      = authService;
            this.configService    = configService;
            this.config           = configService.config;
        }
Ejemplo n.º 15
0
        public BaseController(AttachService attachService
                              , TokenSerivce tokenSerivce
                              , NoteFileService noteFileService
                              , UserService userService
                              , ConfigFileService configFileService
                              , IHttpContextAccessor accessor

                              )
        {
            this.attachService     = attachService;
            this.tokenSerivce      = tokenSerivce;
            this.noteFileService   = noteFileService;
            this.configFileService = configFileService;
            this.userService       = userService;
            this._accessor         = accessor;

            config = configFileService.WebConfig;
        }
Ejemplo n.º 16
0
 public NotesRepositoryController(AttachService attachService
                                  , TokenSerivce tokenSerivce
                                  , NoteFileService noteFileService
                                  , UserService userService
                                  , ConfigFileService configFileService
                                  , IHttpContextAccessor accessor,
                                  NotebookService notebookService,
                                  NoteRepositoryService noteRepositoryService,
                                  OrganizationService organizationService,
                                  EPassService ePassService,
                                  DataSignService dataSignService
                                  ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.notebookService       = notebookService;
     this.noteRepositoryService = noteRepositoryService;
     this.ePassService          = ePassService;
     this.dataSignService       = dataSignService;
 }
Ejemplo n.º 17
0
        public APIController(AttachService attachService
                             , TokenSerivce tokenSerivce
                             , NoteFileService noteFileService
                             , UserService userService
                             , ConfigFileService configFileService
                             , IHttpContextAccessor accessor,
                             AccessService accessService,
                             DataContext dataContext


                             ) : base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
        {
            this.AccessService = accessService;
            this.dataContext   = dataContext;

            this.configFileService = configFileService;
            webcConfig             = configFileService.WebConfig;

            _randomImageFuseSize = webcConfig.PublicAPI.RandomImageFuseSize;
        }
Ejemplo n.º 18
0
 public UserAPIController(AttachService attachService
                          , TokenSerivce tokenSerivce
                          , NoteFileService noteFileService
                          , UserService userService
                          , ConfigFileService configFileService
                          , GMService gMService
                          , RealNameService realNameService
                          , IHttpContextAccessor accessor, AuthService authService
                          , EPassService ePass
                          , DataSignService dataSignService
                          ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.authService     = authService;
     this.userService     = userService;
     this.tokenSerivce    = tokenSerivce;
     this.realNameService = realNameService;
     this.ePassService    = ePass;
     this.gMService       = gMService;
     this.dataSignService = dataSignService;
 }
Ejemplo n.º 19
0
 public NoteController(AttachService attachService
                       , TokenSerivce tokenSerivce
                       , NoteFileService noteFileService
                       , UserService userService
                       , ShareService shareService
                       , ConfigFileService configFileService
                       , IWebHostEnvironment env
                       , TagService tagService
                       , TrashService trashService
                       , IHttpContextAccessor accessor
                       , NotebookService notebookService
                       , NoteService noteService
                       , NoteContentService noteContentService
                       ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.notebookService    = notebookService;
     this.noteService        = noteService;
     this.noteContentService = noteContentService;
     this.env          = env;
     this.tagService   = tagService;
     this.trashService = trashService;
 }
Ejemplo n.º 20
0
 public CommonController(AttachService attachService
                         , TokenSerivce tokenSerivce
                         , NoteFileService noteFileService
                         , UserService userService
                         , ConfigFileService configFileService
                         , IHttpContextAccessor accessor,
                         NoteService noteService,
                         NoteContentService noteContentService,
                         NotebookService notebookService,
                         NoteRepositoryService noteRepositoryService,
                         TrashService trashService
                         ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.attachService         = attachService;
     this.noteService           = noteService;
     this.tokenSerivce          = tokenSerivce;
     this.noteContentService    = noteContentService;
     this.trashService          = trashService;
     this.accessor              = accessor;
     this.notebookService       = notebookService;
     this.noteRepositoryService = noteRepositoryService;
 }
Ejemplo n.º 21
0
 public BlogController(AttachService attachService
                       , TokenSerivce tokenSerivce
                       , NoteFileService noteFileService
                       , UserService userService
                       , ConfigFileService configFileService
                       , IHttpContextAccessor accessor
                       , AccessService accessService
                       , ConfigService configService
                       , TagService tagService
                       , NoteService noteService
                       , NotebookService notebookService
                       , BlogService blogService
                       , NoteRepositoryService noteRepository
                       ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.accessService   = accessService;
     this.blogService     = blogService;
     this.configService   = configService;
     this.tagService      = tagService;
     this.notebookService = notebookService;
     this.noteService     = noteService;
     this.noteRepository  = noteRepository;
 }