SmartFoxServer Silverlight API
SFSEvent..::.OnConfigLoadSuccessDelegate Delegate
Namespaces ► SmartFoxClientAPI ► SFSEvent ► SFSEvent..::.OnConfigLoadSuccessDelegate
Dispatched when the external SmartFoxClient configuration file has been loaded successfully.
This event is dispatched only if the autoConnect parameter of the LoadConfig(String, Boolean) method is set to true otherwise the connection is made and the SFSEvent..::.OnConnectionDelegate event fired.
Declaration Syntax

C# | Visual Basic | Visual C++

    public delegate void OnConfigLoadSuccessDelegate()

    Public Delegate Sub OnConfigLoadSuccessDelegate

    public delegate void OnConfigLoadSuccessDelegate()

Remarks

Since:
SmartFoxServer Pro v1.6.0

Version:
SmartFoxServer Pro

Examples
The following example shows how to handle a successful configuration loading.
CopyC#

    SFSEvent.onConfigLoadSuccess += OnConfigLoadSuccess;

    smartFox.LoadConfig("testEnvironmentConfig.xml", false);

    public void OnConfigLoadSuccess()
    {
        Debug.WriteLine("Config file loaded, now connecting...");

        smartFox.Connect(smartFox.ipAddress, smartFox.port);
    }

See Also
SFSEvent..::.OnConfigLoadFailureDelegate
LoadConfig(String, Boolean)

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)