Click here to Skip to main content
15,898,373 members

Comments by Gibran Castillo (Top 3 by date)

Gibran Castillo 15-Feb-22 13:09pm View    
Modify the comment. Delete the comment.
Hi @Richard - what is the root path of build/temp.macosx-10.9-universal2-3.10 ?
Gibran Castillo 15-Feb-22 8:45am View    
Deleted
Hi @Richard - what is the root path of build/temp.macosx-10.9-universal2-3.10 ?
Gibran Castillo 8-Nov-16 14:30pm View    
I don't know where to instantiate my singleton for the first time to then use it

I am thinking I instantiate the originalInboundData singleton class in the class where all init transfer and init conference are register with the app

My singleton C# class looks as follows:

public class OriginalInboundData
{
#region Field Declaration
private string dataPoint1 = "";
private string dataPoint2 = "";
private string dataPoint3 = "";
private string dataPoint4 = "";

private static OriginalInboundData instance = null;
private static readonly object padlock = new object();
#endregion

#region Properties Declaration
public string DataPoint1
{
    get { return dataPoint1; }
    set { dataPoint1 = value; }
}
 
public string DataPoint2
{
    get { return dataPoint2; }
    set { dataPoint2 = value; }
}
 
public string DataPoint3
{
    get { return dataPoint3; }
    set { dataPoint3 = value; }
}
 
public string DataPoint4
{
    get { return dataPoint4; }
    set { dataPoint4 = value; }
}
 
public static OriginalInboundData Instance
{
    get
    {
        lock (padlock)
        {
            if (instance == null)
            {
                instance = new OriginalInboundData();
            }
 
            return instance;
        }
    }
}
#endregion

#region Constructor
OriginalInboundData()
{
    //Do nothing
}


So I am not getting an error, I am trying to figured out where to call the singleton for the first time to them have access to it when I capture the data points during the init transfer or init conference