예제 #1
0
 /// <summary>
 /// Stops this instance.
 /// </summary>
 public override void Stop()
 {
     if ((AccessPolicyServer != null) && (FlashAccessPolicyEnabled))
     {
         AccessPolicyServer.Stop();
         AccessPolicyServer = null;
     }
     base.Stop();
 }
 /// <summary>
 /// Stops this WebSocketServer.
 /// When enabled, stops also the FlashAccessPolicy-server.
 /// </summary>
 public override void Stop()
 {
     base.Stop();
     if (AccessPolicyServer != null && FlashAccessPolicyEnabled)
     {
         try
         {
             AccessPolicyServer.Stop();
             AccessPolicyServer = null;
         }
         catch (Exception ex)
         {
             AccessPolicyServer = null;
             throw new OperationCanceledException("cannot stop the AccessPolicyServer", ex);
         }
     }
 }