Exemple #1
0
        internal SharedErrorEventArgs ToSharedErrorEventsArgs()
        {
            SharedErrorEventArgs args;
            switch (this.Error)
            {
                case SharedObjects.Error.UnauthorizedAccess:
                    {
                        var payload = this as UnauthorizedErrorPayload;
                        args = new UnauthorizedAccessEventArgs(payload);
                        break;
                    }
                default:
                    {
                        // Do nothing
                        args = new SharedErrorEventArgs(this);
                        break;
                    }
            }

            return args;
        }
Exemple #2
0
 public SharedObjectsException(SharedErrorEventArgs errorArgs)
     : base(errorArgs.Description)
 {
     this.Error    = errorArgs.Error;
     this.SourceId = errorArgs.SourceId;
 }
Exemple #3
0
 public SharedObjectsException(SharedErrorEventArgs errorArgs)
     : base(errorArgs.Description)
 {
     this.Error = errorArgs.Error;
     this.SourceId = errorArgs.SourceId;
 }