Пример #1
0
        public async Task DontReconnect()
        {
            var proxy = SystemClientBuilder().DontReconnect().ValidateAndBuild();
            await proxy.GetGuid(System.Guid.Empty);

            ((IpcProxy)proxy).CloseConnection();
            ObjectDisposedException exception = null;

            try
            {
                await proxy.GetGuid(System.Guid.Empty);
            }
            catch (ObjectDisposedException ex)
            {
                exception = ex;
            }
            exception.ShouldNotBeNull();
        }