Beispiel #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;
        }
Beispiel #2
0
 public SharedObjectsException(SharedErrorEventArgs errorArgs)
     : base(errorArgs.Description)
 {
     this.Error    = errorArgs.Error;
     this.SourceId = errorArgs.SourceId;
 }
Beispiel #3
0
 public SharedObjectsException(SharedErrorEventArgs errorArgs)
     : base(errorArgs.Description)
 {
     this.Error = errorArgs.Error;
     this.SourceId = errorArgs.SourceId;
 }