public override bool OnStart() { // set the maximum number of concurrent connections ServicePointManager.DefaultConnectionLimit = 12; _repository = new Repository(); _queueClient = QueueConnector.GetQueueClient(); _mediaServices = new MediaServices(); _isStopped = false; return base.OnStart(); }
public VideosAPIController() { _repository = new Repository(); _mediaServices = new MediaServices(); }