コード例 #1
0
        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (assertions != null)
                {
                    foreach (var assert in assertions)
                    {
                        if (assert != null && assert is IDisposable)
                        {
                            ((IDisposable)assert).Dispose();
                        }
                    }

                    assertions.Clear();
                }

                if (allAssertions != null)
                {
                    foreach (var assert in allAssertions)
                    {
                        if (assert != null && assert is IDisposable)
                        {
                            ((IDisposable)assert).Dispose();
                        }
                    }
                }
            }

            parent        = null;
            assertions    = null;
            allAssertions = null;
        }
コード例 #2
0
 internal SecurityAssertionRegistrar(SecurityAssertionRegistrar parent)
 {
     this.parent = parent;
     assertions  = new List <ISecurityAssert>();
 }