public StupidFileMiddleware(RequestDelegate next, IRoutingService routingService, IMimeTypeResolver mimeTypeResolver) { _next = next; _routingService = routingService; _mimeTypeResolver = mimeTypeResolver; }
public ResourceManager( string defaultPath, IHttpApi[] apis, IMimeTypeResolver mimeResolver) { this.defaultPath = defaultPath; this.apis = apis; this.mimeResolver = mimeResolver; }
/// <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); }
public FileSystemBlobStorage(FileSystemBlobStorageSettings settings, IObjectSerializer objectSerializer, IMimeTypeResolver mimeTypeResolver, IPerformanceLog performanceLog) { _baseDirectory = settings.BaseDirectory; _mimeTypeResolver = mimeTypeResolver; _objectSerializer = objectSerializer; _performanceLog = performanceLog; }
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); }
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; }
public MovieController(MovieSystemService movieSystemService, MovieInformationUpdater movieInformationUpdater, IMimeTypeResolver mimeTypeResolver) { _movieSystemService = movieSystemService; _movieInformationUpdater = movieInformationUpdater; _mimeTypeResolver = mimeTypeResolver; }
public ClipboardService(IClipboard clipboard, IImageEncoder encoder, IMimeTypeResolver mimeTypeResolver) { _clipboard = clipboard; _encoder = encoder; _mimeTypeResolver = mimeTypeResolver; }
public FileService(IMimeTypeResolver mimeType) { _mimeType = mimeType; }
public StaticBuilder UseMimeTypeResolver(IMimeTypeResolver resolver) { if (resolver == null) throw new ArgumentNullException("resolver"); _mimeTypeResolver = resolver; return this; }
public FileSystemSourceFileProvider(IMimeTypeResolver mimeTypeReolver, ILog log) { _log = log; _mimeTypeReolver = mimeTypeReolver; }