Quantcast
Channel: #Zyan Communication Framework
Viewing all articles
Browse latest Browse all 665

New Post: MEF, Events, Inheritated Interface and Zyan

$
0
0
Hello,

I very frustrated in the last days. i not able to run the application again. Here are some VB.NET samples to show my Prolem

IBase
Public Interface IBase
    Event ServerCalled As ServerCalledEventHandler
End Inteface
IUserManagement
<InheritedExport(GetType(IBase))>
Public Interface IUserManagement

    Inherits IBase
    [....]
End Interface
ClassBase
Public Class ClassBase

    Implements IBase
    
    Public Event ServerCalled(args As DataExtensions.DataSource.ClientCallerArgs) Implements IBase.ServerCalled

   [...]
End Class
UserManagement (Serverside)
<ZyanComponent(GetType(IUserManagement)),
PartCreationPolicy(ComponentModel.Composition.CreationPolicy.Shared)>
Public Class UserManagement

    Inherits ClassBase
    Implements IBase

    [...]
End Class
AdminUsersViewModel (Clientside)
Public Class AdminUsersViewModel

    Inherits ViewModel

    Private _ZyanProxy As IUserManagement
    Private _VDataManager As VirtualDataManager

    Public Sub New()
        _ZyanProxy = ConnectClient.Connection.CreateProxy(Of IUserManagement)()
        _VDataManager = New VirtualDataManager

       AddHandler _ZyanProxy.ServerCalled, AddressOf _VDataManager.ServerCalled
      [...]
End Class
If I try so set the AddHandler, then come up the following error:
"System.Collections.Generic.KeyNotFoundException" in Zyan.Communication.DLL ...
Where is the problem? Is it the MEF or Zyan? I have download the actual sourcecode and compile them for my application. I hope someone understand my problem

Thanks for the help and helpfull ideas!!!

Viewing all articles
Browse latest Browse all 665

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>