예제 #1
0
 public ExportController(
     Func <ExportDataRequest, IExportProvider>[] exportProviderFactories,
     IKnownExportTypesRegistrar knownExportTypesRegistrar,
     IUserNameResolver userNameResolver,
     IModuleInitializerOptions moduleInitializerOptions,
     IKnownExportTypesResolver knownExportTypesResolver,
     IExportSecurityHandlerRegistrar exportSecurityHandlerRegistrar)
 {
     _exportProviderFactories        = exportProviderFactories;
     _knownExportTypesRegistrar      = knownExportTypesRegistrar;
     _userNameResolver               = userNameResolver;
     _knownExportTypesResolver       = knownExportTypesResolver;
     _defaultExportFolder            = moduleInitializerOptions.VirtualRoot + "/App_Data/Export/";
     _exportSecurityHandlerRegistrar = exportSecurityHandlerRegistrar;
 }
 public ExportController(
     IEnumerable <Func <ExportDataRequest, IExportProvider> > exportProviderFactories,
     IKnownExportTypesRegistrar knownExportTypesRegistrar,
     IUserNameResolver userNameResolver,
     IPushNotificationManager pushNotificationManager,
     IOptions <PlatformOptions> platformOptions,
     IKnownExportTypesResolver knownExportTypesResolver,
     IAuthorizationService authorizationService)
 {
     _exportProviderFactories   = exportProviderFactories;
     _knownExportTypesRegistrar = knownExportTypesRegistrar;
     _userNameResolver          = userNameResolver;
     _pushNotificationManager   = pushNotificationManager;
     _platformOptions           = platformOptions.Value;
     _knownExportTypesResolver  = knownExportTypesResolver;
     _authorizationService      = authorizationService;
 }