/// <summary> /// Logs a request/response to the current cake context /// </summary> /// <param name="id">Unique identifer that can link the request with response</param> /// <param name="eventType">Request or Response</param> /// <param name="requestInfo">Request info</param> /// <param name="message">message to log</param> /// <returns>Task</returns> private async Task LogHttpEvent(string id, HttpEventType eventType, string requestInfo, byte[] message) { await Task.Run(() => { _Context.Log.Write(Core.Diagnostics.Verbosity.Diagnostic, Core.Diagnostics.LogLevel.Verbose, "{0} - {1}: {2}\r\n{3}", id, eventType, requestInfo, Encoding.UTF8.GetString(message)); }); }
/// <summary> /// Event add user /// </summary> /// <param name="source_"></param> /// <param name="type_"></param> /// <param name="owner_"></param> /// <param name="data_"></param> public TriggerReactionEvent(HttpEventSource source_, HttpEventType type_, NetTools.User owner_, Object data_) : base(source_, type_, owner_, data_) { }
/// <summary> /// Event add user /// </summary> /// <param name="source_"></param> /// <param name="type_"></param> /// <param name="owner_"></param> /// <param name="data_"></param> public AddUserEvent(HttpEventSource source_, HttpEventType type_, NetTools.User owner_, Object data_) : base(source_, type_, owner_, data_) { }
/// <summary> /// Get available services /// </summary> /// <param name="source_"></param> /// <param name="type_"></param> /// <param name="owner_"></param> /// <param name="data_"></param> public GetAvailableServicesEvent(HttpEventSource source_, HttpEventType type_, NetTools.User owner_, Object data_) : base(source_, type_, owner_, data_) { }