/// <summary>
 /// Enter a method.
 /// </summary>
 /// <param name="invocationId">Method invocation identifier.</param>
 /// <param name="instance">The instance with the method.</param>
 /// <param name="method">Name of the method.</param>
 /// <param name="parameters">Method parameters.</param>
 public void EnterMethod(string invocationId, object instance, string method,
     IDictionary<string, object> parameters)
 {
     _logger.DebugFormat(CultureInfo.InvariantCulture,
         "invocationId: {0}\r\ninstance: {1}\r\nmethod: {2}\r\nparameters: {3}",
         invocationId, instance, method, parameters.AsFormattedString());
 }
        /// <summary>
        /// Enter a method.
        /// </summary>
        /// <param name="invocationId">Method invocation identifier.</param>
        /// <param name="instance">The instance with the method.</param>
        /// <param name="method">Name of the method.</param>
        /// <param name="parameters">Method parameters.</param>
        public void Enter(string invocationId, object instance, string method, IDictionary<string, object> parameters)
        {
            string instanceAsString = instance == null ? string.Empty : instance.ToString();
            string parametersAsString = parameters == null ? string.Empty : parameters.AsFormattedString();

            CloudTracingEventSource.Log.Enter(invocationId, instanceAsString, method, parametersAsString);
        }
 public void Enter(string invocationId, object instance, string method, IDictionary<string, object> parameters)
 {
     Write("{0} - [{1}]: Entered method {2} with arguments: {3}", invocationId, instance, method, parameters.AsFormattedString());
 }