Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SolrViewModel"/> class.
        /// </summary>
        protected SolrViewModel(ISolrOperationManager operationManager)
        {
            //Set the operation manager to either the singleton or the one passed in.
            //This is to facilitate a testing seam around a static entity.
            OperationManager = operationManager ?? SolrOperationManager.Instance;

            // ReSharper disable once VirtualMemberCallInContructor
            RegisterOneWayBindingListeners();
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SolrJobManagementPanelViewModel" /> class.
 /// </summary>
 /// <param name="operationManager">The operation manager.</param>
 public SolrJobManagementPanelViewModel(ISolrOperationManager operationManager = null) : base(operationManager)
 {
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SolrJobLogViewModel" /> class.
 /// </summary>
 /// <param name="operationManager">The operation manager.</param>
 public SolrJobLogViewModel(ISolrOperationManager operationManager = null) : base(operationManager)
 {
 }