public void GetRouteDetailsbyID(int id) { Dispatch dispatch = new Dispatch(); dispatch.OrderDate = (Convert.ToDateTime(txtOrderDate.Text)).ToString("dd-MM-yyyy"); // dispatch.RouteID = Convert.ToInt32(dpagentRoute.SelectedItem.Value); DispatchData dispatchData = new DispatchData(); DataSet DS = new DataSet(); DS = dispatchData.getDetailsbyDDid(id); if (!Comman.Comman.IsDataSetEmpty(DS)) { txtOrderID.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["OrderID"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["OrderID"].ToString(); txtHidden.Text = id.ToString(); //txtOrderDate.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["OrderDate"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["OrderDate"].ToString(); txtDispQuantity.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["DD_NewQuantity"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["DD_NewQuantity"].ToString(); txtSampleReturn.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["DD_ReturnSample"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["DD_ReturnSample"].ToString(); txtGoodQuality.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["DD_ReturnGoodQuality"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["DD_ReturnGoodQuality"].ToString(); txtSpotDamaged.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["DD_ReturnSpotDamaged"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["DD_ReturnSpotDamaged"].ToString(); txtCommodityName.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["ProductName"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["ProductName"].ToString(); txtAgentName.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["AgentName"].ToString()) ? DS.Tables[0].Rows[0]["EmployeeName"].ToString() : DS.Tables[0].Rows[0]["AgentName"].ToString(); } }
private void updateStock() { Dispatch dispatch = new Dispatch(); dispatch.DispatchDate = (Convert.ToDateTime(txtOrderDate.Text)).ToString("dd-MM-yyyy"); dispatch.RouteID = Convert.ToInt32(dpagentRoute.SelectedItem.Value); DispatchData dispatchData = new DispatchData(); DataSet DsStock = new DataSet(); DsStock = dispatchData.GetStockFromDispatch(dispatch); if (!Comman.Comman.IsDataSetEmpty(DsStock)) { string constr = ConfigurationManager.ConnectionStrings["projectConnection"].ConnectionString; using (SqlConnection con = new SqlConnection(constr)) { using (SqlCommand cmd = new SqlCommand("sp_StockUpdateReturn")) { cmd.CommandType = CommandType.StoredProcedure; cmd.Connection = con; cmd.Parameters.AddWithValue("@tblStock", DsStock.Tables[0]); con.Open(); cmd.ExecuteNonQuery(); con.Close(); } } } }
/// <summary> /// Reads data from the child process /// </summary> void ChildProcessRead(DispatchData data, int error) { using (var map = data.CreateMap(out var buffer, out var size)) { // Faster, but harder to debug: // terminalView.Feed (buffer, (int) size); if (size == 0) { if (!string.IsNullOrEmpty(ExitText)) { terminalView.Terminal.Feed(ExitText); } ShellExited?.Invoke(); return; } byte [] copy = new byte [(int)size]; Marshal.Copy(buffer, copy, 0, (int)size); #if DEBUG System.IO.File.WriteAllBytes("/tmp/log-" + (x++), copy); #endif terminalView.Feed(copy); } DispatchIO.Read(shellFileDescriptor, (nuint)readBuffer.Length, DispatchQueue.CurrentQueue, ChildProcessRead); }
public void FromByteBufferTest() { using (var dd = DispatchData.FromByteBuffer(testData)) { var ddString = Encoding.UTF8.GetString(dd.ToArray()); Assert.AreEqual(testString, ddString); } }
public void OnPremiseResponseReceiver_ReceiveResponse_PreemptionMessage() { MockDispatcher dispatcher = new MockDispatcher(); AzureResponseReceiver receiver = new AzureResponseReceiver(dispatcher); Message emptyMessage = Message.CreateMessage(MessageVersion.Default, string.Empty); Message preemption = Message.CreateMessage(MessageVersion.Default, Constant.HpcHeaderNS); preemption.Headers.Add(MessageHeader.CreateHeader(Constant.MessageHeaderPreemption, Constant.HpcHeaderNS, 1)); DispatchData data = new DispatchData("1", 0, "1") { BrokerQueueItem = new BrokerQueueItem(null, emptyMessage, null), Client = new MockClient() { Response = preemption } }; receiver.ReceiveResponse(data); Assert.AreEqual(data.Exception, null, "Exception is not expected to happen in ReceiveResponse method."); Assert.AreEqual(data.ReplyMessage.IsFault, false, "Expected to receive non-fault message ReceiveResponse method."); Assert.AreEqual(data.ServicePreempted, true, "Expected to get ServicePreemption notice."); }
protected void btnSearch_Click(object sender, EventArgs e) { Dispatch dispatch = new Dispatch(); dispatch.flag = "Edit"; dispatch.DispatchId = Convert.ToInt32(txtDispatchId.Text); DispatchData dispatchData = new DispatchData(); DataSet DS = new DataSet(); DS = dispatchData.GetDispatchByAgentID(dispatch); if (!Comman.Comman.IsDataSetEmpty(DS)) { rpRouteList.DataSource = DS; rpRouteList.DataBind(); rpRouteList.Visible = true; uprouteList.Update(); } else { DataTable dt = new DataTable(); this.BindRepeater(dt); rpRouteList.Visible = true; uprouteList.Update(); } }
public void OnPremiseResponseReceiver_ReceiveResponse_Exception() { MockDispatcher dispatcher = new MockDispatcher(); AzureResponseReceiver receiver = new AzureResponseReceiver(dispatcher); Message emptyMessage = Message.CreateMessage(MessageVersion.Default, string.Empty); DispatchData data = new DispatchData("1", 0, "1") { BrokerQueueItem = new BrokerQueueItem(null, emptyMessage, null), Client = new MockClient() { Action = delegate() { throw new EndpointNotFoundException(); } } }; receiver.ReceiveResponse(data); Assert.AreEqual( data.Exception.GetType(), typeof(EndpointNotFoundException), "EndpointNotFoundException is expected to happen in ReceiveResponse method."); }
public void OnPremiseResponseReceiver_ReceiveResponse_FaultMessage() { MockDispatcher dispatcher = new MockDispatcher(); AzureResponseReceiver receiver = new AzureResponseReceiver(dispatcher); Message emptyMessage = Message.CreateMessage(MessageVersion.Default, string.Empty); MessageFault fault = MessageFault.CreateFault(FaultCode.CreateReceiverFaultCode("Error", Constant.HpcHeaderNS), string.Empty); DispatchData data = new DispatchData("1", 0, "1") { BrokerQueueItem = new BrokerQueueItem(null, emptyMessage, null), Client = new MockClient() { Response = Message.CreateMessage(MessageVersion.Default, fault, string.Empty) } }; receiver.ReceiveResponse(data); Assert.AreEqual(data.Exception, null, "Exception is not expected to happen in ReceiveResponse method."); Assert.AreEqual(data.ReplyMessage.IsFault, true, "Expected to receive fault message ReceiveResponse method."); }
public unsafe MTLShader(ref ShaderDescription description, MTLGraphicsDevice gd) : base(description.Stage) { _device = gd; DispatchQueue queue = Dispatch.dispatch_get_global_queue(QualityOfServiceLevel.QOS_CLASS_USER_INTERACTIVE, 0); fixed(byte *shaderBytesPtr = description.ShaderBytes) { DispatchData dispatchData = Dispatch.dispatch_data_create( shaderBytesPtr, (UIntPtr)description.ShaderBytes.Length, queue, IntPtr.Zero); Library = gd.Device.newLibraryWithData(dispatchData); try { Function = Library.newFunctionWithName(description.EntryPoint); if (Function.NativePtr == IntPtr.Zero) { throw new VeldridException( $"Failed to create Metal {description.Stage} Shader. The given entry point \"{description.EntryPoint}\" was not found."); } } finally { Dispatch.dispatch_release(dispatchData.NativePtr); } } }
public void PutRequestTest() { var f = new MockBrokerQueueFactory(); var ob = new MockBrokerObserver(); var adapter = new RequestQueueAdapter(ob, f); var item = new BrokerQueueItem(SampleMessage, Guid.NewGuid(), null); DispatchData data = new DispatchData("1", 1, "1") { BrokerQueueItem = item, MessageId = Guid.NewGuid() }; adapter.PutRequestBack(data); Assert.AreEqual(1, ob.RequestProcessingCompletedInvokedTimes, "RequestProcessingCompleted of BrokerObserver should be invoked once."); Assert.IsNull(data.BrokerQueueItem, "BrokerQueueItem property should be set to null after put back."); Assert.AreEqual(1, f.PutResponseAsyncInvokedTimes, "PutResponseAsync should be invoked once."); var messageList = f.PutMessageDic.ToList(); Assert.AreEqual(1, messageList.Count, "There should be only one message put."); Assert.AreEqual(item, messageList[0].Key, "BrokerQueueItem should match."); Assert.AreEqual(1, messageList[0].Value.Count, "There should be only one response for the request queue item."); Assert.AreEqual(null, messageList[0].Value[0], "Response message should be null."); }
private void UpdateRecord(string agentId, int routeid, int categoryid, int typeid, int commodityid, string incentive, bool isActive) { int result = 0; DispatchData dispatchdata = new DispatchData(); result = dispatchdata.AddAgentIncentive(agentId, routeid, categoryid, typeid, commodityid, incentive, isActive); if (result > 0) { divDanger.Visible = false; divwarning.Visible = false; divSusccess.Visible = true; lblSuccess.Text = "Incentive Updated Successfully"; pnlError.Update(); upMain.Update(); uprouteList.Update(); } else { divDanger.Visible = false; divwarning.Visible = true; divSusccess.Visible = false; lblwarning.Text = "Please Contact to Site Admin"; pnlError.Update(); } }
protected void btnSearch_Click(object sender, EventArgs e) { Dispatch dispatch = new Dispatch(); int id = 0; id = Convert.ToInt32(txtDispatchId.Text); DispatchData dispatchData = new DispatchData(); DataSet DS = new DataSet(); DS = dispatchData.GetDispatchByID(id, "Edit"); if (!Comman.Comman.IsDataSetEmpty(DS)) { rpRouteList.DataSource = DS; rpRouteList.DataBind(); rpRouteList.Visible = true; uprouteList.Update(); } else { ScriptManager.RegisterStartupScript(Page, Page.GetType(), "1", "alert('No record found');", true); } }
static void TrampolineReceiveCompletion(IntPtr block, IntPtr dispatchDataPtr, IntPtr contentContext, bool isComplete, IntPtr error) { var del = BlockLiteral.GetTarget <NWConnectionReceiveCompletion> (block); if (del != null) { DispatchData?dispatchData = null, dataCopy = null; IntPtr bufferAddress = IntPtr.Zero; nuint bufferSize = 0; if (dispatchDataPtr != IntPtr.Zero) { dispatchData = new DispatchData(dispatchDataPtr, owns: false); dataCopy = dispatchData.CreateMap(out bufferAddress, out bufferSize); } del(bufferAddress, bufferSize, contentContext == IntPtr.Zero ? null : new NWContentContext(contentContext, owns: false), isComplete, error == IntPtr.Zero ? null : new NWError(error, owns: false)); if (dispatchData != null) { dataCopy?.Dispose(); dispatchData?.Dispose(); } } }
protected void btnSearch_Click(object sender, EventArgs e) { Dispatch dispatch = new Dispatch(); dispatch.OrderDate = (Convert.ToDateTime(txtOrderDate.Text)).ToString("dd-MM-yyyy"); dispatch.RouteID = Convert.ToInt32(dpagentRoute.SelectedItem.Value); dispatch.CategoryId = Convert.ToInt32(dpCategory.SelectedItem.Value); DispatchData dispatchData = new DispatchData(); DataSet DS = new DataSet(); DS = dispatchData.GetDispatchSearch(dispatch); if (!Comman.Comman.IsDataSetEmpty(DS)) { //int count = Convert.ToInt32(DS.Tables[1].Rows[0]["Id"]); //count = count + 1; //txtRouteCode.Text = string.Format("R{0:0000}", count); rpRouteList.DataSource = DS; rpRouteList.DataBind(); rpRouteList.Visible = true; if (DS.Tables[0].Rows.Count != 0) { btnSubmitModal.Visible = true; btnPrintSummary.Visible = false; btnPrintGatePass.Visible = false; } uprouteList.Update(); //int type = 0; //type = Convert.ToInt32(dpCategory.SelectedItem.Value); string nm = GlobalInfo.UserName.ToString(); DS.WriteXml(Server.MapPath("~/Tabs/Dispatch/temp" + nm + ".xml")); } }
static void TrampolineReceiveCompletionReadOnlyData(IntPtr block, IntPtr dispatchDataPtr, IntPtr contentContext, bool isComplete, IntPtr error) { var del = BlockLiteral.GetTarget <NWConnectionReceiveReadOnlySpanCompletion> (block); if (del != null) { DispatchData dispatchData = null, dataCopy = null; IntPtr bufferAddress = IntPtr.Zero; nuint bufferSize = 0; if (dispatchDataPtr != IntPtr.Zero) { dispatchData = new DispatchData(dispatchDataPtr, owns: false); dataCopy = dispatchData.CreateMap(out bufferAddress, out bufferSize); } unsafe { var spanData = new ReadOnlySpan <byte> ((void *)bufferAddress, (int)bufferSize); del(spanData, contentContext == IntPtr.Zero ? null : new NWContentContext(contentContext, owns: false), isComplete, error == IntPtr.Zero ? null : new NWError(error, owns: false)); } if (dispatchData != null) { dataCopy.Dispose(); dispatchData.Dispose(); } } }
protected void btnSearch_Click(object sender, EventArgs e) { Dispatch dispatch = new Dispatch(); dispatch.OrderDate = (Convert.ToDateTime(txtOrderDate.Text)).ToString("dd-MM-yyyy"); dispatch.RouteID = Convert.ToInt32(dpagentRoute.SelectedItem.Value); DispatchData dispatchData = new DispatchData(); DataSet DS = new DataSet(); DS = dispatchData.CashierGetDetails(dispatch); if (!Comman.Comman.IsDataSetEmpty(DS)) { rpRouteList.DataSource = DS; rpRouteList.DataBind(); rpRouteList.Visible = true; uprouteList.Update(); // DS.WriteXml(Server.MapPath("~/Tabs/Dispatch/temp.xml")); //string str = DS.GetXml(); //insertDispatchTemp(DS); } else { rpRouteList.Visible = false; uprouteList.Update(); } }
static void TrampolineReceiveCompletionData(IntPtr block, IntPtr dispatchDataPtr, IntPtr contentContext, bool isComplete, IntPtr error) { var del = BlockLiteral.GetTarget <NWConnectionReceiveDispatchDataCompletion> (block); if (del != null) { DispatchData dispatchData = null; IntPtr bufferAddress = IntPtr.Zero; if (dispatchDataPtr != IntPtr.Zero) { dispatchData = new DispatchData(dispatchDataPtr, owns: false); } del(dispatchData, contentContext == IntPtr.Zero ? null : new NWContentContext(contentContext, owns: false), isComplete, error == IntPtr.Zero ? null : new NWError(error, owns: false)); if (dispatchData != null) { dispatchData.Dispose(); } } }
public void GetRouteDetailsbyID(int Row) { Dispatch dispatch = new Dispatch(); dispatch.OrderDate = (Convert.ToDateTime(txtOrderDate.Text)).ToString("dd-MM-yyyy"); dispatch.RouteID = Convert.ToInt32(dpagentRoute.SelectedItem.Value); DispatchData dispatchData = new DispatchData(); DataSet DS = new DataSet(); string nm = GlobalInfo.UserName.ToString(); DS.ReadXml(Server.MapPath("~/Tabs/Dispatch/temp" + nm + ".xml")); //DS = dispatchData.GetDispatchSearch(dispatch); if (!Comman.Comman.IsDataSetEmpty(DS)) { txtOrderID.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[Row]["OrderID"].ToString()) ? string.Empty : DS.Tables[0].Rows[Row]["OrderID"].ToString(); txtOrderDetailsId.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[Row]["OrderDetailsId"].ToString()) ? string.Empty : DS.Tables[0].Rows[Row]["OrderDetailsId"].ToString(); //txtOrderDate.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[Row]["OrderDate"].ToString()) ? string.Empty : DS.Tables[0].Rows[Row]["OrderDate"].ToString(); txtQuantity.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[Row]["Qty"].ToString()) ? string.Empty : DS.Tables[0].Rows[Row]["Qty"].ToString(); txtCommodityName.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[Row]["CommodityName"].ToString()) ? string.Empty : DS.Tables[0].Rows[Row]["CommodityName"].ToString(); //txtAgentName.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[Row]["AgentName"].ToString()) ? string.Empty : DS.Tables[0].Rows[Row]["AgentName"].ToString(); } }
public void PutResponseBackDummyExceptionTest() { var f = new MockBrokerQueueFactory(); var ob = new MockBrokerObserver(); var sampleMessage = Message.CreateMessage(MessageVersion.Default, "SampleAction"); sampleMessage.Headers.MessageId = new UniqueId(Guid.NewGuid()); var adapter = new ResponseQueueAdapter(ob, f, 4); var item = new BrokerQueueItem(DummyRequestContext.GetInstance(MessageVersion.Soap11), sampleMessage, Guid.NewGuid(), null); DispatchData data = new DispatchData("1", 1, "1") { BrokerQueueItem = item, MessageId = Guid.NewGuid(), DispatchTime = new DateTime(2000, 1, 1), Exception = new FaultException <RetryOperationError>(new RetryOperationError("Reason")), }; adapter.PutResponseBack(data); Assert.IsTrue(ob.Duration > 0, "The call duration should be greater than 0"); Assert.AreEqual(f.PutMessageDic.Count, 1, "There must be 1 and only 1 instance"); Assert.AreEqual(f.PutResponseAsyncInvokedTimes, 1, "There must be 1 and only 1 invoke"); Assert.AreSame(f.PutMessageDic.First().Key, item, "The put back BrokerQueueItem should be the same as the original one."); Assert.AreEqual(f.PutMessageDic.First().Value.Count, 1, "The response message should only be one."); Assert.AreSame(f.PutMessageDic.First().Value[0].Headers.RelatesTo, item.Message.Headers.MessageId, "The put back Message should be the same as the original one."); Assert.IsNull(data.BrokerQueueItem, "BrokerQueueItem property should be set to null after put back."); Assert.IsNull(data.ReplyMessage, "The reply message should be null after put back."); Assert.IsNull(data.Exception, "The Exception should be null after put back."); }
public void PutResponseBackPassTest() { var f = new MockBrokerQueueFactory(); var ob = new MockBrokerObserver(); var sampleMessage = Message.CreateMessage(MessageVersion.Default, "SampleAction"); sampleMessage.Headers.MessageId = new UniqueId(Guid.NewGuid()); var mockDuplexRequestContext = new MockDuplexRequestContext(sampleMessage); var adapter = new ResponseQueueAdapter(ob, f, 4); var item = new BrokerQueueItem(mockDuplexRequestContext, sampleMessage, Guid.NewGuid(), null); var message = Message.CreateMessage(MessageVersion.Default, "Default"); DispatchData data = new DispatchData("1", 1, "1") { BrokerQueueItem = item, MessageId = Guid.NewGuid(), DispatchTime = new DateTime(2000, 1, 1), ReplyMessage = message, }; adapter.PutResponseBack(data); Assert.IsTrue(ob.Duration > 0, "The call duration should be greater than 0"); Assert.AreSame(mockDuplexRequestContext.ReplyMessage, message, "The put back Message should be the same as the original one."); Assert.IsNull(data.BrokerQueueItem, "BrokerQueueItem property should be set to null after put back."); Assert.IsNull(data.ReplyMessage, "The reply message should be null after put back."); Assert.IsNull(data.Exception, "The Exception should be null after put back."); }
public override void ViewDidLoad() { base.ViewDidLoad(); terminalView = new TerminalView(View.Frame); var t = terminalView.Terminal; var size = new UnixWindowSize(); GetSize(t, ref size); pid = Pty.ForkAndExec("/bin/bash", new string [] { "/bin/bash" }, Terminal.GetEnvironmentVariables(), out fd, size); DispatchIO.Read(fd, (nuint)readBuffer.Length, DispatchQueue.CurrentQueue, ChildProcessRead); terminalView.UserInput += (byte [] data) => { DispatchIO.Write(fd, DispatchData.FromByteBuffer(data), DispatchQueue.CurrentQueue, ChildProcessWrite); }; terminalView.Feed("Welcome to XtermSharp - NSView frontend!\n"); terminalView.TitleChanged += (TerminalView sender, string title) => { View.Window.Title = title; }; terminalView.SizeChanged += (newCols, newRows) => { UnixWindowSize nz = new UnixWindowSize(); GetSize(t, ref nz); var res = Pty.SetWinSize(fd, ref nz); Console.WriteLine(res); }; View.AddSubview(terminalView); }
void ChildProcessWrite(DispatchData left, int error) { if (error != 0) { throw new Exception("Error writing data to child"); } }
protected void btnClick_btnShow(object sender, EventArgs e) { if (Page.IsValid) { DataSet ds = new DataSet(); DispatchData dispatchdata = new DispatchData(); int RouteID = Convert.ToInt32(dpRoute.SelectedItem.Value); int BrandID = Convert.ToInt32(dpBrand.SelectedItem.Value); int typeid = Convert.ToInt32(dpType.SelectedItem.Value); int commodity = Convert.ToInt32(dpCommodity.SelectedItem.Value); ds = dispatchdata.GetAgentforDReplacementSetup(RouteID, BrandID, typeid, commodity); if (!Comman.Comman.IsDataSetEmpty(ds)) { rpBrandInfo.DataSource = ds; rpBrandInfo.DataBind(); //rpBrandInfo.Visible = true; uprouteList.Update(); } else { rpBrandInfo.DataSource = ds; rpBrandInfo.DataBind(); //rpBrandInfo.Visible = true; uprouteList.Update(); } } }
// // This has more uses than the current ones, we might want to introduce // additional SendXxx methods to encode the few options that are currently // configured via one of the three NWContentContext static properties // unsafe void LowLevelSend(IntPtr handle, DispatchData buffer, IntPtr contentContext, bool isComplete, void *callback) { nw_connection_send(handle: GetCheckedHandle(), dispatchData: buffer.GetHandle(), contentContext: contentContext, isComplete: isComplete, callback: callback); }
public void SetTlsDiffieHellmanParameters(DispatchData parameters) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } sec_protocol_options_set_tls_diffie_hellman_parameters(GetCheckedHandle(), parameters.Handle); }
public void WriteOutput(DispatchData data) { if (data == null) { throw new ArgumentNullException(nameof(data)); } nw_framer_write_output_data(GetCheckedHandle(), data.Handle); }
static void TrampolineDistinguishedNamesForPeer (IntPtr block, IntPtr data) { var del = BlockLiteral.GetTarget<Action<DispatchData>> (block); if (del != null) { var dispatchData = new DispatchData (data, owns: false); del (dispatchData); } }
public void SetTlsPreSharedKeyIdentityHint(DispatchData pskIdentityHint) { if (pskIdentityHint == null) { throw new ArgumentNullException(nameof(pskIdentityHint)); } sec_protocol_options_set_tls_pre_shared_key_identity_hint(GetCheckedHandle(), pskIdentityHint.Handle); }
public unsafe void SendIdempotent(DispatchData buffer, NWContentContext context, bool isComplete) { if (context == null) { throw new ArgumentNullException(nameof(context)); } LowLevelSend(GetCheckedHandle(), buffer, context.Handle, isComplete, (void *)NWConnectionConstants._SendIdempotentContent); }
/// <summary> /// Notfies the subshell that the user entered some data /// </summary> public override void NotifyUserInput(byte [] data) { if (!IsRunning) { return; } DispatchIO.Write(shellFileDescriptor, DispatchData.FromByteBuffer(data), DispatchQueue.CurrentQueue, ChildProcessWrite); }