You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Executes when the client is attempting to initialize the connection.
275
+
/// <br/><br/>
276
+
/// By default, this first checks <see cref="AuthorizeAsync(OperationMessage)"/> to validate that the
277
+
/// request has passed authentication. If validation fails, the connection is closed with an Access
278
+
/// Denied message.
279
+
/// <br/><br/>
280
+
/// Otherwise, the connection is acknowledged via <see cref="OnConnectionAcknowledgeAsync(OperationMessage)"/>,
281
+
/// <see cref="TryInitialize"/> is called to indicate that this WebSocket connection is ready to accept requests,
282
+
/// and <see cref="OnSendKeepAliveAsync"/> is called to start sending keep-alive messages if configured to do so.
283
+
/// </summary>
284
+
[Obsolete($"Please use the {nameof(OnConnectionInitAsync)}(message) and {nameof(OnKeepAliveLoopAsync)} methods instead. This method will be removed in a future version of this library.")]
#pragma warning disable CS0618// Type or member is obsolete
87
95
awaitOnConnectionInitAsync(message,true);
96
+
#pragma warning restore CS0618// Type or member is obsolete
88
97
}
89
98
return;
90
99
}
@@ -105,6 +114,64 @@ public override async Task OnMessageReceivedAsync(OperationMessage message)
105
114
}
106
115
}
107
116
117
+
/// <inheritdoc/>
118
+
[Obsolete($"Please use the {nameof(OnConnectionInitAsync)} and {nameof(OnKeepAliveLoopAsync)} methods instead. This method will be removed in a future version of this library.")]
0 commit comments