Ejemplo n.º 1
0
        public GatewayGetOperationStatusResponse StopDiagnostics(string vnetName)
        {
            UpdateGatewayPublicDiagnostics parameters = new UpdateGatewayPublicDiagnostics()
            {
                Operation = UpdateGatewayPublicDiagnosticsOperation.StopDiagnostics,
            };

            return(client.Gateways.UpdateDiagnostics(vnetName, parameters));
        }
Ejemplo n.º 2
0
        public GatewayGetOperationStatusResponse StartDiagnostics(string vnetName, int captureDurationInSeconds, string containerName, string customerStorageKey, string customerStorageName)
        {
            UpdateGatewayPublicDiagnostics parameters = new UpdateGatewayPublicDiagnostics()
            {
                CaptureDurationInSeconds = captureDurationInSeconds.ToString(),
                ContainerName            = containerName,
                CustomerStorageKey       = customerStorageKey,
                CustomerStorageName      = customerStorageName,
                Operation = UpdateGatewayPublicDiagnosticsOperation.StartDiagnostics,
            };

            return(client.Gateways.UpdateDiagnostics(vnetName, parameters));
        }