public Buddy(IImManagerInternal manager) { Helper.GuardNotNull(manager); _manager = manager; _config = _manager.Provider.GetDefaultConfig(); Id = -1; }
public void create(Account acc, BuddyConfig cfg) { pjsua2PINVOKE.Buddy_create(swigCPtr, Account.getCPtr(acc), BuddyConfig.getCPtr(cfg)); if (pjsua2PINVOKE.SWIGPendingException.Pending) { throw pjsua2PINVOKE.SWIGPendingException.Retrieve(); } }
public int AddBuddyAndGetId(BuddyConfig buddyCfg) { Helper.GuardNotNull(buddyCfg); var id = NativeConstants.PJSUA_INVALID_ID; Helper.GuardError(PJSUA_DLL.IM.pjsua_buddy_add(_mapper.Map(buddyCfg, new pjsua_buddy_config()), ref id)); return(id); }
public void RegisterDependencies(ContainerBuilder containerBuilder, BuddyConfig buddyConfig) { containerBuilder.RegisterInstance(this).As <IEngine>().SingleInstance(); containerBuilder.RegisterInstance(_assemblyProvider).As <IAssemblyProvider>().SingleInstance(); containerBuilder.RegisterInstance(_typeFinder).As <ITypeFinder>().SingleInstance(); var dependencyRegistrars = _typeFinder.FindClassesOfType <IDependencyRegistrar>(); var instances = dependencyRegistrars .Select(dependencyRegistrar => (IDependencyRegistrar)Activator.CreateInstance(dependencyRegistrar)) .OrderBy(dependencyRegistrar => dependencyRegistrar.Order); foreach (var dependencyRegistrar in instances) { dependencyRegistrar.Register(containerBuilder, _typeFinder, buddyConfig); } }
public void Register(ContainerBuilder builder, ITypeFinder typeFinder, BuddyConfig config) { }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BuddyConfig obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BuddyConfig obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public BuddyConfig Map(pjsua_buddy_config cfg, BuddyConfig config) { return(_engine.Map(cfg, config)); }
public pjsua_buddy_config Map(BuddyConfig config, pjsua_buddy_config cfg) { return(_engine.Map(config, cfg)); }
public void create(Account acc, BuddyConfig cfg) { pjsua2PINVOKE.Buddy_create(swigCPtr, Account.getCPtr(acc), BuddyConfig.getCPtr(cfg)); if (pjsua2PINVOKE.SWIGPendingException.Pending) throw pjsua2PINVOKE.SWIGPendingException.Retrieve(); }
public void Register(ContainerBuilder builder, ITypeFinder typeFinder, BuddyConfig config) { throw new NotImplementedException(); }
public void ConfigureServices(IServiceCollection services, IConfiguration configuration, BuddyConfig buddyConfig) { _assemblyProvider = new BuddyAssemblyProvider(); _typeFinder = new BuddyTypeFinder(_assemblyProvider); CallConfigureServicesMethodOfAllStartupClasses(services, configuration, _typeFinder); AddAutoMapper(_typeFinder); AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; }
public int AddBuddyAndGetId(BuddyConfig buddyCfg) { return(0); }