Exemplo n.º 1
0
        public void Initialize(string applicationName)
        {
            this.platform = new UccPlatform();
            this.platform.Initialize(applicationName, null);

            this.traceSettings = this.platform as IUccTraceSettings;
        }
Exemplo n.º 2
0
        public void Cleanup()
        {
            this.CleanupEndpoint();

            this.traceSettings = null;
            if (this.platform != null)
            {
                try { this.platform.Shutdown(null); }
                catch (InvalidComObjectException) { }
            }
            this.platform = null;
        }
Exemplo n.º 3
0
        /// <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();
            }
        }