internal ServiceEndpoint(string endpoint, AuthOptions authOptions, int port = 443) { // Endpoint = string.Format("https://{0}.service.signalr.net", resourceName); Endpoint = endpoint; AccessKey = new AadAccessKey(authOptions); Version = "1.0"; Port = port; Name = ""; }
internal ServiceEndpoint(string endpoint, AuthOptions authOptions, int port = 443, EndpointType type = EndpointType.Primary) { Endpoint = endpoint; AccessKey = new AadAccessKey(authOptions); Version = "1.0"; Port = port; Name = ""; EndpointType = type; }
private async Task UpdateAccessKeyAsync(AadAccessKey key) { var logger = _factory.CreateLogger <AadAccessKey>(); try { await key.UpdateAccessKeyAsync(); Log.SucceedToAuthorizeAccessKey(logger, key.Endpoint); } catch (Exception e) { Log.FailedToAuthorizeAccessKey(logger, key.Endpoint, e); } }