public void Initialize(string applicationName) { this.platform = new UccPlatform(); this.platform.Initialize(applicationName, null); this.traceSettings = this.platform as IUccTraceSettings; }
public void Cleanup() { this.CleanupEndpoint(); this.traceSettings = null; if (this.platform != null) { try { this.platform.Shutdown(null); } catch (InvalidComObjectException) { } } this.platform = null; }
/// <summary> /// Create platform /// </summary> public void CreatePlatform() { this.platform = new UccPlatformClass(); if (this.platform != null) { // Register this client with the platform to receive // notifications of the platform events Advise <_IUccPlatformEvents>(this.platform, this); // Initialize the platform this.platform.Initialize("UccpSample", null); IUccTraceSettings traceSettings = (IUccTraceSettings)this.platform; traceSettings.EnableTracing(); } }