SupportedMethods() public static method

Get the list of supported reporting methods supported via the REST API.
public static SupportedMethods ( ) : List
return List
Beispiel #1
0
        public MainWindow()
        {
            this.DataContext = this;

            InitializeComponent();

            this.Services = BackstopRestReportUri.SupportedMethods().Select(u => u.Service).Distinct().ToList();
        }
Beispiel #2
0
        static void SelectedServiceChanged(DependencyObject source, DependencyPropertyChangedEventArgs args)
        {
            var this_ = (MainWindow)source;

            this_.SelectedMethod = null;

            string value = (string)args.NewValue;

            if (string.IsNullOrEmpty(value))
            {
                this_.Methods = new List <BackstopRestReportUri>();
            }
            else
            {
                this_.Methods = BackstopRestReportUri.SupportedMethods().Where(u => u.Service == value).ToList();
            }
        }