Ejemplo n.º 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    = "";
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
            }
        }