예제 #1
0
 /// <summary>
 /// Services audit record.
 /// </summary>
 /// <param name="serviceID">Service unique id.</param>
 /// <param name="serviceType">Service type.</param>
 /// <param name="auditType"><see cref="ServiceAuditType"/> parameter.</param>
 /// <param name="formatString">Format string.</param>
 /// <param name="args">Format string arguments.</param>
 public abstract void ServiceAudit(byte serviceID, byte serviceType, ServiceAuditType auditType, string formatString, params object[] args);
예제 #2
0
 /// <summary>
 /// Services audit record.
 /// </summary>
 /// <param name="serviceID">Service unique id.</param>
 /// <param name="serviceType">Service type.</param>
 /// <param name="auditType"><see cref="ServiceAuditType"/> parameter.</param>
 /// <param name="formatString">Format string.</param>
 /// <param name="args">Format string arguments.</param>
 public abstract void ServiceAudit( byte serviceID, byte serviceType, ServiceAuditType auditType, string formatString, params object[] args );
예제 #3
0
 /// <summary>
 /// Services audit record.
 /// </summary>
 /// <param name="serviceID">Service unique id.</param>
 /// <param name="serviceType">Service type.</param>
 /// <param name="auditType"><see cref="ServiceAuditType"/> parameter.</param>
 /// <param name="formatString">Format string.</param>
 /// <param name="args">Format string arguments.</param>
 public override void ServiceAudit( byte serviceID, byte serviceType, ServiceAuditType auditType, string formatString, params object[] args )
 {
     m_CommandsQueue.Enqueue
         (
             new MsSqlDataCommand
             (
                 "[Service_Audit]",
                 CommandType.StoredProcedure,
                 new SqlParameter("@service_id", SqlDbType.TinyInt) { Value = serviceID },
                 new SqlParameter("@service_type", SqlDbType.TinyInt) { Value = serviceType },
                 new SqlParameter("@action", SqlDbType.TinyInt) { Value = auditType },
                 new SqlParameter("@args", SqlDbType.Text) { Value = String.IsNullOrEmpty(formatString) ? String.Empty : String.Format(formatString, args) }
             )
        );
 }