当前位置: 首页>>代码示例>>C#>>正文


C# ILoggerFacade类代码示例

本文整理汇总了C#中ILoggerFacade的典型用法代码示例。如果您正苦于以下问题:C# ILoggerFacade类的具体用法?C# ILoggerFacade怎么用?C# ILoggerFacade使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ILoggerFacade类属于命名空间,在下文中一共展示了ILoggerFacade类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PlaylistProvider

        public PlaylistProvider(
            ISession session, 
            Dispatcher dispatcher,
            ILoggerFacade logger)
        {
            _session = session;
            _dispatcher = dispatcher;
            _logger = logger;
            _playlists = new ObservableCollection<Playlist>();

            if (_session.PlaylistContainer != null)
            {
                InitializePlaylistContainer();
            }
            else
            {
                _session.LoginComplete += (s, e) =>
                                              {
                                                  if (e.Status == Error.OK)
                                                  {
                                                      InitializePlaylistContainer();
                                                  }
                                              };
            }
        }
开发者ID:krikelin,项目名称:torshify-client,代码行数:25,代码来源:PlaylistProvider.cs

示例2: TransferViewModel

        public TransferViewModel(
            ILoggerFacade logger,
            IStatusBar statusBar,
            IRegionManager regionManager,
            IEventAggregator eventAggregator,
            ITradingServiceAsync tradingService,
            Bullsfirst.InterfaceOut.Oms.MarketDataServiceReference.IMarketDataServiceAsync marketDataService,
            UserContext userContext,
            ReferenceData referenceData)
        {
            logger.Log("TransferViewModel.TransferViewModel()", Category.Debug, Priority.Low);
            _logger = logger;
            _statusBar = statusBar;
            _regionManager = regionManager;
            _eventAggregator = eventAggregator;
            _tradingService = tradingService;
            _marketDataService = marketDataService;
            this.UserContext = userContext;
            this.ReferenceData = referenceData;

            _tradingService.TransferCashCompleted += new EventHandler<AsyncCompletedEventArgs>(TransferCallback);
            _tradingService.TransferSecuritiesCompleted += new EventHandler<AsyncCompletedEventArgs>(TransferCallback);
            _tradingService.AddExternalAccountCompleted += new EventHandler<AddExternalAccountCompletedEventArgs>(AddExternalAccountCallback);
            _marketDataService.GetMarketPriceCompleted +=
                new EventHandler<InterfaceOut.Oms.MarketDataServiceReference.GetMarketPriceCompletedEventArgs>(GetMarketPriceCallback);
            TransferCommand = new DelegateCommand<object>(this.TransferExecute, this.CanTransferExecute);
            AddExternalAccountCommand = new DelegateCommand<object>(this.AddExternalAccountExecute);
            this.PropertyChanged += this.OnPropertyChanged;
            this.ValidateAll();

            SubscribeToEvents();
        }
开发者ID:popbones,项目名称:archfirst,代码行数:32,代码来源:TransferViewModel.cs

示例3: AccountsViewModel

        public AccountsViewModel(
            ILoggerFacade logger,
            IStatusBar statusBar,
            IRegionManager regionManager,
            IEventAggregator eventAggregator,
            ITradingServiceAsync tradingService,
            UserContext userContext)
        {
            logger.Log("AccountsViewModel.AccountsViewModel()", Category.Debug, Priority.Low);
            _logger = logger;
            _statusBar = statusBar;
            _regionManager = regionManager;
            _eventAggregator = eventAggregator;
            _tradingService = tradingService;
            this.UserContext = userContext;

            _tradingService.OpenNewAccountCompleted += new EventHandler<OpenNewAccountCompletedEventArgs>(OpenNewAccountCallback);
            _tradingService.ChangeAccountNameCompleted += new EventHandler<AsyncCompletedEventArgs>(ChangeAccountNameCallback);
            CreateAccountCommand = new DelegateCommand<object>(this.CreateAccountExecute);
            EditAccountCommand = new DelegateCommand<object>(this.EditAccountExecute);
            UpdateAccountsCommand = new DelegateCommand<object>(this.UpdateAccountsExecute);
            SelectAccountCommand = new DelegateCommand<object>(this.SelectAccountExecute);

            SubscribeToEvents();
        }
开发者ID:popbones,项目名称:archfirst,代码行数:25,代码来源:AccountsViewModel.cs

示例4: LocationInputViewModel

 public LocationInputViewModel(CompositionContainer container, ILoggerFacade loggerFacade, IEventAggregator eventAggregator)
 {
     this.Street = string.Empty;
     this.Number = string.Empty;
     this.City = string.Empty;
     this.PostCode = string.Empty;
     this.OkCommand = new DelegateCommand<object>(
     this.OnOKClicked, this.CanOKClicked);
     this.CancelCommand = new DelegateCommand<object>(
     this.OnCancelClicked, this.CanCancelClicked);
     this.MoveDownStopCommand = new DelegateCommand<object>(
     this.OnMoveDownCommand, this.CanMoveDownCommand);
     this.MoveUpStopCommand = new DelegateCommand<object>(
     this.OnMoveUpCommand, this.CanMoveUpCommand);
     this.DeleteStopCommand = new DelegateCommand<object>(
     this.OnDeleteStopCommand, this.CanDeleteStopCommand);
     this._container = container;
     this._loggerFacade = loggerFacade;
     this.eventAggregator = eventAggregator;
     mainTabEvent = eventAggregator.GetEvent<CompositePresentationEvent<MainTabInfo>>();
     _notificationErrorInteraction = new InteractionRequest<Notification>();
     this.LocationSelectedCommand = new DelegateCommand<object>(
     this.OnLocationSelected, this.CanLocationSelected);
     this.StopSelectedCommand = new DelegateCommand<object>(
     this.OnStopSelected, this.CanStopSelected);
     this.LocationsSelected = new ObservableCollection<GeoLocatorDetail>();
     this.LocationResults = new ObservableCollection<GeoLocatorDetail>();
     this.RouteDirections = new ObservableCollection<string>();
     this.SelectionVisibility = Visibility.Visible;
     this.StopsVisibility = Visibility.Collapsed;
     this.RouteDirectionsVisibility = Visibility.Collapsed;
 }
开发者ID:jpenet,项目名称:WebArcMap,代码行数:32,代码来源:LocationInputViewModel.cs

示例5: DataRepositoryObjectViewModel

 public DataRepositoryObjectViewModel( IDataRepository dataRepository, IRegionManager regionManager, IInteractionService interactionService, ILoggerFacade logger )
     : base(regionManager, interactionService, logger)
 {
     Model = null;
      InTransaction = false;
      this.DataRepository = dataRepository;
 }
开发者ID:nagyist,项目名称:HealthTracker-1,代码行数:7,代码来源:DataRepositoryObjectViewModel.cs

示例6: InitLog4Net

 public static ILoggerFacade InitLog4Net(string logName)
 {
     if (m_logger == null) {
         m_logger = new Log4NetLogger(logName);
     }
     return m_logger;
 }
开发者ID:sohong,项目名称:greenfleet-viewer,代码行数:7,代码来源:LogUtil.cs

示例7: RosterViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="RosterViewModel"/> class.
        /// </summary>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="logger">The logger.</param>
        /// <param name="rosterService">The roster service.</param>
        public RosterViewModel(IEventAggregator eventAggregator, ILoggerFacade logger, RosterService rosterService)
        {
            this.RosterService = rosterService;
            this.RegisterHandlers();

            logger.Log("RosterViewModel Initialized", Category.Debug, Priority.None);
        }
开发者ID:bradsjm,项目名称:LaJustPowerMeter,代码行数:13,代码来源:RosterViewModel.cs

示例8: ClientsViewModel

 public ClientsViewModel(IEventAggregator aggregator, IRegionManager regionManager,
     IConnectionManager connectionManager, IInteractionService interactionService, ILoggerFacade loggerFacade) :
         base(aggregator, regionManager, connectionManager, interactionService, loggerFacade)
 {
     //aggregator.GetEvent<BootstrappingCompleteUiEvent>().Subscribe(BootstrappCompletedHandler);
     AdditionalRoomsValues = new ObservableCollection<string> {"Yes", "No"};
 }
开发者ID:George-Andras,项目名称:HomeInventories,代码行数:7,代码来源:ClientsViewModel.cs

示例9: ReservationModule

 public ReservationModule(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, ILoggerFacade logger)
 {
     this._container = container;
     this._regionManager = regionManager;
     this._eventAggregator = eventAggregator;
     this._logger = logger;
 }
开发者ID:thpratik,项目名称:TableReservation,代码行数:7,代码来源:ReservationModule.cs

示例10: OrdersViewModel

        public OrdersViewModel(
            ILoggerFacade logger,
            IStatusBar statusBar,
            IEventAggregator eventAggregator,
            ITradingServiceAsync tradingService,
            UserContext userContext,
            ReferenceData referenceData)
        {
            logger.Log("PositionsViewModel.PositionsViewModel()", Category.Debug, Priority.Low);
            _logger = logger;
            _statusBar = statusBar;
            _eventAggregator = eventAggregator;
            _tradingService = tradingService;
            this.UserContext = userContext;
            this.Orders = new ObservableCollection<Order>();
            this.ReferenceData = referenceData;

            this.UpdateOrdersCommand = new DelegateCommand<object>(this.UpdateOrdersExecute);
            this.ResetFilterCommand = new DelegateCommand<object>(this.ResetFilterExecute);
            this.CancelOrderCommand = new DelegateCommand<object>(this.CancelOrderExecute);

            _tradingService.GetOrdersCompleted +=
                new EventHandler<GetOrdersCompletedEventArgs>(GetOrdersCallback);
            _tradingService.CancelOrderCompleted +=
                new EventHandler<AsyncCompletedEventArgs>(CancelOrderCallback);
            this.UserContext.PropertyChanged +=
                new PropertyChangedEventHandler(OnUserContextPropertyChanged);

            ResetFilter();
            SubscribeToEvents();
        }
开发者ID:popbones,项目名称:archfirst,代码行数:31,代码来源:OrdersViewModel.cs

示例11: MefModuleManager

 public MefModuleManager(
     IModuleInitializer moduleInitializer,
     IModuleCatalog moduleCatalog,
     ILoggerFacade loggerFacade)
     : base(moduleInitializer, moduleCatalog, loggerFacade)
 {
 }
开发者ID:ssethi,项目名称:TestFrameworks,代码行数:7,代码来源:MefModuleManager.cs

示例12: ApplicationMenuViewModel

 /// <summary>
 ///     Initializes a new instance of the <see cref="VMBase" /> class.
 /// </summary>
 /// <param name="aggregator">The aggregator.</param>
 /// <param name="regionManager">The region manager.</param>
 /// <param name="connectionManager"></param>
 /// <param name="interactionService"></param>
 /// <param name="loggerFacade"></param>
 /// <exception cref="System.ArgumentNullException">
 ///     Any parameter
 /// </exception>
 public ApplicationMenuViewModel(IEventAggregator aggregator, IRegionManager regionManager,
     IConnectionManager connectionManager,
     IInteractionService interactionService, ILoggerFacade loggerFacade)
     : base(aggregator, regionManager, connectionManager, interactionService, loggerFacade)
 {
     EventAggregator.GetEvent<UserAuthCompletedEvent>().Subscribe(OnUserAuth);
 }
开发者ID:George-Andras,项目名称:HomeInventories,代码行数:18,代码来源:ApplicationMenuViewModel.cs

示例13: BaseIOViewModel

 public BaseIOViewModel(SelectedSettings settings, string portName, ILoggerFacade logger)
 {
     this.logger = logger;
     this.settings = settings;
     this.portName = portName;
     StopCommand = new DelegateCommand(OnStop);
 }
开发者ID:KiselevKN,项目名称:BootMega,代码行数:7,代码来源:BaseIOViewModel.cs

示例14: CustomerListViewModel

 public CustomerListViewModel(IUnityContainer container)
 {
   this.container = container;
   this.logger = this.container.Resolve<ILoggerFacade>();
   this.eventAggregator = this.container.Resolve<IEventAggregator>();
   this.modelService = this.container.Resolve<IModelService>();
 }
开发者ID:anica87,项目名称:WPFNhibernate,代码行数:7,代码来源:CustomerListViewModel.cs

示例15: PrismUnityApplication

        protected PrismUnityApplication(ILoggerFacade logger, IUnityContainer container) : base(logger)
        {
            if (container == null)
                throw new InvalidOperationException("Unity container is null");

            Container = container;
        }
开发者ID:xperiandri,项目名称:Prism,代码行数:7,代码来源:PrismUnityApplication.cs


注:本文中的ILoggerFacade类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。