Ejemplo n.º 1
0
        /// <summary>
        /// Public method, required because we want to set _serviceBroker.
        /// </summary>
        /// <param name="broker"></param>
        public ServiceObjectBase(K2NEServiceBroker broker)
        {
            ServiceBroker = broker;

            //bool mutexCreated;

            //MutexSecurity mutexsecurity = new MutexSecurity();
            //mutexsecurity.AddAccessRule(new MutexAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null), MutexRights.Synchronize | MutexRights.Modify, AccessControlType.Allow));


            //try
            //{
            //    envMutex = Mutex.OpenExisting("Global\\environmentMutext", MutexRights.Synchronize | MutexRights.Modify);
            //}
            //catch (Exception ex)
            //{
            //    envMutex = new Mutex(false, "Global\\environmentMutext", out mutexCreated, mutexsecurity);
            //}

            if (wordMatchRegex == null)
            {
                // Match a word, a dot, another word with possibly a special character in it. And, maybe after that a third word with a dot in front of it. Examples:
                // "Environment.SimpleField"
                // "Environment.SimpleField with a space"
                // "ProcessInstance.Originator.DisplayName"
                wordMatchRegex = new Regex(@"\{(\w*\.[\w\s]*(\.[\w\s]*)?)\}", RegexOptions.Compiled); // Compiled regex, so we'd like to store it.
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Public method, required because we want to set _serviceBroker.
        /// </summary>
        /// <param name="broker"></param>
        public ServiceObjectBase(K2NEServiceBroker broker)
        {
            ServiceBroker = broker;

            //bool mutexCreated;

            //MutexSecurity mutexsecurity = new MutexSecurity();
            //mutexsecurity.AddAccessRule(new MutexAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null), MutexRights.Synchronize | MutexRights.Modify, AccessControlType.Allow));

            //try
            //{
            //    envMutex = Mutex.OpenExisting("Global\\environmentMutext", MutexRights.Synchronize | MutexRights.Modify);
            //}
            //catch (Exception ex)
            //{
            //    envMutex = new Mutex(false, "Global\\environmentMutext", out mutexCreated, mutexsecurity);
            //}

            if (wordMatchRegex == null)
            {
                // Match a word, a dot, another word with possibly a special character in it. And, maybe after that a third word with a dot in front of it. Examples:
                // "Environment.SimpleField"
                // "Environment.SimpleField with a space"
                // "ProcessInstance.Originator.DisplayName"
                wordMatchRegex = new Regex(@"\{(\w*\.[\w\s]*(\.[\w\s]*)?)\}", RegexOptions.Compiled); // Compiled regex, so we'd like to store it.
            }
        }
Ejemplo n.º 3
0
 public OutOfOfficeSO(K2NEServiceBroker api)
     : base(api)
 {
 }
Ejemplo n.º 4
0
 public ErrorLogSO(K2NEServiceBroker api)
     : base(api)
 {
 }
 public ActiveDirectorySO(K2NEServiceBroker api) : base(api) { }
Ejemplo n.º 6
0
 public WorklistSO(K2NEServiceBroker worklistAPI)
     : base(worklistAPI)
 {
 }
 public ManagementWorklistSO(K2NEServiceBroker api)
     : base(api)
 {
 }
Ejemplo n.º 8
0
 public RoleManagementSO(K2NEServiceBroker broker)
     : base(broker)
 {
 }
 public WorkingHoursConfigurationSO(K2NEServiceBroker api)
     : base(api)
 {
 }
Ejemplo n.º 10
0
 public IdentitySO(K2NEServiceBroker broker)
     : base(broker)
 {
 }