-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] Client invocation for management sdk #2119
base: dev
Are you sure you want to change the base?
Conversation
@microsoft-github-policy-service agree company="Microsoft" |
var message = AppendMessageTracingId(new ClientCompletionMessage(result.InvocationId, connectionId, _callerId, "", new ReadOnlyMemory<byte>())); | ||
await WriteAsync(message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still needed? In serverless case, service need to know this is a paired CompletionMessage then send back, meanwhile it should be able to cleanup local directly without information from the caller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
// When the caller server is also the client router, Azure SignalR service won't send a ServiceMappingMessage to server. | ||
// To handle this condition, CallerClientResultsManager itself should record this mapping information rather than waiting for a ServiceMappingMessage sent by service. Only in this condition, this method is called with instanceId != null. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modify the comment to fit serverless scenario.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this comment.
} | ||
} | ||
|
||
public bool TryCompleteResult(string connectionId, ClientCompletionMessage message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Service can send back original CompletionMessage
directly. Below methods are not really fit serverless and should throw NotSupportedException
.
TryCompleteResult(ConnectionId, ClientCompletionMessage)
TryCompleteResult(ConnectionId, ErrorCompletionMessage)
AddServiceMapping()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed these implementation
internal sealed class WeakClientInvocationManager : IClientInvocationManager | ||
{ | ||
public ICallerClientResultsManager Caller { get; } | ||
public IRoutedClientResultsManager Router { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throw directly without assign a dummy router manager?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the dummy router manager.
Summary of the changes (Less than 80 chars)