Beispiel #1
0
        internal async Task DeleteFileAsyncInternal(string devicePath)
        {
            Command c = _brick.NewCommand(CommandType.System);

            c.DeleteFile(devicePath);
            var r = await _brick.SendCommandAsyncInternal(c);

            if (r.SystemReplyStatus != SystemReplyStatus.Success)
            {
                throw new Exception("Error deleting file: " + r.SystemReplyStatus);
            }
        }
Beispiel #2
0
        internal async Task DeleteFileAsyncInternal(string devicePath)
        {
            Response r = ResponseManager.CreateResponse();
            Command  c = new Command(CommandType.SystemReply);

            c.DeleteFile(devicePath);
            await _brick.SendCommandAsyncInternal(c);

            if (r.SystemReplyStatus != SystemReplyStatus.Success)
            {
                throw new Exception("Error deleting file: " + r.SystemReplyStatus);
            }
        }
		internal async Task DeleteFileAsyncInternal(string devicePath)
		{
			Response r = ResponseManager.CreateResponse();
			Command c = new Command(CommandType.SystemReply);
			c.DeleteFile(devicePath);
			await _brick.SendCommandAsyncInternal(c);
			if(r.SystemReplyStatus != SystemReplyStatus.Success)
				throw new Exception("Error deleting file: " + r.SystemReplyStatus);
		}