예제 #1
0
        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    = "";
        }
예제 #2
0
        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;
        }
예제 #3
0
        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);
            }
        }