コード例 #1
0
 public StupidFileMiddleware(RequestDelegate next,
     IRoutingService routingService,
     IMimeTypeResolver mimeTypeResolver)
 {
     _next = next;
     _routingService = routingService;
     _mimeTypeResolver = mimeTypeResolver;
 }
コード例 #2
0
 public ResourceManager(
     string defaultPath,
     IHttpApi[] apis,
     IMimeTypeResolver mimeResolver)
 {
     this.defaultPath  = defaultPath;
     this.apis         = apis;
     this.mimeResolver = mimeResolver;
 }
コード例 #3
0
 /// <summary>
 /// Specifies the MIME type resolver to be used.
 /// </summary>
 /// <param name="resolver">The resolver.</param>
 /// <returns>Current instance.</returns>
 /// <exception cref="System.ArgumentNullException">resolver</exception>
 public StaticBuilder UseMimeTypeResolver(IMimeTypeResolver resolver)
 {
     if (resolver == null)
     {
         throw new ArgumentNullException("resolver");
     }
     _mimeTypeResolver = resolver;
     return(this);
 }
コード例 #4
0
 public FileSystemBlobStorage(FileSystemBlobStorageSettings settings,
                              IObjectSerializer objectSerializer,
                              IMimeTypeResolver mimeTypeResolver,
                              IPerformanceLog performanceLog)
 {
     _baseDirectory    = settings.BaseDirectory;
     _mimeTypeResolver = mimeTypeResolver;
     _objectSerializer = objectSerializer;
     _performanceLog   = performanceLog;
 }
コード例 #5
0
        public HttpServiceNancyModuleInitializer(IMimeTypeResolver mimeTypeResolver,
                                                 IUserIdentityProvider userIdentityProvider,
                                                 IJsonObjectSerializer jsonObjectSerializer,
                                                 HttpRequestExcutorFactory httpRequestExcutorFactory,
                                                 IEnumerable <IHttpGlobalHandler> httpGlobalHandlers,
                                                 IEnumerable <IHttpServiceSource> httpServiceSources,
                                                 IPerformanceLog performanceLog)
        {
            _mimeTypeResolver          = mimeTypeResolver;
            _userIdentityProvider      = userIdentityProvider;
            _jsonObjectSerializer      = jsonObjectSerializer;
            _httpRequestExcutorFactory = httpRequestExcutorFactory;
            _httpGlobalHandlers        = httpGlobalHandlers;
            _httpServices   = new Lazy <IEnumerable <IHttpService> >(() => httpServiceSources.SelectMany(i => i.GetServices()).ToArray());
            _performanceLog = performanceLog;

            _nancyHttpServices = new Lazy <Dictionary <Type, NancyHttpService> >(CreateNancyHttpServices);
        }
コード例 #6
0
 public DefaultDataExporterInterceptor(IDataExporter defaultDataExporter
                                       , ITransferExportOptionsEx transferExportOptionsEx
                                       , IContentVersionRepository contentVersionRepository
                                       , IRawContentRetriever rawContentRetriever
                                       , IContentLoader contentLoader
                                       , IPropertyExporter propertyExporter
                                       , IDataExportEventsRaiser eventRegister
                                       , IDataExportEvents exportEvents
                                       , IContentCacheKeyCreator contentCacheKeyCreator
                                       , ISynchronizedObjectInstanceCache cacheInstance
                                       , IContentRepository contentRepository
                                       , IPermanentLinkMapper permanentLinkMapper
                                       , IContentTypeRepository contentTypeRepository
                                       , IContentProviderManager contentProviderManager
                                       , ContentTypeAvailabilityService contentTypeAvailabilityService
                                       , IAvailableSettingsRepository availableSettingsRepository
                                       , IContentExporter contentExporter
                                       , PropertyCategoryTransform categoryTransform
                                       , ContentRootRepository contentRootRepository
                                       , ISiteDefinitionRepository siteDefinitionRepository
                                       , IMimeTypeResolver mimeTypeResolver)
     : base(eventRegister, exportEvents, contentCacheKeyCreator
            , cacheInstance, contentRepository
            , permanentLinkMapper, contentTypeRepository
            , contentProviderManager, contentTypeAvailabilityService
            , availableSettingsRepository, contentExporter
            , categoryTransform, contentRootRepository
            , siteDefinitionRepository, mimeTypeResolver)
 {
     _defaultDataExporter      = defaultDataExporter;
     _transferExportOptionsEx  = transferExportOptionsEx;
     _contentVersionRepository = contentVersionRepository;
     _contentExporter          = contentExporter;
     _rawContentRetiever       = rawContentRetriever;
     _contentLoader            = contentLoader;
     _propertyExporter         = propertyExporter;
 }
コード例 #7
0
ファイル: MovieController.cs プロジェクト: cocytus/epidaurus
 public MovieController(MovieSystemService movieSystemService, MovieInformationUpdater movieInformationUpdater, IMimeTypeResolver mimeTypeResolver)
 {
     _movieSystemService = movieSystemService;
     _movieInformationUpdater = movieInformationUpdater;
     _mimeTypeResolver = mimeTypeResolver;
 }
コード例 #8
0
 public ClipboardService(IClipboard clipboard, IImageEncoder encoder, IMimeTypeResolver mimeTypeResolver)
 {
     _clipboard        = clipboard;
     _encoder          = encoder;
     _mimeTypeResolver = mimeTypeResolver;
 }
コード例 #9
0
 public FileService(IMimeTypeResolver mimeType)
 {
     _mimeType = mimeType;
 }
コード例 #10
0
 public StaticBuilder UseMimeTypeResolver(IMimeTypeResolver resolver)
 {
     if (resolver == null) throw new ArgumentNullException("resolver");
     _mimeTypeResolver = resolver;
     return this;
 }
コード例 #11
0
 public ClipboardService(IClipboard clipboard, IImageEncoder encoder, IMimeTypeResolver mimeTypeResolver)
 {
     _clipboard = clipboard;
     _encoder = encoder;
     _mimeTypeResolver = mimeTypeResolver;
 }
コード例 #12
0
 public FileSystemSourceFileProvider(IMimeTypeResolver mimeTypeReolver, ILog log)
 {
     _log             = log;
     _mimeTypeReolver = mimeTypeReolver;
 }