public HTTPHandler(ShareInfoService i, Model m, BufferService b, ServerUploadLimiterService u) { infoService = i; model = m; bufferService = b; uploadLimiter = u; AddDefaultMimeTypes(); }
public WatchdogController(Model m, SharesController s, BufferService b, OverlordManagerService o) { model = m; shareController = s; bufferService = b; logger = LogManager.GetLogger("faplog"); overlordLauncherService = o; }
public async Task Should_Return_List_Of_Coordinates(string body) { //Act var result = await BufferService.GetBuffer(body); //Assert Assert.NotNull(result); Assert.IsAssignableFrom <List <List <double> > >(result); }
public FAPClientHandler(Model m, ShareInfoService s, IConversationController c, BufferService b, ServerUploadLimiterService sl) { model = m; shareInfoService = s; chatController = c; bufferService = b; serverUploadLimiterService = sl; logger = LogManager.GetLogger("faplog"); }
public async Task Should_throw_exception_when_given_incorrect_data() { //Arrange string body = "{\"type\": \"FeatureCollection\",\"features\": [{\"type\": \"Feature\",\"properties\": {\"geometryId\": \"ExeId\"},\"geometry\": {\"type\": \"Point\",\"coordinates\": [51.69158,-3.33906]}}]},\"distances\": [5]}"; //Act var result = await Record.ExceptionAsync(() => BufferService.GetBuffer(body)); //Assert Assert.NotNull(result); Assert.IsType <Exception>(result); }
public TraceDataCollector(IMessageProtocol messageProtocol, BufferService bufferService, ClassIdentifier classIdentifier, MethodIdentifier methodIdentifier, IErrorHandler errorHandler, ILog logger) { _messageProtocol = messageProtocol ?? throw new ArgumentNullException(nameof(messageProtocol)); _bufferService = bufferService ?? throw new ArgumentNullException(nameof(bufferService)); _classIdentifier = classIdentifier ?? throw new ArgumentNullException(nameof(classIdentifier)); _methodIdentifier = methodIdentifier ?? throw new ArgumentNullException(nameof(methodIdentifier)); _errorHandler = errorHandler ?? throw new ArgumentNullException(nameof(errorHandler)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _methodIdAdapter = new MethodIdAdapter(this); _task = Task.Run(() => ReadTraceMessages()); }
protected override void PostProcess(string contents) { var response = JObject.Parse(contents); if (response["access_token"] != null) { string accessToken = response["access_token"].ToString().Replace("\"", ""); Config.BufferAccessToken = accessToken; var service = new BufferService(accessToken); service.GetProfiles(ReceiveProfiles); } else { MessageService.ShowError(Localization.Resources.ErrorBufferProfiles); } }
public ReportController(BufferService bufferService) { _bufferService = bufferService; }
public FAPFileUploader(BufferService b, ServerUploadLimiterService u) { bufferService = b; uploadLimiter = u; nsm = new NetworkSpeedMeasurement(NetSpeedType.Upload); }