Ejemplo n.º 1
0
 SpeckleGSAInterfaces.MessageLevel Convert(SpeckleInterface.MessageLevel ml)
 => (new Dictionary <SpeckleInterface.MessageLevel, SpeckleGSAInterfaces.MessageLevel>()
 {
     { SpeckleInterface.MessageLevel.Debug, SpeckleGSAInterfaces.MessageLevel.Debug },
     { SpeckleInterface.MessageLevel.Information, SpeckleGSAInterfaces.MessageLevel.Information },
     { SpeckleInterface.MessageLevel.Error, SpeckleGSAInterfaces.MessageLevel.Error },
     { SpeckleInterface.MessageLevel.Fatal, SpeckleGSAInterfaces.MessageLevel.Fatal },
 })[ml];
Ejemplo n.º 2
0
 public bool Message(SpeckleInterface.MessageIntent intent, SpeckleInterface.MessageLevel level, Exception ex, params string[] messagePortions)
 {
     return(Message(Convert(intent), Convert(level), ex, messagePortions));
 }