Esempio n. 1
0
        internal VsVimHost(
            IVsAdapter adapter,
            ITextBufferFactoryService textBufferFactoryService,
            ITextEditorFactoryService textEditorFactoryService,
            ITextDocumentFactoryService textDocumentFactoryService,
            ITextBufferUndoManagerProvider undoManagerProvider,
            IVsEditorAdaptersFactoryService editorAdaptersFactoryService,
            IEditorOperationsFactoryService editorOperationsFactoryService,
            ISmartIndentationService smartIndentationService,
            ITextManager textManager,
            ISharedServiceFactory sharedServiceFactory,
            IVimApplicationSettings vimApplicationSettings,
            IExtensionAdapterBroker extensionAdapterBroker,
            SVsServiceProvider serviceProvider,
            ITelemetryProvider telemetryProvider)
            : base(textBufferFactoryService, textEditorFactoryService, textDocumentFactoryService, editorOperationsFactoryService)
        {
            _vsAdapter = adapter;
            _editorAdaptersFactoryService = editorAdaptersFactoryService;
            _dte = (_DTE)serviceProvider.GetService(typeof(_DTE));
            _vsExtensibility = (IVsExtensibility)serviceProvider.GetService(typeof(IVsExtensibility));
            _textManager = textManager;
            _sharedService = sharedServiceFactory.Create();
            _vsMonitorSelection = serviceProvider.GetService<SVsShellMonitorSelection, IVsMonitorSelection>();
            _vimApplicationSettings = vimApplicationSettings;
            _smartIndentationService = smartIndentationService;
            _extensionAdapterBroker = extensionAdapterBroker;

            uint cookie;
            _vsMonitorSelection.AdviseSelectionEvents(this, out cookie);

            InitTelemetry(telemetryProvider.GetOrCreate(vimApplicationSettings, _dte), vimApplicationSettings);
        }
		public TelemetryEventSubscriber (IEventStream events, ITelemetryProvider telemetry)
		{
			this.events = events;
			this.telemetry = telemetry;

			SubscribeTelemetryEvents ();
		}
 public ConfigurationWebsiteOptions(IConfiguration config, ITelemetryProvider log)
 {
     try
     {
         ShowRecommendations = Boolean.Parse(config["ShowRecommendations"]);
     }
     catch (InvalidCastException e)
     {
         log.TrackException(e);
     }
 }
 public ConfigurationWebsiteOptions(IConfiguration config, ITelemetryProvider log)
 {
     try
     {
         ShowRecommendations = config.Get<bool>("ShowRecommendations");
     }
     catch (InvalidCastException e)
     {
         log.TrackException(e);
     }
 }
 public ShoppingCartController(IPartsUnlimitedContext context, ITelemetryProvider telemetryProvider)
 {
     _db = context;
     _telemetry = telemetryProvider;
 }
 public ShoppingCartController(IPartsUnlimitedContext context, ITelemetryProvider telemetryProvider, IAntiforgery antiforgery)
 {
     _db = context;
     _telemetry = telemetryProvider;
     _antiforgery = antiforgery;
 }
 public OrdersController(IOrdersQuery ordersQuery, ITelemetryProvider telemetryProvider)
 {
     _ordersQuery = ordersQuery;
     _telemetry = telemetryProvider;
 }
 public AzureMLFrequentlyBoughtTogetherRecommendationEngine(IAzureMLFrequentlyBoughtTogetherConfig configFile, IAzureMLAuthenticatedHttpClient httpClient, ITelemetryProvider telemetryProvider)
 {
     _config = configFile;
     _client = httpClient;
     _telemetry = telemetryProvider;
 }
 public AzureMLFrequentlyBoughtTogetherRecommendationEngine(IHttpClient httpClient, ITelemetryProvider telemetryProvider)
 {
     client = httpClient;
     telemetry = telemetryProvider;
 }
 public ShoppingCartController(IContosoWebContext context, ITelemetryProvider telemetryProvider)
 {
     db = context;
     telemetry = telemetryProvider;
 }