Ejemplo n.º 1
0
        private void HMenuItem_Click1(object sender, RoutedEventArgs e)
        {
            NebulaClient     hClient     = m_hClientList.SelectedItem as NebulaClient;
            MenuItem         item        = sender as MenuItem;
            NebulaModuleInfo hModuleInfo = item.Tag as NebulaModuleInfo;

            m_hOutputWindow = new ReplModuleWindow(hClient, hModuleInfo.Guid);
            m_hOutputWindow.Show();
        }
Ejemplo n.º 2
0
 public ReplModule()
 {
     ModuleInfo         = new NebulaModuleInfo();
     ModuleInfo.Methods = new NebulaModuleMethod[1] {
         new NebulaModuleMethod()
     };
     ModuleInfo.Methods[0].MethodName = "SendCodeBlock";
     ModuleInfo.Methods[0].Parameters = new string[] { "sCode" };
     ModuleInfo.Name = "Repl";
     ModuleInfo.Guid = Guid.NewGuid();
 }
Ejemplo n.º 3
0
        //TODO: gestire la sessione, se arriva prima questa chiamata di register (plausibile per moduli mal implementati)
        public void ModuleData(Guid vId, string sData)
        {
            OperationContext       hCurrent = OperationContext.Current;
            INebulaMasterServiceCB hCb      = hCurrent.GetCallbackChannel <INebulaMasterServiceCB>();

            T hClient;

            m_hClients.TryGetValue(hCb, out hClient);

            NebulaModuleInfo hModule = hClient.Modules.Where(m => m.Guid == vId).First();

            ModuleDataReceived?.Invoke(hClient, sData);
        }
Ejemplo n.º 4
0
 public ReplModule()
 {
     ModuleInfo   = new NebulaModuleInfo("Repl", "6c6457c0-851b-499a-88f1-912a08952dc4", this);
     m_hProcesses = new Dictionary <int, Process>();
 }