Dev2.Studio.Core.Models.EnvironmentModel.CreateAuthorizationService C# (CSharp) Method

CreateAuthorizationService() protected method

protected CreateAuthorizationService ( IEnvironmentConnection environmentConnection ) : IAuthorizationService
environmentConnection IEnvironmentConnection
return IAuthorizationService
        protected virtual IAuthorizationService CreateAuthorizationService(IEnvironmentConnection environmentConnection)
        {
            var isLocalConnection = environmentConnection.WebServerUri != null && !string.IsNullOrEmpty(environmentConnection.WebServerUri.AbsoluteUri) && environmentConnection.WebServerUri.AbsoluteUri.ToLower().Contains(Environment.MachineName.ToLower());
            return new ClientAuthorizationService(new ClientSecurityService(environmentConnection), isLocalConnection);
        }