示例#1
0
        public void DefaultLogFail()
        {
            NetSdkBuildTaskLogger sdkLogger = new NetSdkBuildTaskLogger();

            sdkLogger.LogInfo("Test Log message");
            sdkLogger.LogError("Some test error message");
        }
示例#2
0
        NetSdkBuildTaskLogger GetLogger()
        {
            NetSdkBuildTaskLogger logger = GlobalStateInfo.GetGlobalObject<NetSdkBuildTaskLogger>();
            if (logger == null)
            {
                BuildConsoleLogger consoleLogger = GlobalStateInfo.GetGlobalObject<BuildConsoleLogger>();
                if (consoleLogger != null)
                    logger = consoleLogger;
            }

            return logger;
        }
示例#3
0
 public PrSvc(Octokit.GitHubClient ghc, NetSdkBuildTaskLogger log)
 {
     Logger = log;
     OC     = ghc;
 }
示例#4
0
 public GitHubService(NetSdkBuildTaskLogger utilLog, string ghAccessToken) : base(utilLog)
 {
     GHAccessToken = ghAccessToken;
 }
示例#5
0
        //KeyVaultService KVSvc { get; set; }

        #endregion

        #region Constructor
        //public PrSvc(Octokit.GitHubClient ghc, NetSdkBuildTaskLogger log, KeyVaultService kvService)
        public PrSvc(Octokit.GitHubClient ghc, NetSdkBuildTaskLogger log)
        {
            Logger = log;
            OC     = ghc;
            //KVSvc = kvService;
        }
示例#6
0
        public void DefaultLogInfo()
        {
            NetSdkBuildTaskLogger sdkLogger = new NetSdkBuildTaskLogger();

            sdkLogger.LogInfo("Test Log message");
        }
 public InstallPsModulesUtilTask(NetSdkBuildTaskLogger taskLogger) : base(taskLogger)
 {
     Init();
 }
示例#8
0
 protected NetSdkUtilTask(NetSdkBuildTaskLogger utilLog) : this()
 {
     UtilLogger = utilLog;
 }
示例#9
0
 public KeyVaultService(NetSdkBuildTaskLogger utilLog) : base(utilLog)
 {
     Init();
 }