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

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

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