public virtual void SendIn(BotBitsClient client) { DiagnosticServices.SendMessage_SendIn <T>(client); Interlocked.Increment(ref this._sendCount); this.SkipsQueue |= MessageServices.SkipQueues; this.NoChecks |= MessageServices.NoChecks; this.InstantSend |= MessageServices.InstantSend; if (this.InstantSend) { Of(client).SendMessage((T)this, client); } else { Of(client).Enqueue((T)this, client); } }
public List <DiagnosticServices> GetDiagnosticServices(int medicalId) { Query = "SELECT Id, ServiceName FROM DiagnosticServices WHERE MedicalId = @medicalId ORDER BY ServiceName"; Command = new SqlCommand(Query, Connection); Command.Parameters.AddWithValue("medicalId", medicalId); Connection.Open(); Reader = Command.ExecuteReader(); List <DiagnosticServices> diagnosticServices = new List <DiagnosticServices>(); while (Reader.Read()) { DiagnosticServices diagnosticService = new DiagnosticServices(); diagnosticService.Id = Convert.ToInt32(Reader["Id"]); diagnosticService.ServiceName = Reader["ServiceName"].ToString(); diagnosticServices.Add(diagnosticService); } Reader.Close(); Connection.Close(); return(diagnosticServices); }