Initialize() public method

Initializes the given TelemetryContext.
public Initialize ( TelemetryContext context ) : System.Threading.Tasks.Task
context TelemetryContext The telemetry context to initialize.
return System.Threading.Tasks.Task
 public void CallingInitializeOnComponentContextInitializerWithNullThrowsArgumentNullException()
 {
     ComponentContextInitializer source = new ComponentContextInitializer();
     Assert.Throws<AggregateException>(() => source.Initialize(null).Wait());
 }
示例#2
0
        public void CallingInitializeOnComponentContextInitializerWithNullThrowsArgumentNullException()
        {
            ComponentContextInitializer source = new ComponentContextInitializer();

            Assert.Throws <AggregateException>(() => source.Initialize(null).Wait());
        }