Exemple #1
0
        public static PSDeploymentEventDataAuthorization ToPSDeploymentEventDataAuthorization(this SenderAuthorization authorization)
        {
            if (authorization == null)
            {
                return(null);
            }
            PSDeploymentEventDataAuthorization psObject = new PSDeploymentEventDataAuthorization
            {
                Action    = authorization.Action,
                Role      = authorization.Role,
                Scope     = authorization.Scope,
                Condition = authorization.Condition
            };

            return(psObject);
        }
 public static PSDeploymentEventDataAuthorization ToPSDeploymentEventDataAuthorization(this SenderAuthorization authorization)
 {
     if (authorization == null)
     {
         return null;
     }
     PSDeploymentEventDataAuthorization psObject = new PSDeploymentEventDataAuthorization
     {
         Action = authorization.Action,
         Role = authorization.Role,
         Scope = authorization.Scope,
         Condition = authorization.Condition
     };
     return psObject;
 }