コード例 #1
0
        public UploadTask(IUploadConfiguration configuration, IFileServiceProxy fileService, ILoggingClient logger)
        {
            _configuration = configuration;
            _fileService   = fileService;
            _logger        = logger;

            InitMessages();
        }
 /// <summary>
 /// Create a new <see cref="BreakpointReadActionServer"/>.
 /// </summary>
 /// <param name="server">The breakpoint server to communicate with.</param>
 /// <param name="cts"> A cancellation token source to cancel if the server receives a shutdown command.</param>
 /// <param name="client">The debugger client to send updated breakpoints to.</param>
 /// <param name="breakpointManager">A shared breakpoint manager.</param>
 public BreakpointReadActionServer(IBreakpointServer server, CancellationTokenSource cts,
                                   IDebuggerClient debuggerClient, ILoggingClient loggingClient,
                                   BreakpointManager breakpointManager) : base(server, cts)
 {
     _debuggerClient    = GaxPreconditions.CheckNotNull(debuggerClient, nameof(debuggerClient));
     _loggingClient     = GaxPreconditions.CheckNotNull(loggingClient, nameof(loggingClient));
     _breakpointManager = GaxPreconditions.CheckNotNull(breakpointManager, nameof(breakpointManager));
 }
コード例 #3
0
 public SignalRLoggingWorker(ILoggingClient client, ScheduleLoggerProvider loggerProvider)
 {
     _client         = client;
     _loggerProvider = loggerProvider;
 }
コード例 #4
0
 protected ApiController(ILoggingFactory loggingFactory)
 {
     Logger = loggingFactory.GetAsyncLoggerByType(GetType());
 }