شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة ش.ش.و.

Integrated Applications Programming Company

Skip Navigation LinksHome » Code Library » Msmq

Public general use code classes and xml files that we've compiled and used over the years:

MSMQ support class for Optical Fiber Network (OFN) data model.

   1:  using System;
   2:  using System.Collections.Generic;
   3:   
   4:  namespace Ia.Ngn.Cl.Model.Data
   5:  {
   6:      ////////////////////////////////////////////////////////////////////////////
   7:   
   8:      /// <summary publish="true">
   9:      /// MSMQ support class for Optical Fiber Network (OFN) data model.
  10:      /// </summary>
  11:      /// 
  12:      /// <remarks> 
  13:      /// Copyright © 2018-2022 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
  14:      ///
  15:      /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
  16:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  17:      ///
  18:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  19:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  20:      /// 
  21:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  22:      /// 
  23:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  24:      /// </remarks> 
  25:      public abstract class Msmq
  26:      {
  27:          // If you have issues with Denied Access,...etc see C:\Users\Jasem\Documents\Business\Internet Programming\Research\MSMQ (Microsoft Message Queuing)
  28:   
  29:          ////////////////////////////////////////////////////////////////////////////
  30:          ////////////////////////////////////////////////////////////////////////////
  31:   
  32:          /// <summary>
  33:          ///
  34:          /// </summary>
  35:          public abstract class ServiceApplication
  36:          {
  37:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.ServiceApplication.Name;
  38:   
  39:              /// <summary/>
  40:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
  41:   
  42:              /// <summary/>
  43:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
  44:   
  45:              /// <summary/>
  46:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
  47:   
  48:              /// <summary/>
  49:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
  50:   
  51:              ////////////////////////////////////////////////////////////////////////////
  52:   
  53:              /// <summary>
  54:              ///
  55:              /// </summary>
  56:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, string service)
  57:              {
  58:                  var process = Ia.Ngn.Cl.Model.Business.Msmq.Process.ReadService;
  59:   
  60:                  Enqueue(sender, process, service);
  61:              }
  62:   
  63:              ////////////////////////////////////////////////////////////////////////////
  64:   
  65:              /// <summary>
  66:              ///
  67:              /// </summary>
  68:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service)
  69:              {
  70:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service);
  71:                  var switchVendor = Ia.Ngn.Cl.Model.Data.NetworkDesignDocument.SwitchVendorByService(message.Service);
  72:   
  73:                  if (switchVendor == Ia.Ngn.Cl.Model.Business.NetworkDesignDocument.Vendor.Nokia || switchVendor == Ia.Ngn.Cl.Model.Business.NetworkDesignDocument.Vendor.Huawei)
  74:                  {
  75:                      if (!Ia.Ngn.Cl.Model.Data.Msmq.ServiceApplication.List.Contains(message.Serialization))
  76:                      {
  77:                          Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
  78:                      }
  79:                  }
  80:              }
  81:   
  82:              ////////////////////////////////////////////////////////////////////////////
  83:   
  84:              /// <summary>
  85:              ///
  86:              /// </summary>
  87:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, int gatewayId)
  88:              {
  89:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, gatewayId);
  90:   
  91:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.ServiceApplication.List.Contains(message.Serialization))
  92:                  {
  93:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
  94:                  }
  95:              }
  96:   
  97:              ////////////////////////////////////////////////////////////////////////////
  98:          }
  99:   
 100:          ////////////////////////////////////////////////////////////////////////////
 101:          ////////////////////////////////////////////////////////////////////////////
 102:   
 103:          /// <summary>
 104:          ///
 105:          /// </summary>
 106:          public abstract class NetManagerApplication
 107:          {
 108:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.NetManagerApplication.Name;
 109:   
 110:              /// <summary/>
 111:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 112:   
 113:              /// <summary/>
 114:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 115:   
 116:              /// <summary/>
 117:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 118:   
 119:              /// <summary/>
 120:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 121:   
 122:              ////////////////////////////////////////////////////////////////////////////
 123:   
 124:              /// <summary>
 125:              ///
 126:              /// </summary>
 127:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
 128:              {
 129:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 130:   
 131:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 132:              }
 133:   
 134:              ////////////////////////////////////////////////////////////////////////////
 135:   
 136:              /// <summary>
 137:              ///
 138:              /// </summary>
 139:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service)
 140:              {
 141:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service);
 142:   
 143:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 144:              }
 145:   
 146:              ////////////////////////////////////////////////////////////////////////////
 147:          }
 148:   
 149:          ////////////////////////////////////////////////////////////////////////////
 150:          ////////////////////////////////////////////////////////////////////////////
 151:   
 152:          /// <summary>
 153:          ///
 154:          /// </summary>
 155:          public abstract class ServiceRequestApplication
 156:          {
 157:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.ServiceRequestApplication.Name;
 158:   
 159:              /// <summary/>
 160:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 161:   
 162:              /// <summary/>
 163:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 164:   
 165:              /// <summary/>
 166:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 167:   
 168:              /// <summary/>
 169:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 170:   
 171:              ////////////////////////////////////////////////////////////////////////////
 172:   
 173:              /// <summary>
 174:              ///
 175:              /// </summary>
 176:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
 177:              {
 178:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 179:   
 180:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 181:              }
 182:   
 183:              ////////////////////////////////////////////////////////////////////////////
 184:   
 185:              /// <summary>
 186:              ///
 187:              /// </summary>
 188:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string accessName)
 189:              {
 190:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, accessName);
 191:   
 192:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.ServiceRequestApplication.List.Contains(message.Serialization))
 193:                  {
 194:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 195:                  }
 196:              }
 197:   
 198:              ////////////////////////////////////////////////////////////////////////////
 199:          }
 200:   
 201:          ////////////////////////////////////////////////////////////////////////////
 202:          ////////////////////////////////////////////////////////////////////////////
 203:   
 204:          /// <summary>
 205:          ///
 206:          /// </summary>
 207:          public abstract class SpsApplication
 208:          {
 209:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.SpsApplication.Name;
 210:   
 211:              /// <summary/>
 212:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 213:   
 214:              /// <summary/>
 215:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 216:   
 217:              /// <summary/>
 218:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 219:   
 220:              /// <summary/>
 221:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 222:   
 223:              ////////////////////////////////////////////////////////////////////////////
 224:   
 225:              /// <summary>
 226:              ///
 227:              /// </summary>
 228:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
 229:              {
 230:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 231:   
 232:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 233:              }
 234:   
 235:              ////////////////////////////////////////////////////////////////////////////
 236:   
 237:              /// <summary>
 238:              ///
 239:              /// </summary>
 240:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service)
 241:              {
 242:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service);
 243:   
 244:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 245:              }
 246:   
 247:              ////////////////////////////////////////////////////////////////////////////
 248:          }
 249:   
 250:          ////////////////////////////////////////////////////////////////////////////
 251:          ////////////////////////////////////////////////////////////////////////////
 252:   
 253:          /// <summary>
 254:          ///
 255:          /// </summary>
 256:          public abstract class SoftXApplication
 257:          {
 258:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.SoftXApplication.Name;
 259:   
 260:              /// <summary/>
 261:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 262:   
 263:              /// <summary/>
 264:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 265:   
 266:              /// <summary/>
 267:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 268:   
 269:              /// <summary/>
 270:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 271:   
 272:              ////////////////////////////////////////////////////////////////////////////
 273:   
 274:              /// <summary>
 275:              ///
 276:              /// </summary>
 277:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
 278:              {
 279:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 280:   
 281:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 282:              }
 283:   
 284:              ////////////////////////////////////////////////////////////////////////////
 285:   
 286:              /// <summary>
 287:              ///
 288:              /// </summary>
 289:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service)
 290:              {
 291:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service);
 292:   
 293:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.SoftXApplication.List.Contains(message.Serialization))
 294:                  {
 295:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 296:                  }
 297:              }
 298:   
 299:              ////////////////////////////////////////////////////////////////////////////
 300:   
 301:              /// <summary>
 302:              ///
 303:              /// </summary>
 304:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, bool overrideRouterDomainRestriction, Guid staffUserId)
 305:              {
 306:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, overrideRouterDomainRestriction, staffUserId);
 307:   
 308:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 309:              }
 310:   
 311:              ////////////////////////////////////////////////////////////////////////////
 312:   
 313:              /// <summary>
 314:              ///
 315:              /// </summary>
 316:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, int port, bool overrideRouterDomainRestriction, Guid staffUserId)
 317:              {
 318:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, port, overrideRouterDomainRestriction, staffUserId);
 319:   
 320:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 321:              }
 322:   
 323:              ////////////////////////////////////////////////////////////////////////////
 324:          }
 325:   
 326:          ////////////////////////////////////////////////////////////////////////////
 327:          ////////////////////////////////////////////////////////////////////////////
 328:   
 329:          /// <summary>
 330:          ///
 331:          /// </summary>
 332:          public abstract class AxeApplication
 333:          {
 334:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.AxeApplication.Name;
 335:   
 336:              /// <summary/>
 337:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 338:   
 339:              /// <summary/>
 340:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 341:   
 342:              /// <summary/>
 343:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 344:   
 345:              /// <summary/>
 346:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 347:   
 348:              ////////////////////////////////////////////////////////////////////////////
 349:   
 350:              /// <summary>
 351:              ///
 352:              /// </summary>
 353:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
 354:              {
 355:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 356:   
 357:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 358:              }
 359:   
 360:              ////////////////////////////////////////////////////////////////////////////
 361:   
 362:              /// <summary>
 363:              ///
 364:              /// </summary>
 365:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service)
 366:              {
 367:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service);
 368:   
 369:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 370:              }
 371:   
 372:              ////////////////////////////////////////////////////////////////////////////
 373:          }
 374:   
 375:          ////////////////////////////////////////////////////////////////////////////
 376:          ////////////////////////////////////////////////////////////////////////////
 377:   
 378:          /// <summary>
 379:          ///
 380:          /// </summary>
 381:          public abstract class AmsApplication
 382:          {
 383:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.AmsApplication.Name;
 384:   
 385:              /// <summary/>
 386:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 387:   
 388:              /// <summary/>
 389:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 390:   
 391:              /// <summary/>
 392:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 393:   
 394:              /// <summary/>
 395:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 396:   
 397:              ////////////////////////////////////////////////////////////////////////////
 398:   
 399:              /// <summary>
 400:              ///
 401:              /// </summary>
 402:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service)
 403:              {
 404:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service);
 405:   
 406:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.AmsApplication.List.Contains(message.Serialization))
 407:                  {
 408:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 409:                  }
 410:              }
 411:   
 412:              ////////////////////////////////////////////////////////////////////////////
 413:   
 414:              /// <summary>
 415:              ///
 416:              /// </summary>
 417:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, int port)
 418:              {
 419:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, port);
 420:   
 421:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.AmsApplication.List.Contains(message.Serialization))
 422:                  {
 423:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 424:                  }
 425:              }
 426:   
 427:              ////////////////////////////////////////////////////////////////////////////
 428:   
 429:              /// <summary>
 430:              ///
 431:              /// </summary>
 432:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, bool overrideRouterDomainRestriction, Guid staffUserId)
 433:              {
 434:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, overrideRouterDomainRestriction, staffUserId);
 435:   
 436:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.AmsApplication.List.Contains(message.Serialization))
 437:                  {
 438:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 439:                  }
 440:              }
 441:   
 442:              ////////////////////////////////////////////////////////////////////////////
 443:   
 444:              /// <summary>
 445:              ///
 446:              /// </summary>
 447:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, int port, bool overrideRouterDomainRestriction, Guid staffUserId)
 448:              {
 449:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, port, overrideRouterDomainRestriction, staffUserId);
 450:   
 451:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.AmsApplication.List.Contains(message.Serialization))
 452:                  {
 453:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 454:                  }
 455:              }
 456:   
 457:              ////////////////////////////////////////////////////////////////////////////
 458:          }
 459:   
 460:          ////////////////////////////////////////////////////////////////////////////
 461:          ////////////////////////////////////////////////////////////////////////////
 462:   
 463:          /// <summary>
 464:          ///
 465:          /// </summary>
 466:          public abstract class NceApplication
 467:          {
 468:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.NceApplication.Name;
 469:   
 470:              /// <summary/>
 471:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 472:   
 473:              /// <summary/>
 474:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 475:   
 476:              /// <summary/>
 477:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 478:   
 479:              /// <summary/>
 480:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 481:   
 482:              ////////////////////////////////////////////////////////////////////////////
 483:   
 484:              /// <summary>
 485:              ///
 486:              /// </summary>
 487:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
 488:              {
 489:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 490:   
 491:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 492:              }
 493:   
 494:              ////////////////////////////////////////////////////////////////////////////
 495:   
 496:              /// <summary>
 497:              ///
 498:              /// </summary>
 499:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string serviceOrAccessName)
 500:              {
 501:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, serviceOrAccessName);
 502:   
 503:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.NceApplication.List.Contains(message.Serialization))
 504:                  {
 505:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 506:                  }
 507:              }
 508:   
 509:              ////////////////////////////////////////////////////////////////////////////
 510:   
 511:              /// <summary>
 512:              ///
 513:              /// </summary>
 514:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, int port)
 515:              {
 516:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, port);
 517:   
 518:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.NceApplication.List.Contains(message.Serialization))
 519:                  {
 520:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 521:                  }
 522:              }
 523:   
 524:              ////////////////////////////////////////////////////////////////////////////
 525:   
 526:              /// <summary>
 527:              ///
 528:              /// </summary>
 529:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, bool overrideRouterDomainRestriction, Guid staffUserId)
 530:              {
 531:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, overrideRouterDomainRestriction, staffUserId);
 532:   
 533:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.NceApplication.List.Contains(message.Serialization))
 534:                  {
 535:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 536:                  }
 537:              }
 538:   
 539:              ////////////////////////////////////////////////////////////////////////////
 540:   
 541:              /// <summary>
 542:              ///
 543:              /// </summary>
 544:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, int port, bool overrideRouterDomainRestriction, Guid staffUserId)
 545:              {
 546:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, port, overrideRouterDomainRestriction, staffUserId);
 547:   
 548:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.NceApplication.List.Contains(message.Serialization))
 549:                  {
 550:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 551:                  }
 552:              }
 553:   
 554:              ////////////////////////////////////////////////////////////////////////////
 555:   
 556:              /// <summary>
 557:              ///
 558:              /// </summary>
 559:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string msanDevId, int fn, int sn, int pn, string service)
 560:              {
 561:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, msanDevId, fn, sn, pn, service);
 562:   
 563:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.NceApplication.List.Contains(message.Serialization))
 564:                  {
 565:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 566:                  }
 567:              }
 568:   
 569:              ////////////////////////////////////////////////////////////////////////////
 570:          }
 571:   
 572:          ////////////////////////////////////////////////////////////////////////////
 573:          ////////////////////////////////////////////////////////////////////////////
 574:   
 575:          /// <summary>
 576:          ///
 577:          /// </summary>
 578:          public abstract class ProvisionApplication
 579:          {
 580:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.ProvisionApplication.Name;
 581:   
 582:              /// <summary/>
 583:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 584:   
 585:              /// <summary/>
 586:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 587:   
 588:              /// <summary/>
 589:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 590:   
 591:              /// <summary/>
 592:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 593:   
 594:              ////////////////////////////////////////////////////////////////////////////
 595:   
 596:              /// <summary>
 597:              ///
 598:              /// </summary>
 599:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
 600:              {
 601:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 602:   
 603:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 604:              }
 605:   
 606:              ////////////////////////////////////////////////////////////////////////////
 607:   
 608:              /// <summary>
 609:              ///
 610:              /// </summary>
 611:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service)
 612:              {
 613:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service);
 614:   
 615:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 616:              }
 617:   
 618:              ////////////////////////////////////////////////////////////////////////////
 619:   
 620:              /// <summary>
 621:              ///
 622:              /// </summary>
 623:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, bool overrideRouterDomainRestriction, Guid staffUserId)
 624:              {
 625:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, overrideRouterDomainRestriction, staffUserId);
 626:   
 627:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 628:              }
 629:   
 630:              ////////////////////////////////////////////////////////////////////////////
 631:   
 632:              /// <summary>
 633:              ///
 634:              /// </summary>
 635:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, int port, bool overrideRouterDomainRestriction, Guid staffUserId)
 636:              {
 637:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, port, overrideRouterDomainRestriction, staffUserId);
 638:   
 639:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 640:              }
 641:   
 642:              ////////////////////////////////////////////////////////////////////////////
 643:   
 644:              /// <summary>
 645:              ///
 646:              /// </summary>
 647:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, Ia.Ngn.Cl.Model.Business.Service.SupplementaryService supplementaryService, bool supplementaryServiceState, Guid staffUserId)
 648:              {
 649:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, supplementaryService, supplementaryServiceState, staffUserId);
 650:   
 651:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 652:              }
 653:   
 654:              ////////////////////////////////////////////////////////////////////////////
 655:          }
 656:   
 657:          ////////////////////////////////////////////////////////////////////////////
 658:          ////////////////////////////////////////////////////////////////////////////
 659:   
 660:          /// <summary>
 661:          ///
 662:          /// </summary>
 663:          public abstract class OfnApplication
 664:          {
 665:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.OfnApplication.Name;
 666:   
 667:              /// <summary/>
 668:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 669:   
 670:              /// <summary/>
 671:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 672:   
 673:              /// <summary/>
 674:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 675:   
 676:              /// <summary/>
 677:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 678:   
 679:              ////////////////////////////////////////////////////////////////////////////
 680:   
 681:              /// <summary>
 682:              ///
 683:              /// </summary>
 684:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string payload)
 685:              {
 686:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, payload);
 687:   
 688:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.OfnApplication.List.Contains(message.Serialization))
 689:                  {
 690:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 691:                  }
 692:              }
 693:   
 694:              ////////////////////////////////////////////////////////////////////////////
 695:   
 696:              /// <summary>
 697:              ///
 698:              /// </summary>
 699:              public static void EnqueueSerializedPayload<T>(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, T t)
 700:              {
 701:                  var payload = Ia.Ngn.Cl.Model.Business.Msmq.Message.Serialize<T>(t);
 702:   
 703:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, payload);
 704:   
 705:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.OfnApplication.List.Contains(message.Serialization))
 706:                  {
 707:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 708:                  }
 709:              }
 710:   
 711:              ////////////////////////////////////////////////////////////////////////////
 712:          }
 713:   
 714:          ////////////////////////////////////////////////////////////////////////////
 715:          ////////////////////////////////////////////////////////////////////////////
 716:   
 717:          /// <summary>
 718:          ///
 719:          /// </summary>
 720:          public abstract class TelegramApplication
 721:          {
 722:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.TelegramApplication.Name;
 723:   
 724:              /// <summary/>
 725:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 726:   
 727:              /// <summary/>
 728:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 729:   
 730:              /// <summary/>
 731:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 732:   
 733:              /// <summary/>
 734:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 735:   
 736:              ////////////////////////////////////////////////////////////////////////////
 737:   
 738:              /// <summary>
 739:              ///
 740:              /// </summary>
 741:              public static void EnqueueSerializedPayload<T>(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, T t)
 742:              {
 743:                  var payload = Ia.Ngn.Cl.Model.Business.Msmq.Message.Serialize<T>(t);
 744:   
 745:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, payload);
 746:   
 747:                  if (!Ia.Ngn.Cl.Model.Data.Msmq.TelegramApplication.List.Contains(message.Serialization))
 748:                  {
 749:                      Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 750:                  }
 751:              }
 752:   
 753:              ////////////////////////////////////////////////////////////////////////////
 754:          }
 755:   
 756:          ////////////////////////////////////////////////////////////////////////////
 757:          ////////////////////////////////////////////////////////////////////////////
 758:   
 759:          /// <summary>
 760:          ///
 761:          /// </summary>
 762:          public abstract class SecretaryApplication
 763:          {
 764:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.SecretaryApplication.Name;
 765:   
 766:              /// <summary/>
 767:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 768:   
 769:              /// <summary/>
 770:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 771:   
 772:              /// <summary/>
 773:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 774:   
 775:              /// <summary/>
 776:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 777:   
 778:              ////////////////////////////////////////////////////////////////////////////
 779:   
 780:              /// <summary>
 781:              ///
 782:              /// </summary>
 783:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
 784:              {
 785:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 786:   
 787:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 788:              }
 789:   
 790:              ////////////////////////////////////////////////////////////////////////////
 791:   
 792:              /// <summary>
 793:              ///
 794:              /// </summary>
 795:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string serviceOrAccessName)
 796:              {
 797:                  serviceOrAccessName = serviceOrAccessName.ToUpper();
 798:   
 799:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, serviceOrAccessName);
 800:   
 801:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 802:              }
 803:   
 804:              ////////////////////////////////////////////////////////////////////////////
 805:   
 806:              /// <summary>
 807:              ///
 808:              /// </summary>
 809:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, List<string> serviceOrAccessNameList)
 810:              {
 811:                  foreach (string serviceOrAccessName in serviceOrAccessNameList)
 812:                  {
 813:                      Enqueue(sender, Ia.Ngn.Cl.Model.Business.Msmq.Process.ReadAccess, serviceOrAccessName);
 814:                  }
 815:              }
 816:   
 817:              ////////////////////////////////////////////////////////////////////////////
 818:   
 819:              /// <summary>
 820:              ///
 821:              /// </summary>
 822:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, int gatewayId)
 823:              {
 824:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, gatewayId);
 825:   
 826:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 827:              }
 828:   
 829:              ////////////////////////////////////////////////////////////////////////////
 830:   
 831:              /// <summary>
 832:              ///
 833:              /// </summary>
 834:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, Ia.Ngn.Cl.Model.Business.Service.SupplementaryService supplementaryService, bool supplementaryServiceState, Guid staffUserId)
 835:              {
 836:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, supplementaryService, supplementaryServiceState, staffUserId);
 837:   
 838:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 839:              }
 840:   
 841:              ////////////////////////////////////////////////////////////////////////////
 842:   
 843:              /// <summary>
 844:              ///
 845:              /// </summary>
 846:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, bool overrideRouterDomainRestriction, Guid staffUserId)
 847:              {
 848:                  accessName = accessName.ToUpper();
 849:   
 850:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, overrideRouterDomainRestriction, staffUserId);
 851:   
 852:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 853:              }
 854:   
 855:              ////////////////////////////////////////////////////////////////////////////
 856:   
 857:              /// <summary>
 858:              ///
 859:              /// </summary>
 860:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, int port, bool overrideRouterDomainRestriction, Guid staffUserId)
 861:              {
 862:                  accessName = accessName.ToUpper();
 863:   
 864:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, port, overrideRouterDomainRestriction, staffUserId);
 865:   
 866:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 867:              }
 868:   
 869:              ////////////////////////////////////////////////////////////////////////////
 870:   
 871:              /// <summary>
 872:              ///
 873:              /// </summary>
 874:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service, string accessName, int port)
 875:              {
 876:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service, accessName, port);
 877:   
 878:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 879:              }
 880:   
 881:              ////////////////////////////////////////////////////////////////////////////
 882:   
 883:              /// <summary>
 884:              ///
 885:              /// </summary>
 886:              public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string msanDevId, int fn, int sn, int pn, string service)
 887:              {
 888:                  var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, msanDevId, fn, sn, pn, service);
 889:   
 890:                  Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
 891:              }
 892:   
 893:              ////////////////////////////////////////////////////////////////////////////
 894:   
 895:              /// <summary>
 896:              ///
 897:              /// </summary>
 898:              public static void SynchronizeCompleted(Ia.Ngn.Cl.Model.Business.Msmq.Application sender)
 899:              {
 900:                  Ia.Ngn.Cl.Model.Data.Msmq.SecretaryApplication.Enqueue(sender, Ia.Ngn.Cl.Model.Business.Msmq.Process.SynchronizeCompleted);
 901:              }
 902:   
 903:              ////////////////////////////////////////////////////////////////////////////
 904:   
 905:              /// <summary>
 906:              ///
 907:              /// </summary>
 908:              public static void SynchronizeCompleted(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, string service)
 909:              {
 910:                  Ia.Ngn.Cl.Model.Data.Msmq.SecretaryApplication.Enqueue(sender, Ia.Ngn.Cl.Model.Business.Msmq.Process.SynchronizeCompleted, service);
 911:              }
 912:   
 913:              ////////////////////////////////////////////////////////////////////////////
 914:   
 915:              /// <summary>
 916:              ///
 917:              /// </summary>
 918:              public static void Updated(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, string service)
 919:              {
 920:                  Ia.Ngn.Cl.Model.Data.Msmq.SecretaryApplication.Enqueue(sender, Ia.Ngn.Cl.Model.Business.Msmq.Process.Updated, service);
 921:              }
 922:   
 923:              ////////////////////////////////////////////////////////////////////////////
 924:          }
 925:   
 926:          ////////////////////////////////////////////////////////////////////////////
 927:          ////////////////////////////////////////////////////////////////////////////
 928:   
 929:          /// <summary>
 930:          ///
 931:          /// </summary>
 932:          public abstract class EmailApplication
 933:          {
 934:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.EmailApplication.Name;
 935:   
 936:              /// <summary/>
 937:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 938:   
 939:              /// <summary/>
 940:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 941:   
 942:              /// <summary/>
 943:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 944:   
 945:              /// <summary/>
 946:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 947:   
 948:              ////////////////////////////////////////////////////////////////////////////
 949:          }
 950:   
 951:          ////////////////////////////////////////////////////////////////////////////
 952:          ////////////////////////////////////////////////////////////////////////////
 953:   
 954:          /// <summary>
 955:          ///
 956:          /// </summary>
 957:          public abstract class SdcApplication
 958:          {
 959:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.SdcApplication.Name;
 960:   
 961:              /// <summary/>
 962:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 963:   
 964:              /// <summary/>
 965:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 966:   
 967:              /// <summary/>
 968:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 969:   
 970:              /// <summary/>
 971:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 972:   
 973:              ////////////////////////////////////////////////////////////////////////////
 974:          }
 975:   
 976:          ////////////////////////////////////////////////////////////////////////////
 977:          ////////////////////////////////////////////////////////////////////////////
 978:   
 979:          /// <summary>
 980:          ///
 981:          /// </summary>
 982:          public abstract class SchedulerApplication
 983:          {
 984:              private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.SchedulerApplication.Name;
 985:   
 986:              /// <summary/>
 987:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 988:   
 989:              /// <summary/>
 990:              public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 991:   
 992:              /// <summary/>
 993:              public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 994:   
 995:              /// <summary/>
 996:              public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 997:   
 998:              ////////////////////////////////////////////////////////////////////////////
 999:          }
 
        ////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////
 
        /// <summary>
        ///
        /// </summary>
        public abstract class MdaaApplication
        {
            private static readonly string queueName = Ia.Ngn.Cl.Model.Business.Msmq.Application.MdaaApplication.Name;
 
            /// <summary/>
            public static Ia.Ngn.Cl.Model.Business.Msmq.Message Dequeue { get { Ia.Cl.Model.Msmq.RecievePrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 
            /// <summary/>
            public static Ia.Ngn.Cl.Model.Business.Msmq.Message Peek { get { Ia.Cl.Model.Msmq.PeekPrivate(queueName, out string label, out string body); return Ia.Ngn.Cl.Model.Business.Msmq.Message.Deserialize(body); } }
 
            /// <summary/>
            public static List<string> List { get { return Ia.Cl.Model.Msmq.PeekPrivateList(queueName); } }
 
            /// <summary/>
            public static long Count { get { return Ia.Cl.Model.Msmq.Count(queueName); } }
 
            ////////////////////////////////////////////////////////////////////////////
 
            /// <summary>
            ///
            /// </summary>
            public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process)
            {
                var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process);
 
                Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
            }
 
            ////////////////////////////////////////////////////////////////////////////
 
            /// <summary>
            ///
            /// </summary>
            public static void Enqueue(Ia.Ngn.Cl.Model.Business.Msmq.Application sender, Ia.Ngn.Cl.Model.Business.Msmq.Process process, string service)
            {
                var message = new Ia.Ngn.Cl.Model.Business.Msmq.Message(sender, process, service);
 
                Ia.Cl.Model.Msmq.SendPrivate(queueName, message.Process.ToString(), message.Serialization);
            }
 
            ////////////////////////////////////////////////////////////////////////////
        }
 
        ////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////
    }
 
    ////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////
}