OSAE.Plugin.RunInterface C# (CSharp) Метод

RunInterface() публичный Метод

public RunInterface ( string serviceName ) : void
serviceName string
Результат void
        public void RunInterface(string serviceName)
        {
            Log = new OSAE.General.OSAELog(serviceName);
            Log.Debug(PluginName + " - Running interface.");
            try
            {
                _plugin.RunInterface(PluginName);
                _running = true;
            }
            catch (Exception ex)
            { Log.Error(PluginName + " - Run Interface Error", ex); }

            Log.Debug(PluginName + " - Moving on...");
        }

Usage Example

 private void startPlugin(Plugin plugin)
 {
     //OSAEObject obj = OSAEObjectManager.GetObjectByName(plugin.PluginName);
     //OSAEObjectManager.ObjectUpdate(plugin.PluginName, plugin.PluginName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, obj.MinTrustLevel, true);
     try
     {
         if (plugin.ActivatePlugin())
         {
             plugin.RunInterface(serviceObject);
             OSAEObjectStateManager.ObjectStateSet(plugin.PluginName, "ON", serviceObject);
             Log.Info("Plugin started: " + plugin.PluginName);
         }
     }
     catch (Exception ex)
     {
         Log.Error("Error starting plugin (" + plugin.PluginName + ")", ex);
         plugin.Running = false;
     }
 }
All Usage Examples Of OSAE.Plugin::RunInterface