public FileController(Zongsoft.Services.IServiceProvider serviceProvider)
		{
			if(serviceProvider == null)
				throw new ArgumentNullException("serviceProvider");

			_file = serviceProvider.Resolve<IStorageFile>();
			_bucket = serviceProvider.Resolve<IStorageBucket>();
		}
Esempio n. 2
0
        public FileController(Zongsoft.Services.IServiceProvider serviceProvider)
        {
            if (serviceProvider == null)
            {
                throw new ArgumentNullException("serviceProvider");
            }

            _file   = serviceProvider.Resolve <IStorageFile>();
            _bucket = serviceProvider.Resolve <IStorageBucket>();
        }