Skip to content

Instantly share code, notes, and snippets.

@TanmayDharmaraj
Created December 20, 2017 06:26
Show Gist options
  • Select an option

  • Save TanmayDharmaraj/f5e3b4ccf790522ebcfb23efa5f274c8 to your computer and use it in GitHub Desktop.

Select an option

Save TanmayDharmaraj/f5e3b4ccf790522ebcfb23efa5f274c8 to your computer and use it in GitHub Desktop.

Revisions

  1. TanmayDharmaraj created this gist Dec 20, 2017.
    26 changes: 26 additions & 0 deletions GlobalStore.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    public class GlobalStore : IGlobalStore
    {
    private string CorrelationId { get; set; }
    private string RequestId { get; set; }

    public GlobalStore() { }

    public GlobalStore(CorrelationContext correlation_context)
    {
    if (correlation_context != null)
    {
    CorrelationId = correlation_context.CorrelationId;
    RequestId = correlation_context.RequestId;
    }
    }

    public string GetCorrelationId()
    {
    return CorrelationId;
    }

    public string GetRequestId()
    {
    return RequestId;
    }
    }