Esempio n. 1
0
 public static async Task SendEventOrIncidentReport(this IHubLoggerService loggerService, string eventType)
 {
     await loggerService.Log(new LoggingDataCM
     {
         Data              = "service_start_up",
         PrimaryCategory   = "Operations",
         SecondaryCategory = "System Startup",
         Activity          = "system startup"
     });
 }
Esempio n. 2
0
 /// <summary>
 /// Sends "Terminal Incident" to report terminal Error
 /// </summary>
 /// <param name="exceptionMessage">Exception Message</param>
 /// <param name="exceptionName">Name of the occured exception</param>
 /// <param name="fr8UserId">Id of the current user. It should be obtained from AuthorizationToken</param>
 /// <returns>Response from the fr8 Event Controller</returns>
 public static async Task SendTerminalErrorIncident(this IHubLoggerService loggerService, string exceptionMessage, string exceptionName, string fr8UserId = null)
 {
     await loggerService.Log(new LoggingDataCM
     {
         Fr8UserId         = fr8UserId,
         Data              = exceptionMessage,
         PrimaryCategory   = "TerminalError",
         SecondaryCategory = exceptionName,
         Activity          = "Occured"
     });
 }
Esempio n. 3
0
 public static async Task SendEventReport(this IHubLoggerService loggerService, string message)
 {
     //make Post call
     await loggerService.Log(new LoggingDataCM
     {
         Data              = message,
         PrimaryCategory   = "Operations",
         SecondaryCategory = "System Startup",
         Activity          = "system startup"
     });
 }
Esempio n. 4
0
 public AuthenticationController(IFacebookIntegration fbIntegration, IHubLoggerService loggerService)
 {
     _loggerService = loggerService;
     _fbIntegration = fbIntegration;
 }
 public AuthenticationController(IHubLoggerService loggerService)
 {
     _loggerService = loggerService;
 }
Esempio n. 6
0
 public AuthenticationController(IHubLoggerService hubLoggerService, IStatXIntegration statXIntegration)
 {
     _hubLoggerService = hubLoggerService;
     _statXIntegration = statXIntegration;
 }
 public AuthenticationController(IAuthenticator authenticator, IHubLoggerService loggerService)
 {
     _loggerService = loggerService;
     _authenticator = authenticator;
 }
Esempio n. 8
0
 public AuthenticationController(IAsanaOAuth asanaOAuth, IHubLoggerService loggerService)
 {
     //we don`t need whole client here, so i can use only AsanaOAuth service
     _asanaOAuth    = asanaOAuth;
     _loggerService = loggerService;
 }
 public AuthenticationController(IInstagramIntegration instagramIntegration, IHubLoggerService loggerService)
 {
     _loggerService        = loggerService;
     _instagramIntegration = instagramIntegration;
 }
Esempio n. 10
0
 public AuthenticationController(IHubLoggerService loggerService, IRestfulServiceClient restfulServiceClient)
 {
     _loggerService     = loggerService;
     _googleIntegration = new GoogleIntegration(restfulServiceClient);
 }
Esempio n. 11
0
 public Event(IHubLoggerService loggerService)
 {
     _loggerService = loggerService;
 }
Esempio n. 12
0
 public AuthenticationController(Yammer yammer, IHubLoggerService loggerService)
 {
     _yammerIntegration = yammer;
     _loggerService     = loggerService;
 }
Esempio n. 13
0
 public static async Task ReportTerminalError(this IHubLoggerService eventReporter, Exception terminalError, string userId = null)
 {
     var exceptionMessage = terminalError.GetFullExceptionMessage() + "  \n\r   " + terminalError;
     await eventReporter.SendTerminalErrorIncident(exceptionMessage, terminalError.GetType().Name, userId);
 }
Esempio n. 14
0
 public AuthenticationController(ISlackIntegration slackIntegration, IHubLoggerService loggerService)
 {
     _slackIntegration = slackIntegration;
     _loggerService    = loggerService;
 }