/// <summary> /// Report that this connection is finished, and the reason. /// </summary> internal void FinishConnection(CompletionReason completionReason) { Log("Connection finishing with reason {0}.", completionReason); // Close the pipe, we're done with it. pipeStream.Close(); this.isFinished = true; }
public void ConnectionCompleted(CompletionReason reason) { ConnectionCompletedCollection.Add(reason); CompletedCount++; if (reason == CompletionReason.ClientDisconnect || reason == CompletionReason.ClientException) { HasDetectedBadConnection = true; } LastProcessedTime = DateTime.Now; }
internal CompletionData( CompletionReason reason, TimeSpan?newKeepAlive = null, bool shutdownRequested = false ) { Reason = reason; NewKeepAlive = newKeepAlive; ShutdownRequest = shutdownRequested; }
private string GetCompletionType(int type) { CompletionReason rsn = (CompletionReason)type; switch (rsn) { case CompletionReason.SuspendedManually: case CompletionReason.SuspendedAutomatically: return(LocRM.GetString("Suspended")); case CompletionReason.CompletedManually: return(LocRM.GetString("CompletedByManager")); case CompletionReason.CompletedAutomatically: return(LocRM.GetString("CompletedByResource")); case CompletionReason.NotCompleted: return(LocRM.GetString("NotCompleted")); } return(""); }
private static IClientConnection CreateClientConnection(CompletionReason completionReason, TimeSpan?keepAlive = null) { var task = Task.FromResult(new ConnectionData(completionReason, keepAlive)); return(CreateClientConnection(task)); }
public ConnectionData(CompletionReason completionReason, TimeSpan? keepAlive = null) { CompletionReason = completionReason; KeepAlive = keepAlive; }
public void ConnectionCompleted(CompletionReason reason) { }
public ConnectionData(CompletionReason completionReason, TimeSpan?keepAlive = null) { CompletionReason = completionReason; KeepAlive = keepAlive; }
private static RazorCompletionContext CreateRazorCompletionContext(RazorSyntaxTree syntaxTree, CompletionReason reason = CompletionReason.Invoked) { var tagHelperDocumentContext = TagHelperDocumentContext.Create(prefix: string.Empty, Array.Empty <TagHelperDescriptor>()); return(new RazorCompletionContext(syntaxTree, tagHelperDocumentContext, reason)); }
private void SpeakCompleted(CompletionReason reason) { }
public RetrieverDoneArgs(Retriever retriever) : base(retriever) { this.reason = CompletionReason.Completed; }