public void WriteOutput(HarshProvisionerContextBase context, HarshProvisionerOutput output)
        {
            if (context == null)
            {
                throw Logger.Fatal.ArgumentNull(nameof(context));
            }

            if (output == null)
            {
                throw Logger.Fatal.ArgumentNull(nameof(output));
            }

            output.Context = context.ToString();
            output.Timestamp = DateTimeOffset.Now;

            WriteOutputCore(output);
        }
예제 #2
0
        public void WriteOutput(HarshProvisionerContextBase context, HarshProvisionerOutput output)
        {
            if (context == null)
            {
                throw Logger.Fatal.ArgumentNull(nameof(context));
            }

            if (output == null)
            {
                throw Logger.Fatal.ArgumentNull(nameof(output));
            }

            output.Context   = context.ToString();
            output.Timestamp = DateTimeOffset.Now;

            WriteOutputCore(output);
        }
 protected internal abstract void WriteOutputCore(HarshProvisionerOutput output);
예제 #4
0
 protected internal abstract void WriteOutputCore(HarshProvisionerOutput output);