Esempio n. 1
0
        private Uri SetUriHostToLocalMachineName()
        {
            string query = "?tx=" + IsTransactional.ToString().ToLowerInvariant();

            var builder = new UriBuilder(Uri.Scheme, LocalMachineName, Uri.Port, Uri.AbsolutePath, query);

            return(builder.Uri);
        }
        private Uri SetUriHostToLocalMachineName()
        {
            string query = String.Format("?tx={0}&recoverable={1}",
                                         IsTransactional.ToString().ToLowerInvariant(),
                                         IsRecoverable.ToString().ToLowerInvariant());

            var builder = new UriBuilder(Uri.Scheme, LocalMachineName, Uri.Port, Uri.AbsolutePath, query);

            return(builder.Uri);
        }