Beispiel #1
0
 /// <summary>
 /// Set column value
 /// </summary>
 /// <param name="column">proto column</param>
 /// <param name="value">column value</param>
 public static void SetValue <T>(this T tuple, IProtoColumn column, object value)
 {
     Proto <T> .SetValue(tuple, column, value);
 }
Beispiel #2
0
        // /// <summary>
        // /// Changes context working directory and return a new context
        // /// </summary>
        // /// <param name="context">current context</param>
        // /// <param name="dir">directory to go</param>
        // /// <returns>new context</returns>
        // public static IProtoContext ChangeDirectory(this IProtoContext context, string dir)
        // {
        //     return new ProtoContext(context, dir);
        // }

        // /// <summary>
        // /// Log a trace
        // /// </summary>
        // /// <param name="context">component context</param>
        // /// <param name="component">component name</param>
        // /// <param name="traceLevel">trace level</param>
        // /// <param name="category">trace category</param>
        // /// <param name="msg">message format</param>
        // /// <param name="args">message arguments</param>
        // public static void Log(this IProtoContext context, IProtoComponent component, TraceLevel traceLevel, string category, string msg, params object[] args)
        // {
        //     context.Log(component.Name, traceLevel, category, msg, args);
        // }

        /// <summary>
        /// Get column value
        /// </summary>
        /// <param name="column">proto column</param>
        /// <returns>column value</returns>
        public static object GetValue <T>(this T tuple, IProtoColumn column)
        {
            return(Proto <T> .GetValue(tuple, column));
        }