//
// Copyright (c) 2004 Digital Design. All rights reserved.
//
// Author: Vadim Skipin (skipin@digdes.com)
//

using System.Security.Principal;
using System.Runtime.Remoting.Messaging;

namespace DocsVision.Runtime.Remoting
{
	public static class RemotingService
	{
		public static IPrincipal ClientPrincipal
		{
			get
			{
				return (CallContext.GetData("__CurrentPrincipal") as IPrincipal);
			}
			set
			{
				CallContext.SetData("__CurrentPrincipal", value);
			}
		}
	}
}