Skip to content

Commit

Permalink
Change to MetricsProviders.
Browse files Browse the repository at this point in the history
 * Instead of throw InvalidOperationException, convert to return null so they can be used inside Workflows.
  • Loading branch information
houseofcat committed Mar 27, 2024
1 parent 71f8411 commit f38b745
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,25 +126,25 @@ public void DecrementCounter(string name, string unit = null, string description
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public IDisposable Duration(string name, bool microScale = false, string unit = null, string description = null)
{
throw new NotImplementedException();
return null;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public IDisposable Track(string name, string unit = null, string description = null)
{
throw new NotImplementedException();
return null;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public MultiDispose TrackAndDuration(string name, bool microScale = false, string unit = null, string description = null)
{
throw new NotImplementedException();
return null;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public MultiDispose Trace(string name, string unit = null, string description = null)
{
throw new NotImplementedException();
return null;
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public MultiDispose TrackAndDuration(string name, bool microScale = false, strin

public MultiDispose Trace(string name, string unit = null, string description = null)
{
throw new NotImplementedException();
return null;
}

#endregion
Expand Down
6 changes: 3 additions & 3 deletions version.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Version>3.1.2</Version>
<AssemblyVersion>3.1.2</AssemblyVersion>
<FileVersion>3.1.2</FileVersion>
<Version>3.1.3</Version>
<AssemblyVersion>3.1.3</AssemblyVersion>
<FileVersion>3.1.3</FileVersion>
</PropertyGroup>
</Project>

0 comments on commit f38b745

Please sign in to comment.