public DdemlServer(string service, DdemlContext context)
        {
            if (service == null)
                throw new ArgumentNullException(nameof(service));
            if (service.Length > Ddeml.MAX_STRING_SIZE)
                throw new ArgumentException(Resources.StringParameterInvalidMessage, nameof(service));

            _Service = service;
            _Context = context ?? throw new ArgumentNullException(nameof(context));
        }
Exemple #2
0
 public DdemlServer(string service, DdemlContext context)
 {
     if (service == null)
     {
         throw new ArgumentNullException("service");
     }
     if (service.Length > Ddeml.MAX_STRING_SIZE)
     {
         throw new ArgumentException(Resources.StringParameterInvalidMessage, "service");
     }
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     
     _Service = service;
     _Context = context;			
 }
Exemple #3
0
 public DdemlServer(string service) 
     : this(service, DdemlContext.GetDefault())
 {
 }
 public DdemlMonitor(DdemlContext context)
 {
     _Context = context;
 }
Exemple #5
0
 public MyDdemlServer(string service, DdemlContext context, DdeServer parent) : base(service, context)
 {
     _Parent = parent;
 }
Exemple #6
0
 public DdemlMonitor(DdemlContext context)
 {
     _Context = context;
 }
Exemple #7
0
 public DdemlMonitor() 
     : this(DdemlContext.GetDefault())
 {
 }