public RemoteQueryTraceEngine(string connectionString, ADOTabular.AdomdClientWrappers.AdomdType connectionType, string sessionId, List<DaxStudioTraceEventClass> events, int port)
        {
            
            // connect to hub
            hubConnection = new HubConnection(string.Format("http://*****:*****@"d:\temp\SignalR_ClientLog.txt");
            //writer.AutoFlush = true;
            //hubConnection.TraceLevel = TraceLevels.All;
            //hubConnection.TraceWriter = writer;
            
            queryTraceHubProxy.On("OnTraceStarted", () => {OnTraceStarted();});
            queryTraceHubProxy.On("OnTraceComplete", (e) => { OnTraceComplete(e); });
            queryTraceHubProxy.On<string>("OnTraceError", (msg) => { OnTraceError(msg); });
            hubConnection.Start().Wait();
            // configure trace
            queryTraceHubProxy.Invoke("ConstructQueryTraceEngine", connectionType, sessionId, events);
            // wire up hub events

        }
예제 #2
0
 //, bool isPowerPivotConnection)
 public UpdateConnectionEvent(ADOTabular.ADOTabularConnection connection)
 {
     Connection = connection;
     DatabaseName = connection==null?string.Empty:connection.Database.Name;
     //IsPowerPivotConnection = isPowerPivotConnection;
 }
예제 #3
0
 //, bool isPowerPivotConnection)
 public UpdateConnectionEvent(ADOTabular.ADOTabularConnection connection,string databaseName)
 {
     Connection = connection;
     DatabaseName = databaseName;
     //    IsPowerPivotConnection = isPowerPivotConnection;
 }
 public static IQueryTrace CreateRemote(ADOTabular.ADOTabularConnection connection, List<TraceEventClass> events, int port)
 {
     var dsEvents = events.Select(e => (DaxStudioTraceEventClass)e).ToList();
     return new RemoteQueryTraceEngine(connection.ConnectionString,connection.Type,connection.SessionId, dsEvents, port);
 }
 public static IQueryTrace CreateLocal(ADOTabular.ADOTabularConnection connection, List<TraceEventClass> events)
 {
     var dsEvents = events.Select(e => (DaxStudioTraceEventClass)e).ToList();
     return new QueryTraceEngine(connection.ConnectionString, connection.Type, connection.SessionId, connection.ApplicationName, dsEvents);
 }