RetroShareSSHClient.Bridge.GetBridge C# (CSharp) Метод

GetBridge() публичный статический Метод

This function will return always the same bridge.
public static GetBridge ( MainForm gui = null ) : Bridge
gui MainForm gui only needs to be set on the first call!
Результат Bridge
        public static Bridge GetBridge(MainForm gui = null)
        {
            if (_b == null)
                if (gui != null)
                {
                    _b = new Bridge(gui);
                    InitBridge();
                }
                else
                    throw new Exception("need GUI to initialize bridge");

            return _b;
        }

Usage Example

Пример #1
0
        public SearchProcessor()
        {
            _b = Bridge.GetBridge();

            _pendingSearchReq = new Dictionary <uint, string>();
            _searches         = new Dictionary <uint, GuiSearch>();
        }
All Usage Examples Of RetroShareSSHClient.Bridge::GetBridge