forked from akkadotnet/akka.net
-
Notifications
You must be signed in to change notification settings - Fork 2
/
NameAndUid.cs
52 lines (45 loc) · 1.32 KB
/
NameAndUid.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//-----------------------------------------------------------------------
// <copyright file="NameAndUid.cs" company="Akka.NET Project">
// Copyright (C) 2009-2021 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2021 .NET Foundation <https://github.com/akkadotnet/akka.net>
// </copyright>
//-----------------------------------------------------------------------
using System;
namespace Akka.Actor
{
/// <summary>
/// INTERNAL API
/// </summary>
[Obsolete("Not used. Will be removed in Akka.NET v1.5.")]
public class NameAndUid
{
private readonly string _name;
private readonly int _uid;
/// <summary>
/// TBD
/// </summary>
/// <param name="name">TBD</param>
/// <param name="uid">TBD</param>
public NameAndUid(string name, int uid)
{
_name = name;
_uid = uid;
}
/// <summary>
/// TBD
/// </summary>
public string Name { get { return _name; } }
/// <summary>
/// TBD
/// </summary>
public int Uid { get { return _uid; } }
/// <summary>
/// TBD
/// </summary>
/// <returns>TBD</returns>
public override string ToString()
{
return _name + "#" + _uid;
}
}
}