本文整理汇总了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();
}
};
}
}
示例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();
}
示例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();
}
示例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;
}
示例5: DataRepositoryObjectViewModel
public DataRepositoryObjectViewModel( IDataRepository dataRepository, IRegionManager regionManager, IInteractionService interactionService, ILoggerFacade logger )
: base(regionManager, interactionService, logger)
{
Model = null;
InTransaction = false;
this.DataRepository = dataRepository;
}
示例6: InitLog4Net
public static ILoggerFacade InitLog4Net(string logName)
{
if (m_logger == null) {
m_logger = new Log4NetLogger(logName);
}
return m_logger;
}
示例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);
}
示例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"};
}
示例9: ReservationModule
public ReservationModule(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, ILoggerFacade logger)
{
this._container = container;
this._regionManager = regionManager;
this._eventAggregator = eventAggregator;
this._logger = logger;
}
示例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();
}
示例11: MefModuleManager
public MefModuleManager(
IModuleInitializer moduleInitializer,
IModuleCatalog moduleCatalog,
ILoggerFacade loggerFacade)
: base(moduleInitializer, moduleCatalog, loggerFacade)
{
}
示例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);
}
示例13: BaseIOViewModel
public BaseIOViewModel(SelectedSettings settings, string portName, ILoggerFacade logger)
{
this.logger = logger;
this.settings = settings;
this.portName = portName;
StopCommand = new DelegateCommand(OnStop);
}
示例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>();
}
示例15: PrismUnityApplication
protected PrismUnityApplication(ILoggerFacade logger, IUnityContainer container) : base(logger)
{
if (container == null)
throw new InvalidOperationException("Unity container is null");
Container = container;
}